package Ġdiff . equality . str ategies Ċ Ċ import Ġdiff . equality . Equality Strategy Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . junit . jupiter . api . Assertions . assertTrue Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . util .* Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġse bas jm Ġon Ġ 0 7 / 0 7 / 1 7 . Ċ Ġ*/ Ċ class ĠOrdered Map Equality Strategy Test Ġ{ ĊĊĠĠĠ Ġ@ Test Ġfun Ġshould Return Equals When Comp aring Two Empty Tree Maps () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbefore Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĠĠĠĠĠĠĠ Ġval Ġafter Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĊĠĠĠĠĠĠĠ Ġval Ġcompare Ġ= ĠOrdered Map Equality Strategy (). compare ( before , Ġafter ) ĊĊĠĠĠĠĠĠĠ Ġassert ( Ġcompare Ġ== ĠE quality Strategy . Compare Result . EQUAL S Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġshould Return Un dec id ible When Maps Has Contents () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbefore Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĠĠĠĠĠĠĠ Ġval Ġafter Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĊĠĠĠĠĠĠĠ Ġbefore . put (" 1 "," something ") ĊĠĠĠĠĠĠĠ Ġbefore . put (" 2 "," something ") ĊĊĠĠĠĠĠĠĠ Ġval Ġcompare Ġ= ĠOrdered Map Equality Strategy (). compare ( before , Ġafter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġas ? ĠE quality Strategy . Un dec id ible More To Compare < *> Ġ?: Ġthrow ĠAssertionError (" Assertion Ġfailed ") ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( Ġcompare . result . size , Ġbefore . size Ġ* Ġ 2 Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġshould Queue Order Comparison And Key Comparison For Ordered Maps () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbefore Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĠĠĠĠĠĠĠ Ġval Ġafter Ġ= ĠTreeMap < String , String >() Ġas ĠTreeMap < Any , Any > ĊĊĠĠĠĠĠĠĠ Ġbefore . put (" 1 "," something ") ĊĠĠĠĠĠĠĠ Ġbefore . put (" 2 "," something ") ĊĊĠĠĠĠĠĠĠ Ġval Ġcompare Ġ= ĠOrdered Map Equality Strategy (). compare ( before , Ġafter ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġas ? ĠE quality Strategy . Un dec id ible More To Compare < *> Ġ?: Ġthrow ĠAssertionError (" Assertion Ġfailed ") ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( Ġcompare . result . size , Ġbefore . size Ġ* Ġ 2 Ġ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġshould Compare TreeMap () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmap Ġ= ĠTreeMap < String , String >() Ġas ĠSorted Map < Any , Any > ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( ĠOrdered Map Equality Strategy (). should Use This Strategy ( map . java Class ) Ġ) ĊĠĠĠ Ġ} Ċ Ċ }