-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metadata for org.junit.jupiter:junit-jupiter:5.11.0
- Loading branch information
Showing
17 changed files
with
235 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
"jni-config.json", | ||
"proxy-config.json", | ||
"reflect-config.json", | ||
"resource-config.json", | ||
"serialization-config.json" | ||
] |
2 changes: 2 additions & 0 deletions
2
metadata/org.junit.jupiter/junit-jupiter/5.11.0/jni-config.json
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,2 @@ | ||
[ | ||
] |
7 changes: 7 additions & 0 deletions
7
metadata/org.junit.jupiter/junit-jupiter/5.11.0/predefined-classes-config.json
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,7 @@ | ||
[ | ||
{ | ||
"type":"agent-extracted", | ||
"classes":[ | ||
] | ||
} | ||
] |
2 changes: 2 additions & 0 deletions
2
metadata/org.junit.jupiter/junit-jupiter/5.11.0/proxy-config.json
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,2 @@ | ||
[ | ||
] |
68 changes: 68 additions & 0 deletions
68
metadata/org.junit.jupiter/junit-jupiter/5.11.0/reflect-config.json
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,68 @@ | ||
[ | ||
{ | ||
"condition":{"typeReachable":"org.junit.internal.builders.SuiteMethodBuilder"}, | ||
"name":"basic.BasicTest", | ||
"methods":[{"name":"suite","parameterTypes":[] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.jupiter.engine.descriptor.ExtensionUtils"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredConstructors":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.jupiter.engine.descriptor.LifecycleMethodUtils"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredMethods":true, | ||
"queryAllPublicMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.jupiter.engine.discovery.ClassSelectorResolver"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredMethods":true, | ||
"queryAllPublicMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredMethods":true, | ||
"queryAllPublicMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.platform.commons.util.AnnotationUtils"}, | ||
"name":"basic.BasicTest" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.platform.commons.util.ReflectionUtils"}, | ||
"name":"basic.BasicTest", | ||
"allDeclaredFields":true, | ||
"allDeclaredClasses":true, | ||
"queryAllDeclaredMethods":true, | ||
"queryAllPublicMethods":true, | ||
"methods":[{"name":"<init>","parameterTypes":[] }, {"name":"resourceTest","parameterTypes":[] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.vintage.engine.discovery.DefensiveAllDefaultPossibilitiesBuilder$DefensiveJUnit4Builder"}, | ||
"name":"basic.BasicTest", | ||
"queryAllDeclaredMethods":true, | ||
"queryAllPublicMethods":true | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.platform.launcher.listeners.OutputDir"}, | ||
"name":"java.security.SecureRandomParameters" | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.platform.launcher.listeners.OutputDir"}, | ||
"name":"sun.security.provider.NativePRNG", | ||
"methods":[{"name":"<init>","parameterTypes":[] }, {"name":"<init>","parameterTypes":["java.security.SecureRandomParameters"] }] | ||
}, | ||
{ | ||
"condition":{"typeReachable":"org.junit.platform.launcher.listeners.OutputDir"}, | ||
"name":"sun.security.provider.SHA", | ||
"methods":[{"name":"<init>","parameterTypes":[] }] | ||
} | ||
] |
14 changes: 14 additions & 0 deletions
14
metadata/org.junit.jupiter/junit-jupiter/5.11.0/resource-config.json
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,14 @@ | ||
{ | ||
"resources":{ | ||
"includes":[{ | ||
"condition":{"typeReachable":"org.junit.platform.launcher.core.LauncherFactory"}, | ||
"pattern":"\\QMETA-INF/services/org.junit.platform.engine.TestEngine\\E" | ||
}, { | ||
"condition":{"typeReachable":"org.junit.platform.launcher.core.LauncherFactory"}, | ||
"pattern":"\\QMETA-INF/services/org.junit.platform.launcher.TestExecutionListener\\E" | ||
}, { | ||
"condition":{"typeReachable":"org.junit.platform.commons.util.ReflectionUtils"}, | ||
"pattern":"\\Qresource.txt\\E" | ||
}]}, | ||
"bundles":[] | ||
} |
8 changes: 8 additions & 0 deletions
8
metadata/org.junit.jupiter/junit-jupiter/5.11.0/serialization-config.json
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,8 @@ | ||
{ | ||
"types":[ | ||
], | ||
"lambdaCapturingTypes":[ | ||
], | ||
"proxies":[ | ||
] | ||
} |
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,10 @@ | ||
[ | ||
{ | ||
"latest": true, | ||
"metadata-version": "5.11.0", | ||
"module": "org.junit.jupiter:junit-jupiter", | ||
"tested-versions": [ | ||
"5.11.0" | ||
] | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
gradlew.bat | ||
gradlew | ||
gradle/ | ||
build/ |
34 changes: 34 additions & 0 deletions
34
tests/src/org.junit.jupiter/junit-jupiter/5.11.0/build.gradle
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,34 @@ | ||
/* | ||
* Copyright and related rights waived via CC0 | ||
* | ||
* You should have received a copy of the CC0 legalcode along with this | ||
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | ||
*/ | ||
|
||
plugins { | ||
id "org.graalvm.internal.tck" | ||
} | ||
|
||
String libraryVersion = tck.testedLibraryVersion.get() | ||
|
||
dependencies { | ||
testImplementation "org.junit.vintage:junit-vintage-engine:5.11.0" | ||
testImplementation "org.junit.jupiter:junit-jupiter:$libraryVersion" | ||
testImplementation 'org.assertj:assertj-core:3.22.0' | ||
} | ||
|
||
graalvmNative { | ||
agent { | ||
defaultMode = "conditional" | ||
modes { | ||
conditional { | ||
userCodeFilterPath = "user-code-filter.json" | ||
} | ||
} | ||
metadataCopy { | ||
mergeWithExisting = false | ||
inputTaskNames.add("test") | ||
outputDirectories.add("/home/dnestoro/work/reachability-metadata/metadata/org.junit.jupiter/junit-jupiter/5.11.0") | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
tests/src/org.junit.jupiter/junit-jupiter/5.11.0/gradle.properties
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,2 @@ | ||
library.version = 5.11.0 | ||
metadata.dir = org.junit.jupiter/junit-jupiter/5.11.0/ |
13 changes: 13 additions & 0 deletions
13
tests/src/org.junit.jupiter/junit-jupiter/5.11.0/settings.gradle
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,13 @@ | ||
pluginManagement { | ||
def tckPath = Objects.requireNonNullElse( | ||
System.getenv("GVM_TCK_TCKDIR"), | ||
"../../../../tck-build-logic" | ||
) | ||
includeBuild(tckPath) | ||
} | ||
|
||
plugins { | ||
id "org.graalvm.internal.tck-settings" version "1.0.0-SNAPSHOT" | ||
} | ||
|
||
rootProject.name = 'org.junit.jupiter.junit-jupiter_tests' |
30 changes: 30 additions & 0 deletions
30
...jupiter/junit-jupiter/5.11.0/src/test/java/org_junit_jupiter/junit_jupiter/BasicTest.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,30 @@ | ||
package basic; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import java.io.BufferedReader; | ||
import java.io.IOException; | ||
import java.io.InputStream; | ||
import java.io.InputStreamReader; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotNull; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; | ||
|
||
public class BasicTest { | ||
|
||
private static final String RESOURCE = "/resource.txt"; | ||
|
||
@Test | ||
public void resourceTest() { | ||
try(InputStream is = BasicTest.class.getResourceAsStream(RESOURCE)) { | ||
assertNotNull(is); | ||
InputStreamReader isr = new InputStreamReader(is); | ||
BufferedReader br = new BufferedReader(isr); | ||
|
||
assertTrue(br.readLine().equalsIgnoreCase("Hello from resource!")); | ||
} catch (IOException e) { | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
|
||
} |
1 change: 1 addition & 0 deletions
1
tests/src/org.junit.jupiter/junit-jupiter/5.11.0/src/test/resources/resource.txt
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 @@ | ||
Hello from resource! |
6 changes: 6 additions & 0 deletions
6
tests/src/org.junit.jupiter/junit-jupiter/5.11.0/user-code-filter.json
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,6 @@ | ||
{ | ||
"rules": [ | ||
{"excludeClasses": "**"}, | ||
{"includeClasses": "org.junit.**"} | ||
] | ||
} |