Package org.jboss.arquillian.test.spi.TestResult

Examples of org.jboss.arquillian.test.spi.TestResult.Status


        takenResourceRegister.get().addTaken(video);

        TestResult testResult = event.getVideoMetaData().getTestResult();

        if (testResult != null) {
            Status status = testResult.getStatus();
            appendStatus(video, status);
            if (!status.equals(Status.FAILED) && configuration.get().getTakeOnlyOnFail()) {
                if (!video.getResource().getAbsoluteFile().delete()) {
                    System.out.println("video was not deleted: " + video.getResource().getAbsolutePath());
                }
                File directory = video.getResource().getParentFile();
                if (directory != null && directory.listFiles().length == 0) {
View Full Code Here


    * @param result JUnit Test Run Result
    * @return The TestResult representation of the JUnit Result
    */
   private TestResult convertToTestResult(Result result)
   {
      Status status = Status.PASSED;
      Throwable throwable = null;

      if (result.getFailureCount() > 0)
      {
         status = Status.FAILED;
View Full Code Here

    * @param result JUnit Test Run Result
    * @return The TestResult representation of the JUnit Result
    */
   private TestResult convertToTestResult(Result result, Throwable expectedException)
   {
      Status status = Status.PASSED;
      Throwable throwable = expectedException;
      if (result.getFailureCount() > 0)
      {
         status = Status.FAILED;
         throwable = result.getFailures().get(0).getException();
View Full Code Here

    *
    * @return true if test requires rollback, false otherwise
    */
   private boolean testRequiresRollbackDueToFailure()
   {
      final Status actualStatus = testResultInstance.get().getStatus();
      return TestResult.Status.FAILED.equals(actualStatus);
   }
View Full Code Here

     * By default it will return true if the last executed test has failed.
     *
     * @return true if test requires rollback, false otherwise
     */
    private boolean testRequiresRollbackDueToFailure() {
        final Status actualStatus = testResultInstance.get().getStatus();
        return TestResult.Status.FAILED.equals(actualStatus);
    }
View Full Code Here

     * By default it will return true if the last executed test has failed.
     *
     * @return true if test requires rollback, false otherwise
     */
    private boolean testRequiresRollbackDueToFailure() {
        final Status actualStatus = testResultInstance.get().getStatus();
        return TestResult.Status.FAILED.equals(actualStatus);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.test.spi.TestResult.Status

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.