Search in sources :

Example 11 with AROTraceData

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);
}
Also used : AROTraceData(com.att.aro.core.pojo.AROTraceData) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Example 12 with AROTraceData

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);
}
Also used : IOException(java.io.IOException) AROTraceData(com.att.aro.core.pojo.AROTraceData) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Example 13 with AROTraceData

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);
}
Also used : AROTraceData(com.att.aro.core.pojo.AROTraceData) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Example 14 with AROTraceData

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);
}
Also used : AROTraceData(com.att.aro.core.pojo.AROTraceData) Test(org.junit.Test) BaseTest(com.att.aro.core.BaseTest)

Example 15 with AROTraceData

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();
}
Also used : ApplicationContext(org.springframework.context.ApplicationContext) IVideoBestPractices(com.att.aro.core.IVideoBestPractices) AROTraceData(com.att.aro.core.pojo.AROTraceData)

Aggregations

AROTraceData (com.att.aro.core.pojo.AROTraceData)24 BaseTest (com.att.aro.core.BaseTest)10 Test (org.junit.Test)10 ArrayList (java.util.ArrayList)9 IOException (java.io.IOException)8 PacketAnalyzerResult (com.att.aro.core.packetanalysis.pojo.PacketAnalyzerResult)6 BestPracticeType (com.att.aro.core.bestpractice.pojo.BestPracticeType)5 AnalysisFilter (com.att.aro.core.packetanalysis.pojo.AnalysisFilter)5 Profile (com.att.aro.core.configuration.pojo.Profile)4 PacketInfo (com.att.aro.core.packetanalysis.pojo.PacketInfo)4 IVideoBestPractices (com.att.aro.core.IVideoBestPractices)3 AbstractBestPracticeResult (com.att.aro.core.bestpractice.pojo.AbstractBestPracticeResult)3 TsharkException (com.att.aro.core.exception.TsharkException)3 TraceDirectoryResult (com.att.aro.core.packetanalysis.pojo.TraceDirectoryResult)3 Packet (com.att.aro.core.packetreader.pojo.Packet)3 File (java.io.File)3 IAROService (com.att.aro.core.IAROService)2 PeriodicTransferResult (com.att.aro.core.bestpractice.pojo.PeriodicTransferResult)2 IPacketAnalyzer (com.att.aro.core.packetanalysis.IPacketAnalyzer)2 Session (com.att.aro.core.packetanalysis.pojo.Session)2