Compare commits

..

No commits in common. '65e59f19ffe877543d3c62d420b15668a2ac6d9d' and 'c4cf6afd8cb16adafc5bc0b88c2ca0678fa52e1b' have entirely different histories.

  1. 4
      pom.xml
  2. 6
      src/test/java/de/kreth/property2java/processor/Property2JavaGeneratorTest.java

@ -149,7 +149,7 @@
</plugins> </plugins>
</build> </build>
<scm> <scm>
<developerConnection>scm:git:git@github.com:markuskreth/PropertyToJavaGenerator.gitt</developerConnection> <developerConnection>scm:git:https://github.com/markuskreth/PropertyToJavaGenerator.git</developerConnection>
<connection>scm:git:git@github.com:markuskreth/PropertyToJavaGenerator.git</connection> <connection>scm:git:https://github.com/markuskreth/PropertyToJavaGenerator.git</connection>
</scm> </scm>
</project> </project>

@ -12,12 +12,10 @@ import javax.lang.model.element.TypeElement;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.ArgumentMatchers; import org.mockito.ArgumentMatchers;
import org.mockito.Mock; import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension; import org.mockito.MockitoAnnotations;
@ExtendWith(MockitoExtension.class)
public class Property2JavaGeneratorTest { public class Property2JavaGeneratorTest {
private Property2JavaGenerator processor; private Property2JavaGenerator processor;
@ -31,6 +29,7 @@ public class Property2JavaGeneratorTest {
@BeforeEach @BeforeEach
void initProcesor() { void initProcesor() {
MockitoAnnotations.initMocks(this);
annotations = new HashSet<>(); annotations = new HashSet<>();
processor = new Property2JavaGenerator(); processor = new Property2JavaGenerator();
@ -38,7 +37,6 @@ public class Property2JavaGeneratorTest {
when(processingEnv.getMessager()).thenReturn(messanger); when(processingEnv.getMessager()).thenReturn(messanger);
} }
@SuppressWarnings("unchecked")
@Test @Test
void testGeneratorInitializedCorrectly() { void testGeneratorInitializedCorrectly() {
when(roundEnv.getElementsAnnotatedWith(ArgumentMatchers.any(Class.class))).thenReturn(annotations); when(roundEnv.getElementsAnnotatedWith(ArgumentMatchers.any(Class.class))).thenReturn(annotations);

Loading…
Cancel
Save