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

## Overview

Report the execution of a test case.

## Instance Method Summary (collapse)

- - (self) end_handler { ... }
  Set a callback for completion, the specified handler is invoked when the test exec has completed.
- - (String) name
  @return the test case name.

## Instance Method Details

### - (`self`) end_handler { ... }

Set a callback for completion, the specified `handler` is invoked when the test exec has completed.

Yields:

- the completion handler

Returns:

- (`self`)

Raises:

- (`ArgumentError`)

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

    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

### - (`String`) name

@return the test case name

Returns:

- (`String`)

Raises:

- (`ArgumentError`)

    19
    20
    21
    22
    23
    24
    25
    26
    27
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_case_report.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