Class List Method List File List

# Class: VertxUnit::TestResult

Inherits:
  Object
  - Object
  - VertxUnit::TestResult
  show all
Defined in:
  /Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb

## Overview

The result of a test.

## Instance Method Summary (collapse)

- - (Fixnum) begin_time
  The time at which the test began in millis.
- - (Fixnum) duration_time
  How long the test lasted in millis.
- - (true, false) failed?
  Did it fail?.
- - (::VertxUnit::Failure) failure
  An exception describing failure, null if the test succeeded.
- - (String) name
  The test description, may be null if none was provided.
- - (true, false) succeeded?
  Did it succeed?.

## Instance Method Details

### - (`Fixnum`) begin_time

The time at which the test began in millis.

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    30
    31
    32
    33
    34
    35
    36
    37
    38
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 30

    def begin_time
      if !block_given?
        if @cached_begin_time != nil
          return @cached_begin_time
        end
        return @cached_begin_time = @j_del.java_method(:beginTime, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling begin_time()"
    end

### - (`Fixnum`) duration_time

How long the test lasted in millis.

Returns:

- (`Fixnum`)

Raises:

- (`ArgumentError`)

    41
    42
    43
    44
    45
    46
    47
    48
    49
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 41

    def duration_time
      if !block_given?
        if @cached_duration_time != nil
          return @cached_duration_time
        end
        return @cached_duration_time = @j_del.java_method(:durationTime, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling duration_time()"
    end

### - (`true`, `false`) failed?

Did it fail?

Returns:

- (`true`, `false`)

Raises:

- (`ArgumentError`)

    63
    64
    65
    66
    67
    68
    69
    70
    71
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 63

    def failed?
      if !block_given?
        if @cached_failed != nil
          return @cached_failed
        end
        return @cached_failed = @j_del.java_method(:failed, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling failed?()"
    end

### - (`::VertxUnit::Failure`) failure

An exception describing failure, null if the test succeeded.

Returns:

- (`::VertxUnit::Failure`)

Raises:

- (`ArgumentError`)

    74
    75
    76
    77
    78
    79
    80
    81
    82
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 74

    def failure
      if !block_given?
        if @cached_failure != nil
          return @cached_failure
        end
        return @cached_failure = ::Vertx::Util::Utils.safe_create(@j_del.java_method(:failure, []).call(),::VertxUnit::Failure)
      end
      raise ArgumentError, "Invalid arguments when calling failure()"
    end

### - (`String`) name

The test description, may be null if none was provided.

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    25
    26
    27
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 19

    def name
      if !block_given?
        if @cached_name != nil
          return @cached_name
        end
        return @cached_name = @j_del.java_method(:name, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling name()"
    end

### - (`true`, `false`) succeeded?

Did it succeed?

Returns:

- (`true`, `false`)

Raises:

- (`ArgumentError`)

    52
    53
    54
    55
    56
    57
    58
    59
    60
    # File '/Users/julien/java/vertx-aggregator/modules/vertx-unit/src/main/resources/vertx-unit/test_result.rb', line 52

    def succeeded?
      if !block_given?
        if @cached_succeeded != nil
          return @cached_succeeded
        end
        return @cached_succeeded = @j_del.java_method(:succeeded, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling succeeded?()"
    end