use of com.att.aro.core.pojo.AROTraceData in project VideoOptimzer by attdevsupport.
the class JSonReportImplTest method reportGenerator_JsonMappingException.
@Test
public void reportGenerator_JsonMappingException() throws JsonMappingException {
AROTraceData results = new AROTraceData();
results.setSuccess(true);
when(filereader.createFile(any(String.class))).thenThrow(JsonMappingException.class);
boolean testResult = jsonreport.reportGenerator("abc.json", results);
assertFalse(testResult);
}
use of com.att.aro.core.pojo.AROTraceData in project VideoOptimzer by attdevsupport.
the class JSonReportImplTest method reportGenerator_NoError.
@Test
public void reportGenerator_NoError() {
AROTraceData results = new AROTraceData();
results.setSuccess(true);
try {
when(filereader.createFile(any(String.class))).thenReturn(folder.newFile("abc.json"));
} catch (IOException e) {
e.printStackTrace();
}
boolean testResult = jsonreport.reportGenerator("abc.json", results);
assertTrue(testResult);
}
use of com.att.aro.core.pojo.AROTraceData in project VideoOptimzer by attdevsupport.
the class JSonReportImplTest method reportGenerator_IOException.
@Test
public void reportGenerator_IOException() throws IOException {
AROTraceData results = new AROTraceData();
results.setSuccess(true);
when(filereader.createFile(any(String.class))).thenThrow(IOException.class);
boolean testResult = jsonreport.reportGenerator("abc.json", results);
assertFalse(testResult);
}
use of com.att.aro.core.pojo.AROTraceData in project VideoOptimzer by attdevsupport.
the class JSonReportImplTest method reportGenerator_JsonException.
@Test
public void reportGenerator_JsonException() throws JsonGenerationException {
AROTraceData results = new AROTraceData();
results.setSuccess(true);
when(filereader.createFile(any(String.class))).thenThrow(JsonGenerationException.class);
boolean testResult = jsonreport.reportGenerator("abc.json", results);
assertFalse(testResult);
}
use of com.att.aro.core.pojo.AROTraceData in project VideoOptimzer by attdevsupport.
the class AROController method analyzeVideoBP.
private void analyzeVideoBP() {
ApplicationContext context = SpringContextUtil.getInstance().getContext();
IVideoBestPractices videoBestPractices = context.getBean(IVideoBestPractices.class);
AROTraceData traceData = getTheModel();
videoBestPractices.analyze(traceData);
theView.showChartItems(HIDE_SHOW_CHARTPLOTOPTIONS);
theView.refresh();
}
Aggregations