Class CdiInfrastructure
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.base.weld.test.WeldBaseTest
-
- org.openbravo.base.weld.test.testinfrastructure.CdiInfrastructure
-
public class CdiInfrastructure extends WeldBaseTest
Test cases for cdi infrastructure. Checking Arquillian works fine and it is possible to inject beans.- Author:
- alostale
-
-
Field Summary
-
Fields inherited from class org.openbravo.test.base.OBBaseTest
DOLLAR, DOLLAR_ID, EURO, EURO_ID, QA_TEST_ADMIN_USER_ID, QA_TEST_CLIENT_ID, QA_TEST_ORG_ID, TEST_BP_CATEGORY_ID, TEST_CLIENT_ID, TEST_LOCATION_ID, TEST_ORDER_ID, TEST_ORG_ID, TEST_ORG_TREE, TEST_PRODUCT_ID, TEST_ROLE_ID, TEST_US_ORG_ID, TEST_USER_ID, TEST_WAREHOUSE_ID, TEST2_USER_ID, userIds, watchFailures
-
-
Constructor Summary
Constructors Constructor Description CdiInfrastructure()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applicationAndSessionShouldBeKept()
application and session scopes are preserved but not request scopevoid
beansAreInjected()
beans are correctly injectedvoid
expectedBeanInstancesAreInjected()
get any instance of a particular bean typevoid
expectedBeanInstancesAreInjectedWithWeldUtils()
get any instance of a particular bean type (using WeldUtils)void
expectedBeanWithAnnotationInstancesAreInjectedSortedByPriorityWithWeldUtils()
void
expectedBeanWithAnnotationInstancesAreInjectedWithWeldUtils()
void
expectedBeanWithInvalidAnnotationInstancesAreNotInjectedWithWeldUtils()
void
start()
starts application and session scopes-
Methods inherited from class org.openbravo.base.weld.test.WeldBaseTest
createTestArchive, getWeldComponent, resetOBInterceptors, setUp
-
Methods inherited from class org.openbravo.test.base.OBBaseTest
addReadWriteAccess, classSetUp, commitTransaction, count, getConnectionProvider, getOneInstance, getRandomUser, getTestLogAppender, initializeDalLayer, initializeDisabledTestCases, initializeTestLogAppender, isErrorOccured, reportException, rollback, setLogStackTraces, setQAAdminContext, setSystemAdministratorContext, setTestAdminContext, setTestLogAppenderLevel, setTestUserContext, setUserContext, shouldMockServletContext, staticInitializeDalLayer, testDone
-
-
-
-
Method Detail
-
beansAreInjected
public void beansAreInjected()
beans are correctly injected
-
start
@InSequence(1) public void start()
starts application and session scopes
-
applicationAndSessionShouldBeKept
@InSequence(2) public void applicationAndSessionShouldBeKept()
application and session scopes are preserved but not request scope
-
expectedBeanInstancesAreInjected
public void expectedBeanInstancesAreInjected()
get any instance of a particular bean type
-
expectedBeanInstancesAreInjectedWithWeldUtils
public void expectedBeanInstancesAreInjectedWithWeldUtils()
get any instance of a particular bean type (using WeldUtils)
-
expectedBeanWithAnnotationInstancesAreInjectedWithWeldUtils
public void expectedBeanWithAnnotationInstancesAreInjectedWithWeldUtils()
-
expectedBeanWithInvalidAnnotationInstancesAreNotInjectedWithWeldUtils
public void expectedBeanWithInvalidAnnotationInstancesAreNotInjectedWithWeldUtils()
-
expectedBeanWithAnnotationInstancesAreInjectedSortedByPriorityWithWeldUtils
public void expectedBeanWithAnnotationInstancesAreInjectedSortedByPriorityWithWeldUtils()
-
-