GeezerVison is showing github.com — implemented multi algorithm patch test · marisaroman/java-diff-utils@894b8ba
File tree
Expand file treeCollapse file tree
Open diff view settings
java-diff-utils/src/test/java/com/github/difflib/patch
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: java-diff-utils/src/test/java/com/github/difflib/patch/PatchWithAllDiffAlgorithmsTest.java +1-26Lines changed: 1 addition & 26 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -107,30 +107,5 @@ public void testPatch_Serializable(DiffAlgorithmFactory factory) throws IOExcept |
107 | 107 | fail(e.getMessage()); |
108 | 108 | } |
109 | 109 |
|
110 | | - } |
111 | | - |
112 | | - @ParameterizedTest |
113 | | - @MethodSource("provideAlgorithms") |
114 | | - public void testPatch_Change_withExceptionProcessor(DiffAlgorithmFactory factory) { |
115 | | - DiffUtils.withDefaultDiffAlgorithmFactory(factory); |
116 | | - |
117 | | - final List<String> changeTest_from = Arrays.asList("aaa", "bbb", "ccc", "ddd"); |
118 | | - final List<String> changeTest_to = Arrays.asList("aaa", "bxb", "cxc", "ddd"); |
119 | | - |
120 | | - final Patch<String> patch = DiffUtils.diff(changeTest_from, changeTest_to); |
121 | | - |
122 | | - changeTest_from.set(2, "CDC"); |
123 | | - |
124 | | - patch.withConflictOutput(Patch.CONFLICT_PRODUCES_MERGE_CONFLICT); |
125 | | - |
126 | | - try { |
127 | | - List<String> data = DiffUtils.patch(changeTest_from, patch); |
128 | | - assertEquals(9, data.size()); |
129 | | - |
130 | | - assertEquals(Arrays.asList("aaa", "<<<<<< HEAD", "bbb", "CDC", "======", "bbb", "ccc", ">>>>>>> PATCH", "ddd"), data); |
131 | | - |
132 | | - } catch (PatchFailedException e) { |
133 | | - fail(e.getMessage()); |
134 | | - } |
135 | | - } |
| 110 | + } |
136 | 111 | } |