Class: VertxUnit::TestResult

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-unit/test_result.rb

Instance Method Summary (collapse)

Constructor Details

- (TestResult) initialize(j_del)

Returns a new instance of TestResult


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

def initialize(j_del)
  @j_del = j_del
end

Instance Method Details

- (Object) begin_time

Raises:

  • (ArgumentError)


30
31
32
33
34
35
36
37
38
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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

- (Object) duration_time

Raises:

  • (ArgumentError)


41
42
43
44
45
46
47
48
49
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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

- (Boolean) failed?

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


63
64
65
66
67
68
69
70
71
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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

- (Object) failure

Raises:

  • (ArgumentError)


74
75
76
77
78
79
80
81
82
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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

- (Object) j_del



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

def j_del
  @j_del
end

- (Object) name

Raises:

  • (ArgumentError)


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

- (Boolean) succeeded?

Returns:

  • (Boolean)

Raises:

  • (ArgumentError)


52
53
54
55
56
57
58
59
60
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/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