@Test public void analyzeDirectoryTest_resultIsNull() throws IOException { List<BestPracticeType> req = new ArrayList<BestPracticeType>(); when(packetanalyzer.analyzeTraceDirectory(any(String.class), any(Profile.class), any(AnalysisFilter.class))) .thenReturn(null); AROTraceData testResult = aro.analyzeDirectory(req, Util.getCurrentRunningDir()); assertEquals(108, testResult.getError().getCode()); assertFalse(testResult.isSuccess()); }
@Override public AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory) throws IOException { return analyzeDirectory(requests, traceDirectory, null, null); }
AROServiceImpl implements IAROService { @Override public AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory) throws IOException { return analyzeDirectory(requests, traceDirectory, null, null); } }
AROServiceImpl implements IAROService { @Override public AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory) throws IOException { return analyzeDirectory(requests, traceDirectory, null, null); }  }
AROServiceImpl implements IAROService { @Override public AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory) throws IOException { return analyzeDirectory(requests, traceDirectory, null, null); }  @Autowired @Qualifier("jsongenerate") void setJsonreport(IReport jsonreport); @Autowired @Qualifier("htmlgenerate") void setHtmlreport(IReport htmlreport); @Autowired void setPacketAnalyzer(IPacketAnalyzer packetanalyzer); @Autowired void setCacheAnalysis(ICacheAnalysis cacheanalysis); @Autowired @Qualifier("periodicTransfer") void setPeriodicTransfer(IBestPractice periodicTransfer); @Autowired @Qualifier("unnecessaryConnection") void setUnnecessaryConnection(IBestPractice unnecessaryConnection); @Autowired @Qualifier("connectionOpening") void setConnectionOpening(IBestPractice connectionOpening); @Autowired @Qualifier("connectionClosing") void setConnectionClosing(IBestPractice connectionClosing); @Autowired @Qualifier("screenRotation") void setScreenRotation(IBestPractice screenRotation); @Autowired @Qualifier("accessingPeripheral") void setAccessingPeripheral(IBestPractice accessingPeripheral); @Autowired @Qualifier("combineCsJss") void setCombineCsJss(IBestPractice combineCsJss); @Autowired @Qualifier("http10Usage") void setHttp10Usage(IBestPractice http10Usage); @Autowired @Qualifier("cacheControl") void setCacheControl(IBestPractice cacheControl); @Autowired @Qualifier("usingCache") void setUsingCache(IBestPractice usingCache); @Autowired @Qualifier("duplicateContent") void setDuplicateContent(IBestPractice duplicateContent); @Autowired @Qualifier("http4xx5xx") void setHttp4xx5xx(IBestPractice http4xx5xx); @Autowired @Qualifier("simultaneous") void setSimultaneous(IBestPractice simultaneous); @Autowired @Qualifier("multipleSimultaneous") void setMultipleSimultaneous(IBestPractice multipleSimultaneous); @Autowired @Qualifier("http3xx") void setHttp3xx(IBestPractice http3xx); @Autowired @Qualifier("textFileCompression") void setTextFileCompression(IBestPractice textFileCompression); @Autowired @Qualifier("imageSize") void setImageSize(IBestPractice imageSize); @Autowired @Qualifier("imageMetadata") void setImageMdata(IBestPractice imageMetadata); @Autowired @Qualifier("imageCompression") void setImageCompression(IBestPractice imageCompression); @Autowired @Qualifier("imageFormat") void setImageFormat(IBestPractice imageFormat); @Autowired @Qualifier("uiComparator") void setUIComparator(IBestPractice uiComparator); @Autowired @Qualifier("minify") void setMinify(IBestPractice minify); @Autowired @Qualifier("emptyUrl") void setEmptyUrl(IBestPractice emptyUrl); @Autowired @Qualifier("spriteImage") void setSpriteImage(IBestPractice spriteImage); @Autowired @Qualifier("scripts") void setScripts(IBestPractice scripts); @Autowired @Qualifier("async") void setAsync(IBestPractice async); @Autowired @Qualifier("displaynoneincss") void setDisplayNoneInCSS(IBestPractice displaynoneincss); @Autowired @Qualifier("fileorder") void setFileOrder(IBestPractice fileorder); @Autowired @Qualifier("videoStall") void setVideoStallImpl(IBestPractice videoStall); @Autowired @Qualifier("networkComparison") void setVideoNetworkComparisonImpl(IBestPractice networkcomparison); @Autowired @Qualifier("startupDelay") void setVideoStartupDelayImpl(IBestPractice startupdelay); @Autowired @Qualifier("bufferOccupancy") void setVideoBufferOccupancyImpl(IBestPractice bufferoccupancy); @Autowired @Qualifier("tcpConnection") void setTcpconnectionImpl(IBestPractice tcpconnection); @Autowired @Qualifier("chunkPacing") void setChunkpacingImpl(IBestPractice chunkpacing); @Autowired @Qualifier("chunkSize") void setChunksizeImpl(IBestPractice chunksize); @Autowired @Qualifier("videoRedundancy") void setVideoredundancyImpl(IBestPractice videoredundancy); @Autowired @Qualifier("videoConcurrentSession") void setVideoConcurrentSessionImpl(IBestPractice videoConcurrentSession); @Autowired @Qualifier("videoVariableBitrate") void setVideoVariableBitrateImpl(IBestPractice videoVariableBitrate); @Autowired @Qualifier("videoResolutionQuality") void setVideoResolutionQualityImpl(IBestPractice videoResolutionQuality); @Autowired @Qualifier("adaptiveBitrateLadder") void setvideoSegmentQualityImpl(IBestPractice videoSegmentQuality); @Autowired @Qualifier("audioStream") void setSeparateAudioImpl(IBestPractice audioStream); @Autowired @Qualifier("httpsUsage") void setHttpsUsage(IBestPractice httpsUsage); @Autowired @Qualifier("transmissionPrivateData") void setTransmissionPrivateData(IBestPractice transmissionPrivateData); @Autowired @Qualifier("unsecureSSLVersion") void setUnsecureSSLVersion(IBestPractice unsecureSSLVersion); @Autowired @Qualifier("weakCipher") void setWeakCipher(IBestPractice weakCipher); @Autowired @Qualifier("forwardSecrecy") void setForwardSecrecy(IBestPractice forwardSecrecy); @Override String getName(); @Override String getVersion(); @Override IPacketAnalyzer getAnalyzer(); @Override AROTraceData analyzeFile(List<BestPracticeType> requests, String traceFile); @Override AROTraceData analyzeFile(List<BestPracticeType> requests, String traceFile, Profile profile,
			AnalysisFilter filter); @Override AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory); @Override AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory, Profile profile,
			AnalysisFilter filter); @Override List<AbstractBestPracticeResult> analyze(PacketAnalyzerResult result, List<BestPracticeType> requests); @Override boolean isFile(String path); @Override boolean isFileExist(String path); @Override boolean isFolderExist(String path); @Override boolean getHtmlReport(String resultFilePath, AROTraceData results); @Override boolean getJSonReport(String resultFilePath, AROTraceData results); @Override String getDirectory(String path); @Override boolean isFileDirExist(String path); }
AROServiceImpl implements IAROService { @Override public AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory) throws IOException { return analyzeDirectory(requests, traceDirectory, null, null); }  @Autowired @Qualifier("jsongenerate") void setJsonreport(IReport jsonreport); @Autowired @Qualifier("htmlgenerate") void setHtmlreport(IReport htmlreport); @Autowired void setPacketAnalyzer(IPacketAnalyzer packetanalyzer); @Autowired void setCacheAnalysis(ICacheAnalysis cacheanalysis); @Autowired @Qualifier("periodicTransfer") void setPeriodicTransfer(IBestPractice periodicTransfer); @Autowired @Qualifier("unnecessaryConnection") void setUnnecessaryConnection(IBestPractice unnecessaryConnection); @Autowired @Qualifier("connectionOpening") void setConnectionOpening(IBestPractice connectionOpening); @Autowired @Qualifier("connectionClosing") void setConnectionClosing(IBestPractice connectionClosing); @Autowired @Qualifier("screenRotation") void setScreenRotation(IBestPractice screenRotation); @Autowired @Qualifier("accessingPeripheral") void setAccessingPeripheral(IBestPractice accessingPeripheral); @Autowired @Qualifier("combineCsJss") void setCombineCsJss(IBestPractice combineCsJss); @Autowired @Qualifier("http10Usage") void setHttp10Usage(IBestPractice http10Usage); @Autowired @Qualifier("cacheControl") void setCacheControl(IBestPractice cacheControl); @Autowired @Qualifier("usingCache") void setUsingCache(IBestPractice usingCache); @Autowired @Qualifier("duplicateContent") void setDuplicateContent(IBestPractice duplicateContent); @Autowired @Qualifier("http4xx5xx") void setHttp4xx5xx(IBestPractice http4xx5xx); @Autowired @Qualifier("simultaneous") void setSimultaneous(IBestPractice simultaneous); @Autowired @Qualifier("multipleSimultaneous") void setMultipleSimultaneous(IBestPractice multipleSimultaneous); @Autowired @Qualifier("http3xx") void setHttp3xx(IBestPractice http3xx); @Autowired @Qualifier("textFileCompression") void setTextFileCompression(IBestPractice textFileCompression); @Autowired @Qualifier("imageSize") void setImageSize(IBestPractice imageSize); @Autowired @Qualifier("imageMetadata") void setImageMdata(IBestPractice imageMetadata); @Autowired @Qualifier("imageCompression") void setImageCompression(IBestPractice imageCompression); @Autowired @Qualifier("imageFormat") void setImageFormat(IBestPractice imageFormat); @Autowired @Qualifier("uiComparator") void setUIComparator(IBestPractice uiComparator); @Autowired @Qualifier("minify") void setMinify(IBestPractice minify); @Autowired @Qualifier("emptyUrl") void setEmptyUrl(IBestPractice emptyUrl); @Autowired @Qualifier("spriteImage") void setSpriteImage(IBestPractice spriteImage); @Autowired @Qualifier("scripts") void setScripts(IBestPractice scripts); @Autowired @Qualifier("async") void setAsync(IBestPractice async); @Autowired @Qualifier("displaynoneincss") void setDisplayNoneInCSS(IBestPractice displaynoneincss); @Autowired @Qualifier("fileorder") void setFileOrder(IBestPractice fileorder); @Autowired @Qualifier("videoStall") void setVideoStallImpl(IBestPractice videoStall); @Autowired @Qualifier("networkComparison") void setVideoNetworkComparisonImpl(IBestPractice networkcomparison); @Autowired @Qualifier("startupDelay") void setVideoStartupDelayImpl(IBestPractice startupdelay); @Autowired @Qualifier("bufferOccupancy") void setVideoBufferOccupancyImpl(IBestPractice bufferoccupancy); @Autowired @Qualifier("tcpConnection") void setTcpconnectionImpl(IBestPractice tcpconnection); @Autowired @Qualifier("chunkPacing") void setChunkpacingImpl(IBestPractice chunkpacing); @Autowired @Qualifier("chunkSize") void setChunksizeImpl(IBestPractice chunksize); @Autowired @Qualifier("videoRedundancy") void setVideoredundancyImpl(IBestPractice videoredundancy); @Autowired @Qualifier("videoConcurrentSession") void setVideoConcurrentSessionImpl(IBestPractice videoConcurrentSession); @Autowired @Qualifier("videoVariableBitrate") void setVideoVariableBitrateImpl(IBestPractice videoVariableBitrate); @Autowired @Qualifier("videoResolutionQuality") void setVideoResolutionQualityImpl(IBestPractice videoResolutionQuality); @Autowired @Qualifier("adaptiveBitrateLadder") void setvideoSegmentQualityImpl(IBestPractice videoSegmentQuality); @Autowired @Qualifier("audioStream") void setSeparateAudioImpl(IBestPractice audioStream); @Autowired @Qualifier("httpsUsage") void setHttpsUsage(IBestPractice httpsUsage); @Autowired @Qualifier("transmissionPrivateData") void setTransmissionPrivateData(IBestPractice transmissionPrivateData); @Autowired @Qualifier("unsecureSSLVersion") void setUnsecureSSLVersion(IBestPractice unsecureSSLVersion); @Autowired @Qualifier("weakCipher") void setWeakCipher(IBestPractice weakCipher); @Autowired @Qualifier("forwardSecrecy") void setForwardSecrecy(IBestPractice forwardSecrecy); @Override String getName(); @Override String getVersion(); @Override IPacketAnalyzer getAnalyzer(); @Override AROTraceData analyzeFile(List<BestPracticeType> requests, String traceFile); @Override AROTraceData analyzeFile(List<BestPracticeType> requests, String traceFile, Profile profile,
			AnalysisFilter filter); @Override AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory); @Override AROTraceData analyzeDirectory(List<BestPracticeType> requests, String traceDirectory, Profile profile,
			AnalysisFilter filter); @Override List<AbstractBestPracticeResult> analyze(PacketAnalyzerResult result, List<BestPracticeType> requests); @Override boolean isFile(String path); @Override boolean isFileExist(String path); @Override boolean isFolderExist(String path); @Override boolean getHtmlReport(String resultFilePath, AROTraceData results); @Override boolean getJSonReport(String resultFilePath, AROTraceData results); @Override String getDirectory(String path); @Override boolean isFileDirExist(String path);  }