Unverified Commit fd0213cd authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

fix: fixed a bug in one of the unit tests.

parent 0b7a7fe5
......@@ -39,7 +39,7 @@ public class AbstractAnnotationFrameFactory implements FrameFactory {
private final ReflectionCache reflectionCache;
private final Map<Class, Class> constructedClassCache = new HashMap<>();
public AbstractAnnotationFrameFactory(final ReflectionCache reflectionCache, Set<MethodHandler> handlers) {
protected AbstractAnnotationFrameFactory(final ReflectionCache reflectionCache, Set<MethodHandler> handlers) {
this.reflectionCache = reflectionCache;
for(MethodHandler handler : handlers)
this.methodHandlers.put(handler.getAnnotationType(), handler);
......
......@@ -85,7 +85,8 @@ public class AnnotationFrameFactoryTest {
.when(custom.processMethod(Mockito.any(), Mockito.any(), Mockito.any()))
.thenAnswer(inv -> inv.getArgumentAt(0, DynamicType.Builder.class))
.getMock();
AnnotationFrameFactory frameFactory = new AnnotationFrameFactory(new ReflectionCache(), Collections.singleton(custom));
AbstractAnnotationFrameFactory frameFactory = new AbstractAnnotationFrameFactory(new ReflectionCache(), Collections.singleton(custom)) {
};
DelegatingFramedGraph framedGraph = new DelegatingFramedGraph(fg.getBaseGraph(), frameFactory, new PolymorphicTypeResolver());
framedGraph.addFramedVertex(God.class);
Mockito.verify(custom, Mockito.atLeast(0)).getAnnotationType();
......
Supports Markdown
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