run openrewrite

master
Markus Kreth 2 months ago
parent 3128f1fb46
commit 8e9671bec5
  1. 1
      Application_Properties.java
  2. 2
      pom.xml
  3. 1
      src/main/java/de/kreth/property2java/processor/GenerateProperty2Java.java
  4. 1
      src/main/java/de/kreth/property2java/processor/Property2JavaGenerator.java
  5. 3
      src/test/java/de/kreth/property2java/ConfigurationTest.java
  6. 3
      src/test/java/de/kreth/property2java/GeneratorTests.java

@ -146,7 +146,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<version>3.14.1</version>
<configuration>
<release>${java.version}</release>
<compilerArgs>-proc:none</compilerArgs>

@ -6,6 +6,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import de.kreth.property2java.Format;
import de.kreth.property2java.GeneratorOptions;

@ -16,6 +16,7 @@ import javax.lang.model.element.Element;
import javax.lang.model.element.TypeElement;
import javax.tools.Diagnostic.Kind;
import de.kreth.property2java.Format;
import de.kreth.property2java.GeneratorException;
import de.kreth.property2java.GeneratorOptions;

@ -1,6 +1,7 @@
package de.kreth.property2java;
import static org.junit.jupiter.api.Assertions.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertInstanceOf;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.when;

@ -30,6 +30,7 @@ import java.util.Optional;
import java.util.StringTokenizer;
import java.util.stream.Collectors;
import org.apache.commons.cli.MissingOptionException;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.BeforeEach;
@ -200,7 +201,7 @@ class GeneratorTests {
doThrow(new TemplateException(null)).when(template).process(any(Map.class), any(Writer.class));
Generator generator = new Generator(config, template);
GeneratorException ex = assertThrows(GeneratorException.class, () -> generator.start());
GeneratorException ex = assertThrows(GeneratorException.class, generator::start);
assertThat(ex.getCause()).isInstanceOf(TemplateException.class);
}

Loading…
Cancel
Save