package com.crawljax.util;

import static org.junit.Assert.assertEquals;

import java.io.File;

import org.junit.Test;

public class PrettyHTMLTest {

	private static final String TESTFILE = "src/test/java/com/crawljax/util/tuduDombefore.html";
	private static final String CONTROLFILE =
	        "src/test/java/com/crawljax/util/tuduDombefore.html.tidy";

	@Test
	public void prettifyHTML() {
		String testdom = Helper.getContent(new File(TESTFILE));
		String controldom = Helper.getContent(new File(CONTROLFILE));

		testdom = PrettyHTML.prettyHTML(testdom);

		assertEquals(controldom, testdom);
	}
}

@@ -65,16 +65,62 @@
 tEquals;
+%0Aimport static org.junit.Assert.assertNotNull;
 %0A%0Aimport
@@ -556,16 +556,118 @@
 ILE));%0A%0A
+%09%09assertNotNull(%22File should be read%22, testdom);%0A%09%09assertNotNull(%22File should be read%22, controldom);%0A%0A
 %09%09testdo

Make sure the files are loaded correctly