-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9e37c6
commit 75dd250
Showing
5 changed files
with
64 additions
and
70 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
rewrite/src/test/java/dev/morphia/rewrite/recipes/test/Morphia2RewriteTest.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 |
---|---|---|
@@ -1,18 +1,4 @@ | ||
package dev.morphia.rewrite.recipes.test; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
public abstract class Morphia2RewriteTest extends MorphiaRewriteTest { | ||
@Override | ||
protected @NotNull String findMorphiaCore() { | ||
var core = runtimeClasspath.stream() | ||
.filter(uri -> { | ||
String string = uri.toString(); | ||
return string.contains("morphia") && string.contains("core"); | ||
}) | ||
.findFirst().orElseThrow().toString(); | ||
|
||
final String artifact = core.contains("morphia-core") ? "morphia-core" : "morphia/core"; | ||
return artifact; | ||
} | ||
} |
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
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
61 changes: 28 additions & 33 deletions
61
rewrite/src/test/java/dev/morphia/rewrite/recipes/test/UnwrapFieldTest.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