Repository navigation
Commit 72b3f06
authored
* Move tests into the package of the recipe they test
`AddTableGeneratorTest` and `MigrateJaxwsMavenPluginTest` move to `javax`,
`ApacheDefaultProviderTest` and `ServletIsRequestedSessionIdFromURLTest` to
`javaee8`, `OpenJPAPersistenceProviderTest` to `javaee7`, and
`MigrateZipErrorToZipExceptionTest` to the root package.
* Name tests after the recipe they run
Rename tests whose class name pointed at a different recipe, and retarget
`UpgradeSpringBootParentForJava25Test` and `AddJakartaXmlBindRuntimeTest` at
the recipe they mostly exercise, keeping the end-to-end cases on the composite.
Split the Log4j2, JUL, JBoss and Commons Logging cases out of `UseSlf4jTest`
into one test class per recipe, and fold the `NoGuava` integration tests for
`Predicates.equalTo` and `Sets.filter` into `NoGuavaTest`: their sub-recipes on
their own produce different output.
* Load declarative recipes with `recipeFromResources` in tests
Replace `Environment.builder().scanRuntimeClasspath(..)` in `UseVarKeywordTest`,
`JavaLangAPIsTest` and `PreferJavaUtilOptionalTest`.
`PreferJavaUtilOptionalTest` now runs `PreferJavaUtilOptional` rather than all
of `NoGuava`; the one case that also relies on the `Supplier` type change adds
`PreferJavaUtilSupplier`. Drop the second `@DocumentExample`, which sat on an
`@ExpectedToFail` test.
1 parent 89037b6 commit 72b3f06
24 files changed
Lines changed: 452 additions & 418 deletions
File tree
- src/test/java/org/openrewrite/java/migrate
- guava
- jakarta
- javaee7
- javaee8
- javax
- lang
- var
- lombok/log
- util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
This file was deleted.
This file was deleted.
0 commit comments