Class: VertxUnit::TestCaseReport
  
  
  
  
    - Inherits:
- 
      Object
      
        
          - Object
- VertxUnit::TestCaseReport
 show all
- Defined in:
- /Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb
Overview
  
    Report the execution of a test case.
  
 
  
  Constant Summary
  
    
      
        - @@j_api_type =
          
        
- Object.new 
      Class Method Summary
      (collapse)
    
    
  
    
      Instance Method Summary
      (collapse)
    
    
  
  
    Class Method Details
    
      
  
  
    + (Boolean) accept?(obj) 
  
  
  
  
    | 
18
19
20 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 18
def @@j_api_type.accept?(obj)
  obj.class == TestCaseReport
end | 
 
    
      
  
  
    + (Object) j_api_type 
  
  
  
  
    | 
27
28
29 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 27
def self.j_api_type
  @@j_api_type
end | 
 
    
      
  
  
    + (Object) j_class 
  
  
  
  
    | 
30
31
32 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 30
def self.j_class
  Java::IoVertxExtUnitReport::TestCaseReport.java_class
end | 
 
    
      
  
  
    + (Object) unwrap(obj) 
  
  
  
  
    | 
24
25
26 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 24
def @@j_api_type.unwrap(obj)
  obj.j_del
end | 
 
    
      
  
  
    + (Object) wrap(obj) 
  
  
  
  
    | 
21
22
23 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 21
def @@j_api_type.wrap(obj)
  TestCaseReport.new(obj)
end | 
 
    
   
  
    Instance Method Details
    
      
  
  
    - (self) end_handler { ... }
  
  
  
  
    Set a callback for completion, the specified handler is invoked when the test exec has completed.
  
 
  
    | 
46
47
48
49
50
51
52 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 46
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 
  
  
  
  
    Returns the test case name
  
 
  
    | 
34
35
36
37
38
39
40
41
42 | # File '/Users/julien/java/vertx-aggregator/modules/vertx-lang-ruby/vertx-lang-ruby/target/classes/vertx-unit/test_case_report.rb', line 34
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 |