@Test public void testGetMessage() { assertEquals("Port specified is invalid.", pnrNull.getMessage()); assertEquals("Port specified is invalid (0).", pnrOne.getMessage()); }
protected String getMessage() { return "Port specified is invalid" + (port != null ? " (" + port + ")." : "."); }
PortNumberRule implements Rule { protected String getMessage() { return "Port specified is invalid" + (port != null ? " (" + port + ")." : "."); } }
PortNumberRule implements Rule { protected String getMessage() { return "Port specified is invalid" + (port != null ? " (" + port + ")." : "."); } PortNumberRule(final Integer thePort, final FaultType errorCode);  PortNumberRule(final Integer thePort, final FaultType errorCode, final boolean nullable); }
PortNumberRule implements Rule { protected String getMessage() { return "Port specified is invalid" + (port != null ? " (" + port + ")." : "."); } PortNumberRule(final Integer thePort, final FaultType errorCode);  PortNumberRule(final Integer thePort, final FaultType errorCode, final boolean nullable); @Override boolean isValid(); @Override void validate(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
PortNumberRule implements Rule { protected String getMessage() { return "Port specified is invalid" + (port != null ? " (" + port + ")." : "."); } PortNumberRule(final Integer thePort, final FaultType errorCode);  PortNumberRule(final Integer thePort, final FaultType errorCode, final boolean nullable); @Override boolean isValid(); @Override void validate(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }