Skip to content

Commit

Permalink
test: migrate AnnotationPositionTest to JUnit 5 (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWitt authored Jan 24, 2022
1 parent 5ca5583 commit e86157a
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions src/test/java/spoon/test/issue3321/AnnotationPositionTest.java
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
package spoon.test.issue3321;

import org.junit.Ignore;
import org.junit.Test;
import spoon.Launcher;
import spoon.test.GitHubIssue;
import spoon.reflect.cu.SourcePosition;
import spoon.reflect.declaration.CtClass;
import spoon.reflect.declaration.CtMethod;
import spoon.reflect.declaration.CtParameter;
import spoon.Launcher;
import spoon.reflect.factory.Factory;
import spoon.test.GitHubIssue;
import spoon.test.issue3321.testclasses.AnnoUser;
import spoon.reflect.declaration.CtParameter;
import spoon.reflect.declaration.CtClass;
import spoon.reflect.declaration.CtMethod;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertFalse;

public class AnnotationPositionTest {

@Ignore("Unresolved Bug")

@GitHubIssue(issueNumber = 3358)
@Test
@Disabled("Unresolved Bug")
public void testUsageOfTypeAnnotationOnParameterInMethod() {
final Launcher launcher = new Launcher();
launcher.getEnvironment().setNoClasspath(false);
Expand Down Expand Up @@ -71,9 +72,10 @@ public void testUsageOfTypeAnnotationOnParameterInMethod() {
}


@Ignore("UnresolvedBug")

@GitHubIssue(issueNumber = 3358)
@Test
@Disabled("UnresolvedBug")
public void testSneakyAnnotationsOnParameters() {
final Launcher launcher = new Launcher();
launcher.getEnvironment().setNoClasspath(false);
Expand Down

0 comments on commit e86157a

Please sign in to comment.