org.benchy
Class TestCaseResult
java.lang.Object
org.benchy.TestCaseResult
public class TestCaseResult
- extends 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.
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:
NullPointerException - if testCase is null.
IllegalArgumentException - if attempt smaller than 1.
TestCaseResult
public TestCaseResult(Properties properties)
get
public String get(String key)
put
public void put(String key,
Object value)
getIntProperty
public int getIntProperty(String name)
getLongProperty
public long getLongProperty(String name)
getBenchmarkName
public String getBenchmarkName()
getAttempt
public int getAttempt()
getProperties
public Properties getProperties()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2008-2010 Multiverse. All Rights Reserved.