private void normalizeTest(String weird, String normal) throws Exception {
String testSrcDir = System.getProperty("test.src.dir");
String path = testSrcDir + "/org/apache/nutch/net/test-regex-normalize.xml";
RegexUrlNormalizer normalizer = new RegexUrlNormalizer(path);
assertEquals(normal, normalizer.normalize(weird));
}
public static void main(String[] args) throws Exception {
new TestRegexUrlNormalizer("test").testNormalizer();
new TestBasicUrlNormalizer("test").testNormalizer(); // need to make sure it passes this test too