Triangle { public String toString() { String output = "" + s1 + ", " + s2 + ", " + s3 + " (" + getClassification() + ")"; return output; } Triangle(double side1, double side2, double side3); double getS1(); double getS2(); double getS3(); String getClassification(); double perimeter(); boolean equals(Object o); int hashCode(); String toString();  }
@Test public void toStringTest() { Triangle t = new Triangle(7, 10, 7); Assert.assertEquals("toString test", true, t.toString().contains("7.0, 10.0, 7.0 (isosceles)")); }