@Test public void testApplyTo_bgp() { FwFromHostService from = new FwFromHostService(HostSystemService.DNS); List<ExprAclLine> lines = new ArrayList<>(); from.applyTo(lines, null); assertThat( lines, equalTo( ImmutableList.of( new ExprAclLine( LineAction.PERMIT, new MatchHeaderSpace( HeaderSpace.builder() .setIpProtocols(ImmutableSortedSet.of(IpProtocol.TCP, IpProtocol.UDP)) .setDstPorts( ImmutableSet.of(SubRange.singleton(NamedPort.DOMAIN.number()))) .build()), null, HostSystemService.DNS.getTraceElement())))); }
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);  }