diff options
author | Jiri Vanek <[email protected]> | 2012-06-05 16:35:50 +0200 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2012-06-05 16:35:50 +0200 |
commit | 1cca1c5e81351cd83d82a337a6b0ce660c3c00ae (patch) | |
tree | 5ee56bdfb81eefbb205798db5edcef3dfb86ae6a /tests/netx/unit/net/sourceforge | |
parent | 31100d1348be0847c96afb270089161da41ca9ed (diff) |
Added KnownToFail annotation
Diffstat (limited to 'tests/netx/unit/net/sourceforge')
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java b/tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java index 387f4fc..e9e49be 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java +++ b/tests/netx/unit/net/sourceforge/jnlp/JNLPMatcherTest.java @@ -42,6 +42,7 @@ import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringReader; import java.util.Random; +import net.sourceforge.jnlp.annotations.KnownToFail; import org.junit.Assert; import org.junit.Test; @@ -79,6 +80,7 @@ public class JNLPMatcherTest { } @Test + @KnownToFail public void testTemplateCDATA() throws JNLPMatcherException, IOException { InputStreamReader launchReader = this.getLaunchReader(); @@ -240,6 +242,7 @@ public class JNLPMatcherTest { } @Test + @KnownToFail public void testApplicationCDATA() throws JNLPMatcherException, IOException { InputStreamReader launchReader = this.getLaunchReader(); diff --git a/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java b/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java index 3e34684..00aa5d9 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java +++ b/tests/netx/unit/net/sourceforge/jnlp/ParserCornerCases.java @@ -40,6 +40,7 @@ package net.sourceforge.jnlp; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.StringReader; +import net.sourceforge.jnlp.annotations.KnownToFail; import net.sourceforge.nanoxml.XMLElement; import net.sourceforge.nanoxml.XMLParseException; @@ -99,6 +100,7 @@ public class ParserCornerCases { } @Test + @KnownToFail public void testCDataFirstChild() throws XMLParseException, IOException { String xml = "<?xml version=\"1.0\"?>\n" + "<jnlp spec=\"1.5+\">\n" + @@ -110,6 +112,7 @@ public class ParserCornerCases { } @Test + @KnownToFail public void testCDataSecondChild() throws XMLParseException, IOException { String xml = "<?xml version=\"1.0\"?>\n" + "<jnlp spec=\"1.5+\">\n" + @@ -153,6 +156,7 @@ public class ParserCornerCases { } @Test + @KnownToFail public void testCommentInAttributes() throws ParseException { String malformedJnlp = "<?xml?><jnlp spec='<!-- something -->'></jnlp>"; Node root = Parser.getRootNode(new ByteArrayInputStream(malformedJnlp.getBytes())); diff --git a/tests/netx/unit/net/sourceforge/jnlp/ParserMalformedXml.java b/tests/netx/unit/net/sourceforge/jnlp/ParserMalformedXml.java index fe377d2..2c30970 100644 --- a/tests/netx/unit/net/sourceforge/jnlp/ParserMalformedXml.java +++ b/tests/netx/unit/net/sourceforge/jnlp/ParserMalformedXml.java @@ -42,6 +42,7 @@ import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.InputStreamReader; import java.io.IOException; +import net.sourceforge.jnlp.annotations.KnownToFail; import org.junit.BeforeClass; import org.junit.Test; @@ -74,18 +75,21 @@ public class ParserMalformedXml { } @Test + @KnownToFail public void testMalformedArguments() throws ParseException { String malformedJnlp = originalJnlp.replace("arg2</argument", "arg2<argument"); Parser.getRootNode(new ByteArrayInputStream(malformedJnlp.getBytes())); } @Test + @KnownToFail public void testTagNotClosed() throws ParseException { String malformedJnlp = originalJnlp.replace("</jnlp>", "<jnlp>"); Parser.getRootNode(new ByteArrayInputStream(malformedJnlp.getBytes())); } @Test + @KnownToFail public void testUnquotedAttributes() throws ParseException { String malformedJnlp = originalJnlp.replace("'jnlp.jnlp'", "jnlp.jnlp"); Parser.getRootNode(new ByteArrayInputStream(malformedJnlp.getBytes())); |