@Test public void runTest_resIsNoError(){ tracedata = Mockito.mock(PacketAnalyzerResult.class); connOpenImpl = (ConnectionOpeningImpl)context.getBean("connectionOpening"); AbstractBestPracticeResult result = connOpenImpl.runTest(tracedata); assertEquals(result.getResultType(), BPResultType.SELF_TEST); }
@Override public AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata) { ConnectionOpeningResult result = new ConnectionOpeningResult(); result.setSelfTest(true); result.setAboutText(aboutText); result.setDetailTitle(detailTitle); result.setLearnMoreUrl(learnMoreUrl); result.setOverviewTitle(overviewTitle); result.setResultText(textResult); result.setResultType(BPResultType.SELF_TEST); return result; }
ConnectionOpeningImpl implements IBestPractice { @Override public AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata) { ConnectionOpeningResult result = new ConnectionOpeningResult(); result.setSelfTest(true); result.setAboutText(aboutText); result.setDetailTitle(detailTitle); result.setLearnMoreUrl(learnMoreUrl); result.setOverviewTitle(overviewTitle); result.setResultText(textResult); result.setResultType(BPResultType.SELF_TEST); return result; } }
ConnectionOpeningImpl implements IBestPractice { @Override public AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata) { ConnectionOpeningResult result = new ConnectionOpeningResult(); result.setSelfTest(true); result.setAboutText(aboutText); result.setDetailTitle(detailTitle); result.setLearnMoreUrl(learnMoreUrl); result.setOverviewTitle(overviewTitle); result.setResultText(textResult); result.setResultType(BPResultType.SELF_TEST); return result; }  }
ConnectionOpeningImpl implements IBestPractice { @Override public AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata) { ConnectionOpeningResult result = new ConnectionOpeningResult(); result.setSelfTest(true); result.setAboutText(aboutText); result.setDetailTitle(detailTitle); result.setLearnMoreUrl(learnMoreUrl); result.setOverviewTitle(overviewTitle); result.setResultText(textResult); result.setResultType(BPResultType.SELF_TEST); return result; }  @Override AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata); }
ConnectionOpeningImpl implements IBestPractice { @Override public AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata) { ConnectionOpeningResult result = new ConnectionOpeningResult(); result.setSelfTest(true); result.setAboutText(aboutText); result.setDetailTitle(detailTitle); result.setLearnMoreUrl(learnMoreUrl); result.setOverviewTitle(overviewTitle); result.setResultText(textResult); result.setResultType(BPResultType.SELF_TEST); return result; }  @Override AbstractBestPracticeResult runTest(PacketAnalyzerResult tracedata);  }