Skip to content

Commit

Permalink
test: fix dependencies between tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danglotb committed Nov 18, 2019
1 parent 4ade619 commit f737ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void reset() {
private static boolean shouldExecuteTestsInParallel;

public static void init(boolean shouldExecuteTestsInParallel) {
reset();
CloneHelper.shouldExecuteTestsInParallel = shouldExecuteTestsInParallel;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,12 @@ public void testWithLombokAnnotation() throws Exception {
new BufferedReader(new FileReader(outputDirectory + "/fr/inria/lombok/LombokClassThatUseBuilderTest.java"))) {
assertEquals(
"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 +
" @org.junit.Test" + AmplificationHelper.LINE_SEPARATOR +
" public void test() {" + AmplificationHelper.LINE_SEPARATOR +
" builder().build();" + AmplificationHelper.LINE_SEPARATOR +
" fr.inria.lombok.LombokClassThatUseBuilder.builder().build();" + AmplificationHelper.LINE_SEPARATOR +
" }" + AmplificationHelper.LINE_SEPARATOR +
"}" + AmplificationHelper.LINE_SEPARATOR,
reader.lines()
Expand Down

0 comments on commit f737ce0

Please sign in to comment.