@Test public void isTpPort() { assertTrue("is not proper transport port", cfg.isTpPort(TP_PORT, MANDATORY)); assertTrue("is not proper transport port", cfg.isTpPort(TP_PORT, OPTIONAL)); assertTrue("is not proper transport port", cfg.isTpPort("none", OPTIONAL)); assertTrue("did not detect missing field", expectInvalidField(() -> cfg.isTpPort("none", MANDATORY))); assertTrue("is not proper transport port", expectInvalidField(() -> cfg.isTpPort(BAD_TP_PORT, MANDATORY))); }
protected boolean isTpPort(String field, FieldPresence presence) { return isTpPort(object, field, presence); }
Config { protected boolean isTpPort(String field, FieldPresence presence) { return isTpPort(object, field, presence); } }
Config { protected boolean isTpPort(String field, FieldPresence presence) { return isTpPort(object, field, presence); }  }
Config { protected boolean isTpPort(String field, FieldPresence presence) { return isTpPort(object, field, presence); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply(); }
Config { protected boolean isTpPort(String field, FieldPresence presence) { return isTpPort(object, field, presence); }  final void init(S subject, String key, JsonNode node, ObjectMapper mapper,
                     ConfigApplyDelegate delegate); boolean isValid(); S subject(); String key(); JsonNode node(); void apply();  }