src/test/java/eu/digitisation/math/PairTest.java
@Test
    public void testEquals() {
        System.out.println("equals");
        Object o = null;
        Pair<String, String> p1 = new Pair<String, String>("a", "b");
        Pair<String, String> p2 = new Pair<String, String>("a", "b");
        Pair<String, String> p3 = new Pair<String, String>("a", "c");
        assert (p1.equals(p2));
        assert (!p1.equals(p3));
    }
/**
     * Test of equals method, of class Pair.
     */
Test of equals method, of class Pair.
Test of equals method of class Pair .
@Test
    public void testEquals() {
        System.out.println("equals");
        Object o = null;
        Pair<String, String> p1 = new Pair<String, String>("a", "b");
        Pair<String, String> p2 = new Pair<String, String>("a", "b");
        Pair<String, String> p3 = new Pair<String, String>("a", "c");
        assert (p1.equals(p2));
        assert (!p1.equals(p3));
    }
@ Test public void testEquals ( ) { System . out . println ( "equals" ) ; Object o = null ; Pair < String , String > p1 = new Pair < String , String > ( "a" , "b" ) ; Pair < String , String > p2 = new Pair < String , String > ( "a" , "b" ) ; Pair < String , String > p3 = new Pair < String , String > ( "a" , "c" ) ; assert ( p1 . equals ( p2 ) ) ; assert ( ! p1 . equals ( p3 ) ) ; }
Test of equals method, of class Pair.
Test of equals method of class Pair .