Skip to content

Commit

Permalink
test: Migrate CorrectIdentifierTest to JUnit5 (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohitesh-Kumar-Jain authored May 26, 2021
1 parent 9ef791f commit d57b01a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/java/spoon/generating/CorrectIdentifierTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package spoon.generating;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import spoon.FluentLauncher;
import spoon.Launcher;
import spoon.SpoonException;
Expand Down Expand Up @@ -29,21 +29,21 @@ public void wrongIdentifer2() {
assertThrows(SpoonException.class, () -> localVariableRef.setSimpleName(";tacos"));
}

@Ignore
@Disabled
@Test
public void keyWord() {
CtLocalVariableReference<Object> localVariableRef = new Launcher().getFactory().createLocalVariableReference();
assertThrows(SpoonException.class, () -> localVariableRef.setSimpleName("class"));
}

@Ignore
@Disabled
@Test
public void keyWord2() {
CtLocalVariableReference<Object> localVariableRef = new Launcher().getFactory().createLocalVariableReference();
assertThrows(SpoonException.class, () -> localVariableRef.setSimpleName("null"));
}

@Ignore
@Disabled
@Test
public void keyWord3() {
CtLocalVariableReference<Object> localVariableRef = new Launcher().getFactory().createLocalVariableReference();
Expand Down

0 comments on commit d57b01a

Please sign in to comment.
  NODES
COMMUNITY 1
Note 1
Project 1
USERS 1