Skip to content

Commit 29b8a64

Browse files
committed
Merge pull request BroadleafCommerce#1473 from BroadleafCommerce/efficient-lru-test
BroadleafCommerce#1472 remove 6th value from test
2 parents b573279 + aca8dc6 commit 29b8a64

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

common/src/test/java/org/broadleafcommerce/common/util/EfficientLRUMapTest.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@
2626

2727
import junit.framework.TestCase;
2828

29-
3029
public class EfficientLRUMapTest extends TestCase {
31-
30+
3231
public void testMapSwitch() {
3332
EfficientLRUMap<String, String> testMap = new EfficientLRUMap<String, String>(5);
34-
33+
3534
// Test basics for a single name value pair
3635
testMap.put("key1", "value1");
3736
assertEquals("The value for key1 should be value 1", "value1", testMap.get("key1"));
@@ -60,11 +59,9 @@ public void testMapSwitch() {
6059

6160
// Add another item which should trigger a switch in the map type
6261
testMap.put("key6", "value6");
63-
assertEquals("The value for key1 should still be value1", "value1", testMap.get("key1"));
6462
assertEquals("The value for key6 should be value6", "value6", testMap.get("key6"));
6563
assertEquals("The size() for the map should be 5 since we are now LRU", 5, testMap.size());
6664
assertTrue("The type of Map should not be a ConcurrentHashMap. It should be a synchronized map",
6765
!testMap.getUnderlyingMapClass().equals(LRUMap.class));
6866
}
6967
}
70-

0 commit comments

Comments
 (0)