Added more tests
This commit is contained in:
parent
9ddf470e40
commit
d08cf8d72b
1 changed files with 12 additions and 1 deletions
|
@ -41,7 +41,8 @@ import java.io.StringWriter;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>VersionProcessorTest</code> class.
|
* The <code>VersionProcessorTest</code> class.
|
||||||
|
@ -121,6 +122,16 @@ class VersionProcessorTest {
|
||||||
assertEquals("James Bond", versionInfo.getProject(), "getProject(James Bond)");
|
assertEquals("James Bond", versionInfo.getProject(), "getProject(James Bond)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testGetSupportedAnnotationTypes() {
|
||||||
|
assertTrue(processor.getSupportedAnnotationTypes().contains("net.thauvin.erik.semver.Version"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void testGetSupportedSourceVersion() {
|
||||||
|
assertTrue(processor.getSupportedSourceVersion().ordinal() >= 17);
|
||||||
|
}
|
||||||
|
|
||||||
@SuppressWarnings("PMD.AvoidAccessibilityAlteration")
|
@SuppressWarnings("PMD.AvoidAccessibilityAlteration")
|
||||||
@Test
|
@Test
|
||||||
void testGetTemplate() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
|
void testGetTemplate() throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue