@Test public void toStringContainsTheNameAndNumber(){ final ResponseCode code = ResponseCode.OK; final String text = code.toString(); assertEquals("OK(200)", text); }
@Override public String toString() { return name + "(" + value + ")"; }
ResponseCode { @Override public String toString() { return name + "(" + value + ")"; } }
ResponseCode { @Override public String toString() { return name + "(" + value + ")"; } private  ResponseCode(int value, String name); }
ResponseCode { @Override public String toString() { return name + "(" + value + ")"; } private  ResponseCode(int value, String name); static ResponseCode forCode(int a); int value(); boolean is300Series(); String name(); @Override String toString(); @Override boolean equals(Object other); String show(); boolean eq(ResponseCode that); }
ResponseCode { @Override public String toString() { return name + "(" + value + ")"; } private  ResponseCode(int value, String name); static ResponseCode forCode(int a); int value(); boolean is300Series(); String name(); @Override String toString(); @Override boolean equals(Object other); String show(); boolean eq(ResponseCode that); static final ResponseCode CONTINUE; }