Skip to content

Commit

Permalink
check proper TargetModel enum
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Dec 17, 2023
1 parent 9875719 commit 60e9c29
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ public void testJacksonHandlesOldTargetEnum() throws IOException {
writer.write(str);
writer.flush();
writer.close();
Assertions.assertDoesNotThrow(
() -> JacksonUtils.deserialize(tempFile.toPath(), CVPipelineSettings.class));

AprilTagPipelineSettings settings =
(AprilTagPipelineSettings)
JacksonUtils.deserialize(tempFile.toPath(), CVPipelineSettings.class);
Assertions.assertEquals(TargetModel.kAprilTag6in_16h5, settings.targetModel);

tempFile.delete();
}
Expand Down

0 comments on commit 60e9c29

Please sign in to comment.