You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by so...@apache.org on 2018/09/30 10:13:30 UTC
[maven-surefire] branch 1564 updated: Add JUnit Platform IT using
current SNAPSHOT artifacts
This is an automated email from the ASF dual-hosted git repository.
sor pushed a commit to branch 1564
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/1564 by this push:
new 32d9f8e Add JUnit Platform IT using current SNAPSHOT artifacts
32d9f8e is described below
commit 32d9f8e70b0226a3ea4b94cb560e4efcbafc1693
Author: Christian Stein <so...@gmail.com>
AuthorDate: Sun Sep 30 12:13:16 2018 +0200
Add JUnit Platform IT using current SNAPSHOT artifacts
---
.../apache/maven/surefire/its/JUnitPlatformIT.java | 13 ++++
.../junit-platform-1.4.0-SNAPSHOT/pom.xml | 71 ++++++++++++++++++++++
.../JUnitPlatform_1_4_0_Test.java | 37 +++++++++++
3 files changed, 121 insertions(+)
diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
index 9bfe6bc..527850e 100644
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/JUnitPlatformIT.java
@@ -117,6 +117,19 @@ public class JUnitPlatformIT
}
@Test
+ public void testJUnitPlatform_SNAPSHOT() throws VerificationException
+ {
+ Map<String, String> versions = new HashMap<String, String>();
+ versions.put("surefire", System.getProperty("surefire.version"));
+ versions.put("platform", "1.4.0-SNAPSHOT");
+ versions.put("jupiter", "5.4.0-SNAPSHOT");
+ versions.put("opentest", "1.1.1");
+ versions.put("apiguardian", "1.0.0");
+
+ unpackExecuteAndVerifyVersions(versions);
+ }
+
+ @Test
public void testTags()
{
unpack( "/junit-platform-tags" ).executeTest().verifyErrorFree( 2 );
diff --git a/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/pom.xml b/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/pom.xml
new file mode 100644
index 0000000..bde9ab3
--- /dev/null
+++ b/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/pom.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.apache.maven.plugins.surefire</groupId>
+ <artifactId>junit-platform-1.4.0-SNAPSHOT</artifactId>
+ <version>1.0</version>
+ <name>Test for JUnit 5: Platform 1.4.0-SNAPSHOT + Jupiter 5.4.0-SNAPSHOT</name>
+
+ <properties>
+ <maven.compiler.source>1.8</maven.compiler.source>
+ <maven.compiler.target>1.8</maven.compiler.target>
+ </properties>
+
+ <repositories>
+ <repository>
+ <id>oss-sonatype</id>
+ <name>oss-sonatype</name>
+ <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <!--
+ Declare "junit-jupiter-engine" dependency because the
+ Jupiter Engine is needed at test runtime. Artifacts
+ needed for test compilation, like "junit-jupiter-api",
+ are pulled-in via transitive dependency resolution.
+ -->
+ <dependencies>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <version>5.4.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${surefire.version}</version>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/src/test/java/junitplatform_1_4_0/JUnitPlatform_1_4_0_Test.java b/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/src/test/java/junitplatform_1_4_0/JUnitPlatform_1_4_0_Test.java
new file mode 100644
index 0000000..64c8951
--- /dev/null
+++ b/surefire-its/src/test/resources/junit-platform-1.4.0-SNAPSHOT/src/test/java/junitplatform_1_4_0/JUnitPlatform_1_4_0_Test.java
@@ -0,0 +1,37 @@
+package junitplatform_1_3_1;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.TestInfo;
+
+class JUnitPlatform_1_4_0_Test
+{
+
+ @Test
+ void test(TestInfo info)
+ {
+ assertEquals( "test(TestInfo)", info.getDisplayName(), "display name mismatch" );
+ }
+
+
+}