CandidateLine { @Override public final String toString() { StringBuilder sb = new StringBuilder(); sb.append("line: ").append(line.getID()); sb.append(" rating: ").append(rating); sb.append(" projectionAlongLine: ").append(projectionAlongLine).append("m"); return sb.toString(); } CandidateLine(final Line l, final int r, final int projection);  CandidateLine(final Line l, final int r); private  CandidateLine(); final boolean isValid(); final Line getLine(); final int getRating(); final int getProjectionAlongLine(); final boolean hasProjectionAlongLine(); @Override final String toString(); final boolean hasSameLine(final CandidateLine cl); final void setNewRating(final int rate, final int lengthAlong); static final CandidateLine INVALID; }
@Test public final void testToString() { TestData td = TestData.getInstance(); CandidateLine line = new CandidateLine(td.getMapDatabase().getLine(1), RATIO_1000, -1); assertNotNull(line.toString()); }
@Test public final void testToStringPair() { CandidateLinePair pair = new CandidateLinePair(0, 1, Integer.MAX_VALUE); assertNotNull(pair.toString()); }