6.4. Helper Classes

To make easier the test development, some helper classes are available in the package org.objectweb.easybeans.tests.common.helper

In the example, the EJBHelper class is used to get a bean instance:

bean = getBeanRemoteInstance(SLSBExample.class, ItfExample.class);

The method getBeanRemoteInstance() is used to a remote access of a bean and the method getBeanLocalInstance() is used to a local access of a bean. They need two parameters:

  1. The bean class;

  2. The bean interface;