Skip to content

Commit

Permalink
test: Migrate ProcessingTest to Juit5 (#3959)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohitesh-Kumar-Jain authored May 31, 2021
1 parent c27ff84 commit 201c063
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/java/spoon/processing/ProcessingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
package spoon.processing;

import org.junit.Test;
import org.junit.jupiter.api.Test;
import spoon.Launcher;
import spoon.compiler.Environment;
import spoon.reflect.code.CtAssert;
Expand All @@ -33,10 +33,10 @@
import java.nio.file.Files;
import java.nio.file.Path;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
import static spoon.testing.Assert.assertThat;

public class ProcessingTest {
Expand Down Expand Up @@ -153,7 +153,7 @@ public void process(CtAssert<?> element) {
l.run();

// If template is applied to itself then there will be modified spoon/...Template.java on output
assertArrayEquals("Template source found in output", new String[]{"SimpleAssert.java"}, outputPath.toFile().list());
assertArrayEquals(new String[]{"SimpleAssert.java"}, outputPath.toFile().list(), "Template source found in output");
// Check that the template worked as intended
assertThat(outputPath.toString() + "/SimpleAssert.java")
.isEqualTo(resourcePath + "SimpleIfAsserted.java");
Expand Down

0 comments on commit 201c063

Please sign in to comment.