Package org.openbravo.base.weld.test
Class WeldBaseTest
- java.lang.Object
-
- org.openbravo.test.base.OBBaseTest
-
- org.openbravo.base.weld.test.WeldBaseTest
-
- Direct Known Subclasses:
AccessPropagation
,AccessPropagationNotInherited
,ADCSInitialization
,ADCSTest
,AdvancedQueryBuilderTest
,AllJrxmlCompilation
,ApplicationTest
,CancelAndReplaceTest
,CdiInfrastructure
,CharacteristicEventHandlerTest
,CompiledReportsCacheTest
,CopyLinesFromOrdersTest
,CreateLinesFromTest
,CrossOrganizationUICDI
,DalTest
,DataPoolCheckerTest
,DataSourceJavaScriptTest
,DataSourceServiceProviderTest
,DeletedAccessPropagation
,DisplayLogicAtServerLevelTest
,DynamicExpressionParserTest
,EventTriggeringTest
,ExpressionsTest
,ExternalSystemProviderTest
,FreemarkerTemplateProcessorTest
,FundsTransferTest
,GenerateComponentTest
,GenerateTypesJSTest
,GridExport
,HorizontalInheritance
,HttpExternalSystemCommunicationTest
,HttpExternalSystemDataCreationTest
,ImageTest
,ImportEntryBuilderTest
,InventoryStatusTest
,InvoiceFromShipmentTest
,JasperReportsExportTest
,JSONWriterToCSVTest
,LabelTest
,MenuTemplateTest
,MenuTest
,ModelDataSourceServiceTest
,ObserverBaseTest
,ParameterizedCdi
,ParameterizedCdiWithSkip
,PasswordStrengthCheckerTest
,ProcessSchedulingTest
,RecalculatePermissions
,ReducedTranslationMenuEventObserverTest
,ReferencedInventoryTest
,RelevantCharacteristicAdditionalPropertyResolverTest
,RelevantCharacteristicFieldTerminologyChecker
,RelevantCharacteristicPropertyTest
,RelevantCharacteristicQueryHookTest
,ReportingUtilsTest
,RoleAccessGeneration
,RoleInheritanceRestrictions
,SelectionPoolConfigurationTest
,ServicesTest
,ServicesTest2
,ServicesTest3
,StandardWindowTest
,StaticResourceTest
,TestCostingBase
,VerticalInheritance
,ViewGenerationTest
public class WeldBaseTest extends OBBaseTest
Base test for weld, provides access to the weld container.- Author:
- mtaal
-
-
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 WeldBaseTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.shrinkwrap.api.spec.JavaArchive
createTestArchive()
protected <U> U
getWeldComponent(Class<U> clz)
static void
resetOBInterceptors()
Once we are done with the class execution, OBInterceptor needs to be reset other case when executing a suite it will reuse the container created for the previous classes instead of the new one.void
setUp()
Sets static instance bean manager in WeldUtils so it is globally accessible and initializes kernel.-
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
-
createTestArchive
@Deployment public static org.jboss.shrinkwrap.api.spec.JavaArchive createTestArchive()
-
setUp
public void setUp() throws Exception
Sets static instance bean manager in WeldUtils so it is globally accessible and initializes kernel. Arquillian creates a new cdi container for each test class but keeps existent one for all tests within same class, let's initialize it once per class but we cannot use @BeforeClass at this point because we require of beanManager to be injected.- Overrides:
setUp
in classOBBaseTest
- Throws:
Exception
-
resetOBInterceptors
public static void resetOBInterceptors()
Once we are done with the class execution, OBInterceptor needs to be reset other case when executing a suite it will reuse the container created for the previous classes instead of the new one.
-
getWeldComponent
protected <U> U getWeldComponent(Class<U> clz)
-
-