@Test public void testApplyTo_all_traceElement() { FwFromHostService from = new FwFromHostService(HostSystemService.ALL); List<ExprAclLine> lines = new ArrayList<>(); from.applyTo(lines, null); List<HostSystemService> unhandledServices = ImmutableList.of( HostSystemService.ALL, HostSystemService.ANY_SERVICE, HostSystemService.IDENT_RESET, HostSystemService.LSPING); List<TraceElement> expectedTraceElements = Stream.of(HostSystemService.values()) .filter(hs -> !unhandledServices.contains(hs)) .map(HostSystemService::getTraceElement) .collect(ImmutableList.toImmutableList()); assertThat( lines.stream().map(ExprAclLine::getTraceElement).collect(ImmutableList.toImmutableList()), equalTo(expectedTraceElements)); }
public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_service.getLines()); }
FwFromHostService implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_service.getLines()); } }
FwFromHostService implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_service.getLines()); } FwFromHostService(HostSystemService service); }
FwFromHostService implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_service.getLines()); } FwFromHostService(HostSystemService service); void applyTo(List<? super ExprAclLine> lines, Warnings w); }
FwFromHostService implements Serializable { public void applyTo(List<? super ExprAclLine> lines, Warnings w) { lines.addAll(_service.getLines()); } FwFromHostService(HostSystemService service); void applyTo(List<? super ExprAclLine> lines, Warnings w);  }