Skip to content

Commit

Permalink
fix: use now imports and not qualified name in DSpotUtilsTest (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb authored Nov 26, 2019
1 parent 7836b1b commit c0296ef
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions dspot/src/test/java/eu/stamp_project/utils/DSpotUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ public void testWithLombokAnnotation() throws Exception {
try (final BufferedReader reader =
new BufferedReader(new FileReader(outputDirectory + "/fr/inria/lombok/LombokClassThatUseBuilderTest.java"))) {
assertEquals(
"package fr.inria.lombok;" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"public class LombokClassThatUseBuilderTest {" + AmplificationHelper.LINE_SEPARATOR +
" @org.junit.Test" + AmplificationHelper.LINE_SEPARATOR +
" public void test() {" + AmplificationHelper.LINE_SEPARATOR +
" fr.inria.lombok.LombokClassThatUseBuilder.builder().build();" + AmplificationHelper.LINE_SEPARATOR +
" }" + AmplificationHelper.LINE_SEPARATOR +
"}" + AmplificationHelper.LINE_SEPARATOR,
"package fr.inria.lombok;" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"import org.junit.Test;" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"" + AmplificationHelper.LINE_SEPARATOR +
"public class LombokClassThatUseBuilderTest {" + AmplificationHelper.LINE_SEPARATOR +
" @Test" + AmplificationHelper.LINE_SEPARATOR +
" public void test() {" + AmplificationHelper.LINE_SEPARATOR +
" builder().build();" + AmplificationHelper.LINE_SEPARATOR +
" }" + AmplificationHelper.LINE_SEPARATOR +
"}" + AmplificationHelper.LINE_SEPARATOR,
reader.lines()
.collect(Collectors.joining(AmplificationHelper.LINE_SEPARATOR))
);
Expand Down

0 comments on commit c0296ef

Please sign in to comment.