Class List Method List File List

# Class: VertxUnit::TestCase

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

## Class Method Summary (collapse)

- + (Object) create(name = nil)

## Instance Method Summary (collapse)

- - (TestCase) initialize(j_del) constructor
  A new instance of TestCase.
- - (Object) j_del

## Constructor Details

### - (`TestCase`) initialize(j_del)

Returns a new instance of TestCase

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

    def initialize(j_del)
      @j_del = j_del
    end

## Class Method Details

### + (`Object`) create(name = nil)

Raises:

- (`ArgumentError`)

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

    def self.create(name=nil)
      if name.class == String && block_given?
        return ::Vertx::Util::Utils.safe_create(Java::IoVertxExtUnit::TestCase.java_method(:create, [Java::java.lang.String.java_class,Java::IoVertxCore::Handler.java_class]).call(name,(Proc.new { |event| yield(::Vertx::Util::Utils.safe_create(event,::VertxUnit::TestContext)) })),::VertxUnit::TestCase)
      end
      raise ArgumentError, "Invalid arguments when calling create(name)"
    end

## Instance Method Details

### - (`Object`) j_del

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

    def j_del
      @j_del
    end