Package org.jboss.arquillian.container.test.impl.execution.event

Examples of org.jboss.arquillian.container.test.impl.execution.event.LocalExecutionEvent


            event.getTestClass().getJavaClass(),
            event.getTestMethod());

      if(runAsClient)
      {
         executionEvent.fire(new LocalExecutionEvent(event.getTestMethodExecutor()));
      }
      else
      {
         executionEvent.fire(new RemoteExecutionEvent(event.getTestMethodExecutor()));
      }
View Full Code Here


   @Inject
   private Event<LocalExecutionEvent> localEvent;
  
   public void execute(@Observes Test event) throws Exception
   {
      localEvent.fire(new LocalExecutionEvent(event.getTestMethodExecutor()));
   }
View Full Code Here

            event.getTestClass().getJavaClass(),
            event.getTestMethod());

      if(runAsClient)
      {
         executionEvent.fire(new LocalExecutionEvent(event.getTestMethodExecutor()));
      }
      else
      {
         executionEvent.fire(new RemoteExecutionEvent(event.getTestMethodExecutor()));
      }
View Full Code Here

   {
      /*
       *  TODO: when we fire a LocalExecutionEvent from a ContainerMethodExecutor,
       *  both the LocalTestExecutor and RemoteTestExecutor will set the same TestResult.
       */
      event.fire(new LocalExecutionEvent(testMethodExecutor));
      return testResult.get();
   }
View Full Code Here

            runAsClient = true;
         }
      }
      if(runAsClient)
      {
         executionEvent.fire(new LocalExecutionEvent(event.getTestMethodExecutor()));
      }
      else
      {
         executionEvent.fire(new RemoteExecutionEvent(event.getTestMethodExecutor()));
      }
View Full Code Here

     
      Mockito.when(testExecutor.getInstance()).thenReturn(this);
      Mockito.when(testExecutor.getMethod()).thenReturn(
            getTestMethod("shouldReturnPassed"));
     
      fire(new LocalExecutionEvent(testExecutor));
     
      TestResult result = getManager().resolve(TestResult.class);
      Assert.assertNotNull(
            "Should have set result",
            result);
View Full Code Here

      Mockito.when(testExecutor.getMethod()).thenReturn(
            getTestMethod("shouldReturnFailedOnException"));
      Mockito.doThrow(exception).when(testExecutor).invoke();
     
     
      fire(new LocalExecutionEvent(testExecutor));

      TestResult result = getManager().resolve(TestResult.class);
      Assert.assertNotNull(
            "Should have set result",
            result);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.container.test.impl.execution.event.LocalExecutionEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.