Permalink
Browse files

Avoid having test depend on test methods execution order

  • Loading branch information...
1 parent 10a7f70 commit b764bae112ea3add27fc318de3c4aec108f793fc @aaime aaime committed Oct 27, 2012
@@ -44,32 +44,14 @@
* @source $URL$
*/
public class StyleFactoryImplTest extends TestCase {
- static StyleFactory styleFactory;
+ static StyleFactory styleFactory = CommonFactoryFinder.getStyleFactory(null);
static FilterFactory filterFactory = CommonFactoryFinder.getFilterFactory(null);
static SimpleFeature feature;
protected static final Logger LOGGER = org.geotools.util.logging.Logging.getLogger("org.geotools.styling");
- public StyleFactoryImplTest(java.lang.String testName) {
- super(testName);
-
- feature = null;
- }
-
- public static void main(java.lang.String[] args) {
- junit.textui.TestRunner.run(suite());
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite(StyleFactoryImplTest.class);
-
- return suite;
- }
-
public void testCommonFactoryFinder() {
LOGGER.finer("testCreateStyle");
- styleFactory = CommonFactoryFinder.getStyleFactory(null);
-
assertNotNull("Failed to build styleFactory", styleFactory);
}

0 comments on commit b764bae

Please sign in to comment.