@Test @Ignore public void configureThorntailHealthPort() { setupExpectations(); final ThorntailV2HealthCheckEnricher thorntailV2HealthCheckEnricher = new ThorntailV2HealthCheckEnricher(context); final int port = thorntailV2HealthCheckEnricher.getPort(); Assert.assertEquals(8082, port); }
protected int getPort() { final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); properties.putAll(System.getProperties()); if (properties.containsKey("thorntail.http.port")) { return Integer.parseInt((String) properties.get("thorntail.http.port")); } return Configs.asInt(getConfig(Config.port)); }
ThorntailV2HealthCheckEnricher extends AbstractHealthCheckEnricher { protected int getPort() { final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); properties.putAll(System.getProperties()); if (properties.containsKey("thorntail.http.port")) { return Integer.parseInt((String) properties.get("thorntail.http.port")); } return Configs.asInt(getConfig(Config.port)); } }
ThorntailV2HealthCheckEnricher extends AbstractHealthCheckEnricher { protected int getPort() { final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); properties.putAll(System.getProperties()); if (properties.containsKey("thorntail.http.port")) { return Integer.parseInt((String) properties.get("thorntail.http.port")); } return Configs.asInt(getConfig(Config.port)); } ThorntailV2HealthCheckEnricher(MavenEnricherContext buildContext); }
ThorntailV2HealthCheckEnricher extends AbstractHealthCheckEnricher { protected int getPort() { final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); properties.putAll(System.getProperties()); if (properties.containsKey("thorntail.http.port")) { return Integer.parseInt((String) properties.get("thorntail.http.port")); } return Configs.asInt(getConfig(Config.port)); } ThorntailV2HealthCheckEnricher(MavenEnricherContext buildContext);  }
ThorntailV2HealthCheckEnricher extends AbstractHealthCheckEnricher { protected int getPort() { final Properties properties = ThorntailUtil.getThorntailProperties(getContext().getProjectClassLoaders().getCompileClassLoader()); properties.putAll(System.getProperties()); if (properties.containsKey("thorntail.http.port")) { return Integer.parseInt((String) properties.get("thorntail.http.port")); } return Configs.asInt(getConfig(Config.port)); } ThorntailV2HealthCheckEnricher(MavenEnricherContext buildContext);  static final String IO_THORNTAIL; }