comparison test/org/nwoca/ssdt/tools/html2wiki/Html2WikiTest.java @ 4:22ed6d93442c

Start modifying transformers to Confluence wiki syntax
author smith@nwoca.org
date Tue, 25 Jan 2011 21:59:31 -0500
parents 5da2e67620f9
children c8442e0eff84
comparison
equal deleted inserted replaced
3:4417b025157e 4:22ed6d93442c
34 TestSuite suite = new TestSuite(Html2WikiTest.class); 34 TestSuite suite = new TestSuite(Html2WikiTest.class);
35 35
36 return suite; 36 return suite;
37 } 37 }
38 38
39 public void testChapterParsing() throws Exception { 39 // public void testChapterParsing() throws Exception {
40 40 //
41 File f = new File(path, "sysman_handbook.html"); 41 // File f = new File(path, "sysman_handbook.html");
42 42 //
43 Html2Wiki converter = new Html2Wiki(FileUtils.readFileToString(f, null)); 43 // Html2Wiki converter = new Html2Wiki(FileUtils.readFileToString(f, null));
44 44 //
45 Html2Wiki.WikiChapter[] chapters = converter.getWikiChapters(); 45 // Html2Wiki.WikiChapter[] chapters = converter.getWikiChapters();
46 46 //
47 assertTrue( chapters.length > 0); 47 // assertTrue( chapters.length > 0);
48 for (Html2Wiki.WikiChapter c : chapters) { 48 // for (Html2Wiki.WikiChapter c : chapters) {
49 System.out.println(c); 49 // System.out.println(c);
50 } 50 // }
51 } 51 // }
52 52
53 /** 53 /**
54 * Test of main method, of class org.nwoca.ssdt.tools.html2wiki.Html2Wiki. 54 * Test of main method, of class org.nwoca.ssdt.tools.html2wiki.Html2Wiki.
55 // */ 55 // */
56 // public void testMain() throws Exception { 56 public void testMain() throws Exception {
57 // System.out.println("main"); 57 // System.out.println("main");
58 // 58 //
59 // File path = new File(Html2WikiTest.class.getResource("/resources").toURI()); 59 // File path = new File(Html2WikiTest.class.getResource("/resources").toURI());
60 // System.out.println(path); 60 // System.out.println(path);
61 // Html2Wiki.main(new String[]{path.toString(), "OECN System Managers Handbook"}); 61 Html2Wiki.main( new String[] {path.toString(), "OECN System Managers Handbook"});
62 // 62 //
63 // } 63 }
64 } 64 }