@Test public void testGetInMessage() throws ProvidenceConfigException { assertEquals("44", ProvidenceConfigUtil.getInMessage(declaration, "decl_const.value")); assertEquals("Name", ProvidenceConfigUtil.getInMessage(declaration, "decl_const.name")); assertEquals("44", ProvidenceConfigUtil.getInMessage(declaration, "decl_const.value", "66")); assertEquals(null, ProvidenceConfigUtil.getInMessage(declaration, "decl_const.documentation")); assertThat(ProvidenceConfigUtil.getInMessage(service, "name"), is("stage")); assertThat(ProvidenceConfigUtil.getInMessage(service, "admin"), is(nullValue())); ServicePort def = ServicePort.builder().build(); assertThat(ProvidenceConfigUtil.getInMessage(service, "admin", def), is(sameInstance(def))); }
static Object getInMessage(PMessage message, String key) throws ProvidenceConfigException { return getInMessage(message, key, null); }
ProvidenceConfigUtil { static Object getInMessage(PMessage message, String key) throws ProvidenceConfigException { return getInMessage(message, key, null); } }
ProvidenceConfigUtil { static Object getInMessage(PMessage message, String key) throws ProvidenceConfigException { return getInMessage(message, key, null); } private  ProvidenceConfigUtil(); }
ProvidenceConfigUtil { static Object getInMessage(PMessage message, String key) throws ProvidenceConfigException { return getInMessage(message, key, null); } private  ProvidenceConfigUtil(); static Path canonicalFileLocation(@Nonnull Path file); }
ProvidenceConfigUtil { static Object getInMessage(PMessage message, String key) throws ProvidenceConfigException { return getInMessage(message, key, null); } private  ProvidenceConfigUtil(); static Path canonicalFileLocation(@Nonnull Path file); static final String UNDEFINED; }