Skip to content

Commit

Permalink
chore: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
keturn committed Nov 6, 2021
1 parent 9c5cbea commit c17653f
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,20 @@ public class RuntimeDelegatingTypeHandlerTest {
configureMockSerializer(subTypeHandler);

this.typeHandlerLibrary = typeHandlerLibrary;
when(typeHandlerLibrary.getTypeHandler(baseType)).thenReturn(Optional.of(baseTypeHandler));
when(typeHandlerLibrary.getTypeHandler(subType)).thenReturn(Optional.of(subTypeHandler));

when(sandbox.findSubTypeOf(subType.getName(), baseType)).thenReturn(Optional.of(subType));
when(typeHandlerLibrary.getTypeHandler(baseType))
.thenReturn(Optional.of(baseTypeHandler));
when(typeHandlerLibrary.getTypeHandler(subType))
.thenReturn(Optional.of(subTypeHandler));

// typeHandlerLibrary = spy(new MyTypeHandlerLibrary(sandbox));
//
// typeHandlerLibrary.addTypeHandler(Base.class, baseTypeHandler);
// typeHandlerLibrary.addTypeHandler(Sub.class, subTypeHandler);

when(sandbox.findSubTypeOf(subType.getName(), baseType))
.thenReturn(Optional.of(subType));
TypeHandlerContext context = new TypeHandlerContext(typeHandlerLibrary, sandbox);

runtimeDelegatingTypeHandler = new RuntimeDelegatingTypeHandler<>(
baseTypeHandler, TypeInfo.of(Base.class), context);
}
Expand Down

0 comments on commit c17653f

Please sign in to comment.