Skip to content

Commit

Permalink
replace AssertTrue by AssertEquals
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxuang6 committed Nov 6, 2023
1 parent fe72eb3 commit 02d79b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void classOwnership() {
String sample = xs.toXML(p).replace(prefix1, "").replace(prefix2, "").replaceAll("\r?\n *", "").replace('"', '\'');
Map<String, String> targetClassOwnerMap = getClassOwnerMap(target);
Map<String, String> sampleClassOwnerMap = getClassOwnerMap(sample);
assertTrue(targetClassOwnerMap.equals(sampleClassOwnerMap));
assertEquals(targetClassOwnerMap, sampleClassOwnerMap);
Moonwalk s = (Moonwalk) xs.fromXML("<" + prefix1 + "Moonwalk plugin='p2'><lover class='" + prefix2 + "Billy' plugin='p3'/></" + prefix1 + "Moonwalk>");
assertEquals(Billy.class, s.lover.getClass());
}
Expand Down

0 comments on commit 02d79b9

Please sign in to comment.