Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
55 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 0 additions & 30 deletions
30
src/test/java/junitparams/internal/ParameterisedTestClassRunnerTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/test/java/junitparams/rules/MethodAnnotationInfoTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package junitparams.rules; | ||
|
||
import junitparams.JUnitParamsRunner; | ||
import junitparams.Parameters; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.rules.TestRule; | ||
import org.junit.runner.Description; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.model.Statement; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.util.Collection; | ||
|
||
import static org.assertj.core.api.Assertions.assertThat; | ||
|
||
@RunWith(JUnitParamsRunner.class) | ||
public class MethodAnnotationInfoTest { | ||
|
||
@Rule | ||
public final TestDescription testDescription = new TestDescription(); | ||
|
||
@Test | ||
@Parameters({""}) | ||
public void annotationInfoInDescriptionPresent(String n) { | ||
assertThat(testDescription.getAnnotations()).isNotEmpty(); | ||
} | ||
|
||
public static class TestDescription implements TestRule { | ||
|
||
private Description description; | ||
|
||
@Override | ||
public Statement apply(Statement statement, Description description) { | ||
this.description = description; | ||
return statement; | ||
} | ||
|
||
Collection<Annotation> getAnnotations() { | ||
return description.getAnnotations(); | ||
} | ||
} | ||
} |
42 changes: 0 additions & 42 deletions
42
src/test/java/junitparams/rules/TestWatcherDescriptionRuleTest.java
This file was deleted.
Oops, something went wrong.