Skip to content

Commit

Permalink
Issue eclipse-tycho#334 - JUnit 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Oct 12, 2021
1 parent 985a383 commit 187b91a
Show file tree
Hide file tree
Showing 26 changed files with 1,841 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Import-Package: \
org.junit.jupiter.api.*;version='[5.6,6)',\
org.junit.jupiter.api.*;version='[5.7,6)',\
org.junit.runner.*;resolution:=optional;version='[4.12,5)',\
org.junit.runners.*;resolution:=optional;version='[4.12,5)',\
org.junit.experimental.categories;resolution:=optional;version='[4.12,5)',\
Expand Down
7 changes: 7 additions & 0 deletions tycho-surefire/org.eclipse.tycho.surefire.junit58/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# override global rule
!/.settings/

# only include specified files
/.settings/*
!/.settings/org.eclipse.jdt.core.prefs
!/.settings/org.eclipse.jdt.ui.prefs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_Tycho
formatter_settings_version=12
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
sp_cleanup.add_missing_deprecated_annotations=true
sp_cleanup.add_missing_methods=false
sp_cleanup.add_missing_nls_tags=false
sp_cleanup.add_missing_override_annotations=true
sp_cleanup.add_missing_override_annotations_interface_methods=true
sp_cleanup.add_serial_version_id=false
sp_cleanup.always_use_blocks=true
sp_cleanup.always_use_parentheses_in_expressions=false
sp_cleanup.always_use_this_for_non_static_field_access=false
sp_cleanup.always_use_this_for_non_static_method_access=false
sp_cleanup.convert_to_enhanced_for_loop=false
sp_cleanup.correct_indentation=false
sp_cleanup.format_source_code=true
sp_cleanup.format_source_code_changes_only=false
sp_cleanup.make_local_variable_final=false
sp_cleanup.make_parameters_final=false
sp_cleanup.make_private_fields_final=true
sp_cleanup.make_type_abstract_if_missing_method=false
sp_cleanup.make_variable_declarations_final=true
sp_cleanup.never_use_blocks=false
sp_cleanup.never_use_parentheses_in_expressions=true
sp_cleanup.on_save_use_additional_actions=false
sp_cleanup.organize_imports=true
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_with_declaring_class=true
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
sp_cleanup.remove_trailing_whitespaces=false
sp_cleanup.remove_trailing_whitespaces_all=true
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
sp_cleanup.remove_unnecessary_casts=true
sp_cleanup.remove_unnecessary_nls_tags=true
sp_cleanup.remove_unused_imports=false
sp_cleanup.remove_unused_local_variables=false
sp_cleanup.remove_unused_private_fields=true
sp_cleanup.remove_unused_private_members=false
sp_cleanup.remove_unused_private_methods=true
sp_cleanup.remove_unused_private_types=true
sp_cleanup.sort_members=false
sp_cleanup.sort_members_all=false
sp_cleanup.use_blocks=true
sp_cleanup.use_blocks_only_for_return_and_throw=false
sp_cleanup.use_parentheses_in_expressions=false
sp_cleanup.use_this_for_non_static_field_access=false
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
sp_cleanup.use_this_for_non_static_method_access=false
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
11 changes: 11 additions & 0 deletions tycho-surefire/org.eclipse.tycho.surefire.junit58/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Import-Package: \
org.junit.jupiter.api.*;version='[5.8,6)',\
org.opentest4j;version='[1.2,2)',\
!org.apache.maven.surefire.*,\
*
Fragment-Host: org.eclipse.tycho.surefire.osgibooter
# The JUnit Runner is still compatible with Java 1.8, as all included upstream dependencies are.
# (This is checked in the tycho-surefire-plugin's pom.xml. See execution 'enforce-runtime-jdk-compatibility'.)
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
-removeheaders: Tool, Bnd-*, Created-By, Private-Package
-fixupmessages "Classes found in the wrong directory"; is:=warning
80 changes: 80 additions & 0 deletions tycho-surefire/org.eclipse.tycho.surefire.junit58/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2018 SAP SE and others.
- All rights reserved. This program and the accompanying materials
- are made available under the terms of the Eclipse Public License v1.0
- which accompanies this distribution, and is available at
- http://www.eclipse.org/legal/epl-v10.html
-
- Contributors:
- SAP SE - initial API and implementation
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire</artifactId>
<version>2.6.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.tycho.surefire.junit58</artifactId>
<packaging>jar</packaging>
<name>Tycho Surefire OSGi JUnit 5.8 Runner</name>
<properties>
<!-- NOTE: when updating JUnit version(s), double-check Import-Package statements generated by bnd-maven-plugin and possibly adapt instructions in bnd.bnd -->
<junit-platform-version>1.7.2</junit-platform-version>
<junit-jupiter-version>5.8.2</junit-jupiter-version>
</properties>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<excludes>META-INF/**</excludes>
<artifactItems>
<artifactItem>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>${surefire-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit-platform-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-engine</artifactId>
<version>${junit-platform-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>${junit-platform-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${junit-jupiter-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>common-java5</artifactId>
<version>${surefire-version}</version>
</artifactItem>
<artifactItem>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
<version>1.1.0</version>
</artifactItem>
</artifactItems>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.junit.jupiter.engine.JupiterTestEngine
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>

<p>June 25, 2012</p>
<h3>License</h3>

<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>

<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>

<h3>Third Party Content</h3>
<p>The Content includes items that have been sourced from third parties as set out below. If you
did not receive this Content directly from the Eclipse Foundation, the following is provided
for informational purposes only, and you should look to the Redistributor&rsquo;s license for
terms and conditions of use.</p>

<h4>Surefire Shared Java 5 Provider Base</h4>
<p>The plug-in includes Surefire Shared Java 5 Provider Base ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>

<blockquote>
This product includes software developed by the Apache Software Foundation (<a href="http://www.apache.org/">http://www.apache.org/</a>).
</blockquote>

<p>Surefire Shared Java 5 Provider Base is:</p>

<blockquote>Copyright 2004-2015 The Apache Software Foundation.</blockquote>

<p>Your use of the Surefire Shared Java 5 Provider Base code is subject to the terms and conditions of the Apache Software License 2.0. A copy of the license is contained
in the file <a href="about_files/LICENSE">LICENSE</a> and is also available at <a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>.

<p>The Apache attribution <a href="about_files/NOTICE">NOTICE</a> file is included with the Content in accordance with 4d of the Apache License, Version 2.0.</p>

<p>Examples and documentation as well as updated source code for Surefire Shared Java 5 Provider Base is available at <a href="http://maven.apache.org/surefire/">http://maven.apache.org/surefire/</a>.</p>

<h4>opentest4j</h4>
<p>The plug-in includes opentest4j 1.0.0.
<p>Your use of the opentest4j code is subject to the terms and conditions of the Apache Software License 2.0. A copy of the license is contained
in the file <a href="about_files/LICENSE">LICENSE</a> and is also available at <a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>.
<p>Examples and documentation as well as updated source code for opentest4j is available at <a href="https://github.com/ota4j-team/opentest4j/">https://github.com/ota4j-team/opentest4j/</a>.</p>

<h4>API Guardian</h4>
<p>The plug-in includes API Guardian 1.0.0.
<p>Your use of the API Guardian code is subject to the terms and conditions of the Apache Software License 2.0. A copy of the license is contained
in the file <a href="about_files/LICENSE">LICENSE</a> and is also available at <a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>.
<p>Examples and documentation as well as updated source code for opentest4j is available at <a href="https://github.com/apiguardian-team/apiguardian/">https://github.com/apiguardian-team/apiguardian/</a>.</p>

<h4>junit-platform-surefire-provider</h4>
<p>The plug-in includes junit-platform-surefire-provider ${junit-platform-version}.
<p>Your use of the junit-platform-surefire-provider code is subject to the terms and conditions of the Apache Software License 2.0. A copy of the license is contained
in the file <a href="about_files/LICENSE">LICENSE</a> and is also available at <a href="http://www.apache.org/licenses/LICENSE-2.0.html">http://www.apache.org/licenses/LICENSE-2.0.html</a>.
<p>Examples and documentation as well as updated source code for junit-platform-surefire-provider is available at <a href="https://github.com/junit-team/junit5/">https://github.com/junit-team/junit5/</a>.</p>

<h4>junit-jupiter-engine, junit-vintage-engine, junit-platform-commons, junit-platform-engine, junit-platform-launcher</h4>
<p>The plug-in includes junit-jupiter-engine ${junit-jupiter-version}, junit-vintage-engine ${junit-jupiter-version}, junit-platform-commons ${junit-platform-version}, junit-platform-engine ${junit-platform-version}, junit-platform-launcher ${junit-platform-version}.
<p>Your use of the junit-jupiter-engine, junit-vintage-engine, junit-platform-commons, junit-platform-engine, junit-platform-launcher code is subject to the terms and conditions of the Eclipse Public License 2.0. A copy of the license is contained
in the file <a href="about_files/LICENSE.md">LICENSE.md</a> and is also available at <a href="https://www.eclipse.org/legal/epl-2.0/">https://www.eclipse.org/legal/epl-2.0/</a>.
<p>Examples and documentation as well as updated source code for junit-jupiter-engine, junit-vintage-engine, junit-platform-commons, junit-platform-engine, junit-platform-launcher is available at <a href="https://github.com/junit-team/junit5/">https://github.com/junit-team/junit5/</a>.</p>

</body>
</html>
Loading

0 comments on commit 187b91a

Please sign in to comment.