org.benchy
Class TestCaseResult

java.lang.Object
  extended by org.benchy.TestCaseResult

public class TestCaseResult
extends java.lang.Object

The result of executing a TestCase.

todo: Properties should be replaced by a map. Properties is a leaky abstraction from the FileBasedBenchmarkResultRepository.

Author:
Peter Veentjer.

Constructor Summary
TestCaseResult(Benchmark benchmark, TestCase testCase, int attempt)
          Creates a new TestResult for a specific testcase.
TestCaseResult(java.util.Properties properties)
           
 
Method Summary
 java.lang.String get(java.lang.String key)
           
 int getAttempt()
           
 java.lang.String getBenchmarkName()
           
 int getIntProperty(java.lang.String name)
           
 long getLongProperty(java.lang.String name)
           
 java.util.Properties getProperties()
           
 void put(java.lang.String key, java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCaseResult

public TestCaseResult(Benchmark benchmark,
                      TestCase testCase,
                      int attempt)
Creates a new TestResult for a specific testcase. This instance can be used to add all kinds of properties and measurements.

Parameters:
benchmark -
testCase - the TestCase this TestResult is for.
attempt -
Throws:
java.lang.NullPointerException - if testCase is null.
java.lang.IllegalArgumentException - if attempt smaller than 1.

TestCaseResult

public TestCaseResult(java.util.Properties properties)
Method Detail

get

public java.lang.String get(java.lang.String key)

put

public void put(java.lang.String key,
                java.lang.Object value)

getIntProperty

public int getIntProperty(java.lang.String name)

getLongProperty

public long getLongProperty(java.lang.String name)

getBenchmarkName

public java.lang.String getBenchmarkName()

getAttempt

public int getAttempt()

getProperties

public java.util.Properties getProperties()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2010 Multiverse. All Rights Reserved.