import static org.junit.Assert.*; import org.junit.Test; public class TriangleCheckerTest { @Test public void testNotATriangle() { assertFalse(TriangleChecker.isTriangle(1, 2, 3)); assertFalse(TriangleChecker.isTriangle(0, 0, 0)); assertFalse(TriangleChecker.isTriangle(1, 1, 3)); } @Test public void testEquilateral() { assertTrue(TriangleChecker.isEquilateral(3, 3, 3)); assertFalse(TriangleChecker.isEquilateral(3, 3, 4)); } @Test public void testIsosceles() { assertTrue(TriangleChecker.isIsosceles(3, 3, 4)); assertTrue(TriangleChecker.isIsosceles(3, 4, 3)); assertFalse(TriangleChecker.isIsosceles(3, 4, 5)); } @Test public void testRightTriangle() { assertTrue(TriangleChecker.isRight(3, 4, 5)); assertTrue(TriangleChecker.isRight(5, 3, 4)); assertFalse(TriangleChecker.isRight(3, 3, 3)); } @Test public void testScalene() { assertTrue(TriangleChecker.isTriangle(5, 4, 3)); assertFalse(TriangleChecker.isIsosceles(5, 4, 3)); assertTrue(TriangleChecker.isRight(5, 4, 3)); } }