org.benchy
Class TestCaseResult
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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.