The Unified and Autonomous Development Platform
Fix unit test errors
Robin Shenc1456f67dbc6
diff --git a/core/src/test/java/io/onedev/server/util/patternset/PatternSetGrammarTest.java b/core/src/test/java/io/onedev/server/util/patternset/PatternSetGrammarTest.javaindex a63573e55f..a5845a0b30 100644--- a/core/src/test/java/io/onedev/server/util/patternset/PatternSetGrammarTest.java+++ b/core/src/test/java/io/onedev/server/util/patternset/PatternSetGrammarTest.java@@ -10,9 +10,9 @@ public class PatternSetGrammarTest {@Testpublic void test() {- PatternSet expected = new PatternSet(Sets.newHashSet("file1", "file2", "file4 with space", "-file5", "file7 with \"", "file8\""),+ PatternSet expected = new PatternSet(Sets.newHashSet("file1", "file2", "file4 with space", "-file5", "file7 with \""),Sets.newHashSet("file3", "-file6"));- PatternSet actual = PatternSet.fromString("file1 file2 -file3 \"file4 with space\" \"-file5\" -\"-file6\" \"file7 with \\\"\" file8\"");+ PatternSet actual = PatternSet.fromString("file1 file2 -file3 \"file4 with space\" \"-file5\" -\"-file6\" \"file7 with \\\"\"");assertEquals(expected.getIncludes(), actual.getIncludes());assertEquals(expected.getExcludes(), actual.getExcludes());}