This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 316a2276 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

Minor Test extention

parent eb03c084
Branches
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -5,6 +5,7 @@ import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Parameter;
import java.sql.Timestamp;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
......@@ -127,7 +128,10 @@ public void testSetters(Class<?> beanClass, Object bean, String... setterExcepti
}
} else if(Set.class.isAssignableFrom(type)) {
property = Collections.EMPTY_SET;
} else if(type.isInterface()) {
} else if (Instant.class.isAssignableFrom(type)) {
property = Instant.now();
}
else if(type.isInterface()) {
LOGGER.info("Cannot instantiate interface {} in {} for class {}", type.getName(), setter.getName(), bean.getClass().getName());
}
else {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment