use of com.axway.ats.agent.core.ComponentRepository in project ats-framework by Axway.
the class DisabledTest_RampUpQueueLoaderFixedDuration method setUpTest_ActionInvoker.
@BeforeClass
public static void setUpTest_ActionInvoker() throws AgentException {
Component component = new Component(TEST_COMPONENT_NAME);
ComponentActionMap actionMap = new ComponentActionMap(TEST_COMPONENT_NAME);
actionMap.registerActionClass(LoadTestActionClass.class);
component.setActionMap(actionMap);
ComponentRepository componentRepository = ComponentRepository.getInstance();
componentRepository.clear();
componentRepository.putComponent(component);
ActionRequest actionRequest = new ActionRequest(TEST_COMPONENT_NAME, "action 1", new Object[] { 3 });
actionRequests = new ArrayList<ActionRequest>();
actionRequests.add(actionRequest);
}
use of com.axway.ats.agent.core.ComponentRepository in project ats-framework by Axway.
the class MockDbEnvironmentUnit method afterMethod.
@After
public void afterMethod() {
ComponentRepository componentRepository = ComponentRepository.getInstance();
componentRepository.clear();
}
use of com.axway.ats.agent.core.ComponentRepository in project ats-framework by Axway.
the class Test_ActionInvoker method setUpTest_ActionInvoker.
@BeforeClass
public static void setUpTest_ActionInvoker() throws AgentException {
Component component = new Component(TEST_COMPONENT_NAME);
ComponentActionMap actionMap = new ComponentActionMap(TEST_COMPONENT_NAME);
actionMap.registerActionClass(ReallyComplexActionClass.class);
component.setActionMap(actionMap);
ComponentRepository componentRepository = ComponentRepository.getInstance();
componentRepository.clear();
componentRepository.putComponent(component);
}
use of com.axway.ats.agent.core.ComponentRepository in project ats-framework by Axway.
the class Test_ActionMethod method setUpTest_ActionHandler.
@BeforeClass
public static void setUpTest_ActionHandler() throws AgentException {
Component component = new Component(TEST_COMPONENT_NAME);
ComponentActionMap actionMap = new ComponentActionMap(TEST_COMPONENT_NAME);
actionMap.registerActionClass(ReallyComplexActionClass.class);
component.setActionMap(actionMap);
ComponentRepository componentRepository = ComponentRepository.getInstance();
componentRepository.clear();
componentRepository.putComponent(component);
}
use of com.axway.ats.agent.core.ComponentRepository in project ats-framework by Axway.
the class MockDbEnvironmentUnit method beforeMethod.
@Before
public void beforeMethod() throws ComponentAlreadyDefinedException {
ComponentRepository componentRepository = ComponentRepository.getInstance();
componentRepository.putComponent(testComponent);
}
Aggregations