Skip to content

Commit

Permalink
Compare absolute paths. TestJava7Types failed on Windows due to absol…
Browse files Browse the repository at this point in the history
…ute path starting with drive name. (#3513)

Co-authored-by: Michal Foksa <Michal.Foksa@external.t-mobile.at>
  • Loading branch information
MichalFoksa and Michal Foksa committed Jun 10, 2022
1 parent 1beaaa3 commit 6497f1b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public void testPathRoundtrip() throws Exception

Path p = mapper.readValue(json, Path.class);
assertNotNull(p);

assertEquals(input.toUri(), p.toUri());
assertEquals(input, p);
assertEquals(input.toAbsolutePath(), p.toAbsolutePath());
}

// [databind#1688]:
Expand All @@ -41,6 +41,6 @@ public void testPolymorphicPath() throws Exception
Object ob = obs[0];
assertTrue(ob instanceof Path);

assertEquals(input.toString(), ob.toString());
assertEquals(input.toAbsolutePath().toString(), ob.toString());
}
}

0 comments on commit 6497f1b

Please sign in to comment.