use of com.sequenceiq.it.cloudbreak.context.MeasuredTestContext in project cloudbreak by hortonworks.
the class AbstractMinimalTest method testContextWithMock.
@DataProvider(name = TEST_CONTEXT_WITH_MOCK)
public Object[][] testContextWithMock() {
MockedTestContext testContext = getBean(MockedTestContext.class);
MeasuredTestContext tc = createMeasuredTestContext(testContext);
return new Object[][] { { tc } };
}
use of com.sequenceiq.it.cloudbreak.context.MeasuredTestContext in project cloudbreak by hortonworks.
the class ReportListener method logMeasurements.
private void logMeasurements(ITestResult tr) {
Object[] parameters = tr.getParameters();
MeasuredTestContext measuredTestContext;
if (parameters == null || parameters.length == 0) {
return;
} else if (parameters[0] instanceof MeasuredTestContext) {
measuredTestContext = (MeasuredTestContext) parameters[0];
} else {
return;
}
tr.setAttribute(tr.getName() + MEASUREMENTS, measuredTestContext.getMeasure());
}
Aggregations