5455565758596061626364
bind(ApplicationScoped.class, ArquillianDescriptor.class, desc); for(int i = 0; i < 10; i++) { fire(new BeforeClass(getClass())); } assertEventFired(StartSuiteContainers.class, 2); assertEventFired(StopSuiteContainers.class, 2); }
7172737475767778798081
bind(ApplicationScoped.class, ArquillianDescriptor.class, desc); for(int i = 0; i < 10; i++) { fire(new BeforeClass(getClass())); } assertEventFired(StartSuiteContainers.class, 0); assertEventFired(StopSuiteContainers.class, 0); }
bind(ApplicationScoped.class, ArquillianDescriptor.class, desc); for(int i = 0; i < 5; i++) { fire(new BeforeClass(getClass())); } assertEventFired(StartSuiteContainers.class, 0); assertEventFired(StopSuiteContainers.class, 0); }
bind(ApplicationScoped.class, ArquillianDescriptor.class, desc); for(int i = 0; i < 6; i++) { fire(new BeforeClass(getClass())); } assertEventFired(StartSuiteContainers.class, 1); assertEventFired(StopSuiteContainers.class, 1); }
8889909192939495969798
134135136137138139140141142
} @Test public void shouldStartClassContainers() throws Exception { fire(new BeforeClass(testClass())); assertEventFired(StartClassContainers.class, 1); }
150151152153154155156157158
} @Test public void shouldDeployManagedDeployments() throws Exception { fire(new BeforeClass(testClass())); assertEventFired(DeployManagedDeployments.class, 1); }