package uk.me.mjt.ch;

import java.util.HashMap;
import org.junit.Test;
import static org.junit.Assert.*;

public class UtilTest {
    
    public UtilTest() {
    }
    
    @Test
    public void testDeepEquals_HashMap_HashMap() {
        System.out.println("deepEquals");
        MapData a = MakeTestData.makeSimpleThreeEntry();
        MapData b = MakeTestData.makeSimpleThreeEntry();
        assertTrue(Util.deepEquals(a, b, false));
        
        Node n = a.getNodeById(2L);
        n.edgesFrom.remove(0);
        
        assertFalse(Util.deepEquals(a, b, false));
    }
    
}

@@ -20,34 +20,8 @@
 h;%0A%0A
-import java.util.HashMap;%0A
 impo
@@ -39,16 +39,16 @@
 t.Test;%0A
+
 import s
@@ -388,36 +388,35 @@
 eepEquals(a, b, 
-fals
+tru
 e));%0A        %0A  
@@ -535,12 +535,355 @@
  b, 
-fals
+true));%0A    %7D%0A    %0A    @Test%0A    public void testNodeEquality() %7B%0A        MapData a = MakeTestData.makeSimpleThreeEntry();%0A        MapData b = MakeTestData.makeSimpleThreeEntry();%0A        %0A        assertTrue(Util.deepEquals(a.getNodeById(2L), b.getNodeById(2L), true));%0A        assertFalse(Util.deepEquals(a.getNodeById(2L), b.getNodeById(3L), tru
 e));

Improve test coverage of util class.