Package uk.ac.cam.ch.wwmm.oscar3.preprocessor

Examples of uk.ac.cam.ch.wwmm.oscar3.preprocessor.PlainTextPreprocessor.process()


    HTMLPreprocessor pp = new HTMLPreprocessor();
    File file = new File("target/test/junit_test.html");
    FileWriter fw = new FileWriter(file);
    fw.write("<html><head><title>Test HTML</title></head><body><p>Paragraph1</p><p>Paragraph2</p></body></html>");
    fw.close();
    assertTrue(pp.process(file) != null);
  }
}
View Full Code Here


    PlainTextPreprocessor pp = new PlainTextPreprocessor();
    File file = new File("target/test/junit_test.txt");
    FileWriter fw = new FileWriter(file);
    fw.write("Test Plain Text\n\nParagraph1\nParagraph2\n");
    fw.close();
    assertTrue(pp.process(file) != null);
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.