@Test public void testToString() { PendingToken instance = new PendingToken("abc", 0, 4); String expResult = "PendingToken{abc<<< start=0,end=4,nonpos=false}"; String result = instance.toString(); assertEquals("PendingToken toString()", expResult, result); instance.nonpos = true; expResult = "PendingToken{abc<<< start=0,end=4,nonpos=true}"; result = instance.toString(); assertEquals("PendingToken toString()", expResult, result); }
@Override public String toString() { return "PendingToken{" + str + "<<< start=" + start + ",end=" + end + ",nonpos=" + nonpos + '}'; }
PendingToken { @Override public String toString() { return "PendingToken{" + str + "<<< start=" + start + ",end=" + end + ",nonpos=" + nonpos + '}'; } }
PendingToken { @Override public String toString() { return "PendingToken{" + str + "<<< start=" + start + ",end=" + end + ",nonpos=" + nonpos + '}'; } PendingToken(String str, int start, int end); }
PendingToken { @Override public String toString() { return "PendingToken{" + str + "<<< start=" + start + ",end=" + end + ",nonpos=" + nonpos + '}'; } PendingToken(String str, int start, int end); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
PendingToken { @Override public String toString() { return "PendingToken{" + str + "<<< start=" + start + ",end=" + end + ",nonpos=" + nonpos + '}'; } PendingToken(String str, int start, int end); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); final String str; final int start; final int end; public boolean nonpos; }