Class List Method List File List

# Class: VertxUnit::TestCaseReport

Inherits:
  Object
  - Object
  - VertxUnit::TestCaseReport
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.rb

## Instance Method Summary (collapse)

- - (Object) end_handler
- - (TestCaseReport) initialize(j_del) constructor
  A new instance of TestCaseReport.
- - (Object) j_del
- - (Object) name

## Constructor Details

### - (`TestCaseReport`) initialize(j_del)

Returns a new instance of TestCaseReport

    9
    10
    11
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.rb', line 9

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) end_handler

Raises:

- (`ArgumentError`)

    30
    31
    32
    33
    34
    35
    36
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.rb', line 30

    def end_handler
      if block_given?
        @j_del.java_method(:endHandler, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(::Vertx::Util::Utils.safe_create(event,::VertxUnit::TestResult)) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling end_handler()"
    end

### - (`Object`) j_del

    14
    15
    16
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.rb', line 14

    def j_del
      @j_del
    end

### - (`Object`) name

Raises:

- (`ArgumentError`)

    18
    19
    20
    21
    22
    23
    24
    25
    26
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.rb', line 18

    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