diff --git a/pom.xml b/pom.xml index 1619da0..5f52fbd 100644 --- a/pom.xml +++ b/pom.xml @@ -40,7 +40,7 @@ org.openrewrite rewrite-bom - 8.75.0 + 8.75.2 pom import @@ -150,12 +150,12 @@ org.openrewrite.recipe rewrite-migrate-java - 3.14.1 + 3.29.0 org.openrewrite.recipe rewrite-rewrite - 0.5.0 + 0.21.1 org.openrewrite diff --git a/src/test/java/de/kreth/property2java/GeneratorTests.java b/src/test/java/de/kreth/property2java/GeneratorTests.java index 42da5d2..7d55f3b 100644 --- a/src/test/java/de/kreth/property2java/GeneratorTests.java +++ b/src/test/java/de/kreth/property2java/GeneratorTests.java @@ -8,11 +8,7 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; -import static org.mockito.Mockito.doThrow; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.never; -import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; +import static org.mockito.Mockito.*; import java.io.File; import java.io.IOException; @@ -32,6 +28,7 @@ import java.util.Properties; import java.util.StringTokenizer; import java.util.stream.Collectors; + import org.apache.commons.cli.MissingOptionException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -146,9 +143,9 @@ class GeneratorTests { "Count of Braces doesn't match. Open = " + countOpenBaces + ", Close = " + countCloseBaces); assertThat(linePackage) - .isEqualToIgnoringWhitespace("package de.kreth.property2java;"); + .isEqualToIgnoringWhitespace("package de.kreth.property2java;"); assertThat(lineClass) - .isEqualToIgnoringWhitespace("public enum Application_Properties {"); + .isEqualToIgnoringWhitespace("public enum Application_Properties {"); } diff --git a/src/test/java/de/kreth/property2java/GeneratorWithInnerPropertiesTest.java b/src/test/java/de/kreth/property2java/GeneratorWithInnerPropertiesTest.java index 8f03623..bd6d7c8 100644 --- a/src/test/java/de/kreth/property2java/GeneratorWithInnerPropertiesTest.java +++ b/src/test/java/de/kreth/property2java/GeneratorWithInnerPropertiesTest.java @@ -19,6 +19,7 @@ import java.util.Optional; import java.util.StringTokenizer; import java.util.stream.Collectors; + import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -92,9 +93,9 @@ public class GeneratorWithInnerPropertiesTest { assertNotNull(lineClass); assertThat(linePackage) - .containsIgnoringWhitespaces("package de.kreth.property2java;"); + .containsIgnoringWhitespaces("package de.kreth.property2java;"); assertThat(lineClass) - .containsIgnoringWhitespaces("public enum Application_Properties {"); + .containsIgnoringWhitespaces("public enum Application_Properties {"); }