@Test void shouldShowLinesOfConsoleLogStartAt10() { ConsoleDetail consoleDetail = new ConsoleDetail(mock(Run.class), createLines(1, 30), 11, 11); assertThat(consoleDetail.getSourceCode()).contains("<td >1</td>"); assertThat(consoleDetail.getSourceCode()).contains("<td >10</td>"); assertThat(consoleDetail.getSourceCode()).contains("#FCAF3E\">11</td>"); assertThat(consoleDetail.getSourceCode()).contains("<td >12</td>"); assertThat(consoleDetail.getSourceCode()).contains("<td >21</td>"); assertThat(consoleDetail.getSourceCode()).doesNotContain("<td >22</td>"); }
@SuppressWarnings("unused") public String getSourceCode() { return sourceCode; }
ConsoleDetail implements ModelObject { @SuppressWarnings("unused") public String getSourceCode() { return sourceCode; } }
ConsoleDetail implements ModelObject { @SuppressWarnings("unused") public String getSourceCode() { return sourceCode; } ConsoleDetail(final Run<?, ?> owner, final Stream<String> consoleLog, final int from, final int to); }
ConsoleDetail implements ModelObject { @SuppressWarnings("unused") public String getSourceCode() { return sourceCode; } ConsoleDetail(final Run<?, ?> owner, final Stream<String> consoleLog, final int from, final int to); @Override String getDisplayName(); @SuppressWarnings("unused") // Called by jelly view to show the side panel Run<?, ?> getOwner(); @SuppressWarnings("unused") // Called by jelly view String getSourceCode(); }
ConsoleDetail implements ModelObject { @SuppressWarnings("unused") public String getSourceCode() { return sourceCode; } ConsoleDetail(final Run<?, ?> owner, final Stream<String> consoleLog, final int from, final int to); @Override String getDisplayName(); @SuppressWarnings("unused") // Called by jelly view to show the side panel Run<?, ?> getOwner(); @SuppressWarnings("unused") // Called by jelly view String getSourceCode();  }