Skip to content

Commit

Permalink
Rename Jupiter Migration Support to junit-jupiter-migrationsupport
Browse files Browse the repository at this point in the history
Prior to this commit, the module was named:
  `junit-jupiter-migration-support`
But the super package used was (and stays):
  `org.junit.jupiter.migrationsupport`
To follow the same naming convention without moving the support classes
into a different package, the module name now is:
  `junit-jupiter-migrationsupport`
  • Loading branch information
sormuras committed Jun 7, 2017
1 parent 1d8c684 commit a19e6ee
Show file tree
Hide file tree
Showing 46 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ See also <http://repo1.maven.org/maven2/org/junit/> for releases and <https://os
- **Artifact IDs**:
- `junit-jupiter-api`
- `junit-jupiter-engine`
- `junit-jupiter-migration-support`
- `junit-jupiter-migrationsupport`
- `junit-jupiter-params`

### JUnit Vintage
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ext {
jupiterProjects = [
'junit-jupiter-api',
'junit-jupiter-engine',
'junit-jupiter-migration-support',
'junit-jupiter-migrationsupport',
'junit-jupiter-params'
]

Expand All @@ -73,7 +73,7 @@ ext {

cloverTestProjects = [
'junit-jupiter-engine',
'junit-jupiter-migration-support',
'junit-jupiter-migrationsupport',
'junit-jupiter-params',
'junit-vintage-engine',
'junit-platform-surefire-provider',
Expand Down
4 changes: 2 additions & 2 deletions documentation/src/docs/asciidoc/overview.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Snapshot artifacts are deployed to Sonatype's {snapshot-repo}[snapshots reposito
JUnit Jupiter test engine implementation, only required at runtime.
`junit-jupiter-params`::
Support for <<writing-tests-parameterized-tests,parameterized tests>> in JUnit Jupiter.
`junit-jupiter-migration-support`::
`junit-jupiter-migrationsupport`::
Migration support from JUnit 4 to JUnit Jupiter,
only required for running selected JUnit 4 rules.

Expand All @@ -121,7 +121,7 @@ package org.junit.jupiter {
[junit-jupiter-api] as jupiter_api
[junit-jupiter-engine] as jupiter_engine
[junit-jupiter-params] as jupiter_params
[junit-jupiter-migration-support] as jupiter_migration_support
[junit-jupiter-migrationsupport] as jupiter_migration_support
}
package org.junit.vintage {
Expand Down
4 changes: 3 additions & 1 deletion documentation/src/docs/asciidoc/release-notes-5.0.0-M5.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ is placed on the Java 9 module path.

| `junit-jupiter-api-<VERSION>.jar` | `org.junit.jupiter.api`
| `junit-jupiter-engine-<VERSION>.jar` | `org.junit.jupiter.engine`
| `junit-jupiter-migration-support-<VERSION>.jar` | `org.junit.jupiter.migrationsupport`
| `junit-jupiter-migrationsupport-<VERSION>.jar` | `org.junit.jupiter.migrationsupport`
| `junit-jupiter-params-<VERSION>.jar` | `org.junit.jupiter.params`
| `junit-platform-commons-<VERSION>.jar` | `org.junit.platform.commons`
| `junit-platform-console-<VERSION>.jar` | `org.junit.platform.console`
Expand Down Expand Up @@ -91,6 +91,8 @@ is placed on the Java 9 module path.

===== Deprecations and Breaking Changes

* The migration support module is now named `junit-jupiter-migrationsupport`, without
the dash `-` between `migration` and `support`.
* In order to ensure the _composability_ of all supported extension APIs in JUnit
Jupiter, several methods in existing APIs have been renamed.
** See <<release-notes-5.0.0-m5-migration-extension-api>> for details.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Module junit-jupiter-migration-support
# Module junit-jupiter-migrationsupport

This module provides support for JUnit 4 rules within JUnit Jupiter.
Currently, this support is limited to subclasses of the ```org.junit.rules.Verifier```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ static Stream<String> moduleDirectoryNames() throws IOException {
@MethodSource("moduleDirectoryNames")
void automaticModuleName(String module) {
String expected = "org." + module.replace('-', '.');
if (module.equals("junit-jupiter-migration-support")) {
expected = "org.junit.jupiter.migrationsupport";
}
String jarName = module + "-" + version(module) + ".jar";
Path jarPath = Paths.get("..", module).resolve("build/libs").resolve(jarName).normalize();
try (JarFile jarFile = new JarFile(jarPath.toFile())) {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ rootProject.name = 'junit5'
include 'documentation'
include 'junit-jupiter-api'
include 'junit-jupiter-engine'
include 'junit-jupiter-migration-support'
include 'junit-jupiter-migrationsupport'
include 'junit-jupiter-params'
include 'junit-platform-commons'
include 'junit-platform-console'
Expand Down

0 comments on commit a19e6ee

Please sign in to comment.