@Test void checkDefaultHttpPortConfiguration() { ListenPort defaultHttp = ListenPortEntityBuilder.createDefaultHttp(); Assertions.assertEquals(ListenPort.HTTP_DEFAULT_PORT.intValue(), defaultHttp.getPort()); Assertions.assertEquals(ListenPort.PROTOCOL_HTTP, defaultHttp.getProtocol()); assertTrue(defaultHttp.getEnabledFeatures().containsAll(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); }
@NotNull static ListenPort createDefaultHttp() { ListenPort defaultHttp = new ListenPort(); defaultHttp.setPort(ListenPort.HTTP_DEFAULT_PORT); defaultHttp.setProtocol(ListenPort.PROTOCOL_HTTP); defaultHttp.setEnabledFeatures(new HashSet<>(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); return defaultHttp; }
ListenPortEntityBuilder implements EntityBuilder { @NotNull static ListenPort createDefaultHttp() { ListenPort defaultHttp = new ListenPort(); defaultHttp.setPort(ListenPort.HTTP_DEFAULT_PORT); defaultHttp.setProtocol(ListenPort.PROTOCOL_HTTP); defaultHttp.setEnabledFeatures(new HashSet<>(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); return defaultHttp; } }
ListenPortEntityBuilder implements EntityBuilder { @NotNull static ListenPort createDefaultHttp() { ListenPort defaultHttp = new ListenPort(); defaultHttp.setPort(ListenPort.HTTP_DEFAULT_PORT); defaultHttp.setProtocol(ListenPort.PROTOCOL_HTTP); defaultHttp.setEnabledFeatures(new HashSet<>(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); return defaultHttp; } @Inject  ListenPortEntityBuilder(IdGenerator idGenerator); }
ListenPortEntityBuilder implements EntityBuilder { @NotNull static ListenPort createDefaultHttp() { ListenPort defaultHttp = new ListenPort(); defaultHttp.setPort(ListenPort.HTTP_DEFAULT_PORT); defaultHttp.setProtocol(ListenPort.PROTOCOL_HTTP); defaultHttp.setEnabledFeatures(new HashSet<>(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); return defaultHttp; } @Inject  ListenPortEntityBuilder(IdGenerator idGenerator); @Override List<Entity> build(Bundle bundle, BundleType bundleType, Document document); @NotNull @Override Integer getOrder(); }
ListenPortEntityBuilder implements EntityBuilder { @NotNull static ListenPort createDefaultHttp() { ListenPort defaultHttp = new ListenPort(); defaultHttp.setPort(ListenPort.HTTP_DEFAULT_PORT); defaultHttp.setProtocol(ListenPort.PROTOCOL_HTTP); defaultHttp.setEnabledFeatures(new HashSet<>(asList(Feature.MESSAGE_INPUT.getDescription(), Feature.POLICYDISCO.getDescription(), Feature.PING.getDescription(), Feature.STS.getDescription(), Feature.WSDLPROXY.getDescription(), Feature.SNMPQUERY.getDescription()))); return defaultHttp; } @Inject  ListenPortEntityBuilder(IdGenerator idGenerator); @Override List<Entity> build(Bundle bundle, BundleType bundleType, Document document); @NotNull @Override Integer getOrder();  }