| com.bm.testsuite.BaseTest com.bm.testsuite.mocked.MockedSessionBeanFixture
MockedSessionBeanFixture | abstract public class MockedSessionBeanFixture extends BaseTest (Code) | | This class enables the testing of Seteless/Statefull Session beans and JBoss
Service classes under Mock-Isolation control. All JSR 220 (EJB 3) fields will
be injected as JMock objects.
author: Daniel Wiese< Parameters: T - > -the type of the bena to test. |
MockedSessionBeanFixture | public MockedSessionBeanFixture(Class<T> beanToTest)(Code) | | Default constructor.
Parameters: beanToTest - -the bean to test. |
getBeanToTest | protected T getBeanToTest()(Code) | | Returns the bean to test.
- the bean to test |
getMockControl | protected Mock getMockControl(Class> interfaze)(Code) | | Returns the mock controll to the given property.
Parameters: interfaze - -the name of the property - the mock controll |
setUp | protected void setUp() throws Exception(Code) | | See Also: junit.framework.TestCase.setUp |
setValueForField | protected void setValueForField(String fieldName, Object toSet)(Code) | | Sets a value for a field in the tested-bean instance.
author: Daniel Wiese since: 02.05.2006 Parameters: fieldName - -the name of the field Parameters: toSet - -the value to set |
tearDown | protected void tearDown() throws Exception(Code) | | See Also: junit.framework.TestCase.tearDown |
|
|