From: Alan E. <ala...@gm...> - 2006-08-02 15:34:09
|
I'm playing around with junit 4.1 now. It's much nicer than version 3, and takes advantages of the Java 1.5 annotations, which is quite nice. So now I need to write a unit-test to reproduce a problem I am having with Lucene. I'm wondering how to initialize the unit test. Should it just start up the whole jEdit application? Or is there a way I can test the routines directly. Since the classes I want to test depend on jedit, and do things like jEdit.getProperty(), I need the property system to be loaded. Has anyone else written unit tests for pieces of jedit? How do you initialize your tests? |