I have an implementation of the LRU algorithm that infuses LinkedhashMap. How can I test with JUnit?
LRU
LinkedhashMap
JUnit
I used a comparison using toString. But as I understand it is not true.
assertEquals("{2=b, 4=d, 5=f, 6=g, 100=t}", lru.toString());
Aucun commentaire:
Enregistrer un commentaire