diff options
Diffstat (limited to 'test/com/isode')
-rw-r--r-- | test/com/isode/stroke/parser/payloadparsers/CommandParserTest.java | 4 | ||||
-rw-r--r-- | test/com/isode/stroke/parser/payloadparsers/FormParserTest.java | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/test/com/isode/stroke/parser/payloadparsers/CommandParserTest.java b/test/com/isode/stroke/parser/payloadparsers/CommandParserTest.java index 4c9854b..53dc0b3 100644 --- a/test/com/isode/stroke/parser/payloadparsers/CommandParserTest.java +++ b/test/com/isode/stroke/parser/payloadparsers/CommandParserTest.java @@ -27,14 +27,12 @@ import com.isode.stroke.elements.Command.Note.Type; import com.isode.stroke.eventloop.DummyEventLoop; public class CommandParserTest { - private static DummyEventLoop eventLoop; - @BeforeClass public static void init() throws Exception { - eventLoop = new DummyEventLoop(); } private static Command parse(String xmlString) { + DummyEventLoop eventLoop = new DummyEventLoop(); PayloadsParserTester parser = new PayloadsParserTester(eventLoop); assertTrue(parser.parse(xmlString)); diff --git a/test/com/isode/stroke/parser/payloadparsers/FormParserTest.java b/test/com/isode/stroke/parser/payloadparsers/FormParserTest.java index b57e7d8..5dace99 100644 --- a/test/com/isode/stroke/parser/payloadparsers/FormParserTest.java +++ b/test/com/isode/stroke/parser/payloadparsers/FormParserTest.java @@ -30,14 +30,12 @@ import com.isode.stroke.eventloop.DummyEventLoop; import com.isode.stroke.jid.JID; public class FormParserTest { - private static DummyEventLoop eventLoop; - @BeforeClass public static void init() throws Exception { - eventLoop = new DummyEventLoop(); } private static Form parse(String xmlString) { + DummyEventLoop eventLoop = new DummyEventLoop(); PayloadsParserTester parser = new PayloadsParserTester(eventLoop); assertTrue(parser.parse(xmlString)); |