changed README, assert has changed

This commit is contained in:
omerfinger 2020-03-30 13:28:29 +03:00
parent 640f8ce5d2
commit c2e37ce399
2 changed files with 7 additions and 9 deletions

View File

@ -3,6 +3,6 @@
This module contains articles about Map data structures in Java. This module contains articles about Map data structures in Java.
### Relevant Articles: ### Relevant Articles:
- [Java Map With Case-Insensitive Keys](https://www.baeldung.com/java-map-with-case-insensitive-keys/)
- More articles: [[<-- prev>]](/../java-collections-maps) - More articles: [[<-- prev>]](/../java-collections-maps)
- More articles: [[<-- prev>]](/../java-collections-maps-2) - More articles: [[<-- prev>]](/../java-collections-maps-2)

View File

@ -25,7 +25,6 @@ public class CaseInsensitiveMapUnitTest {
commonsHashMap.put("ABC", 2); commonsHashMap.put("ABC", 2);
assertEquals(1, commonsHashMap.size()); assertEquals(1, commonsHashMap.size());
} }
@Test @Test
@ -35,7 +34,6 @@ public class CaseInsensitiveMapUnitTest {
linkedHashMap.put("ABC", 2); linkedHashMap.put("ABC", 2);
assertEquals(1, linkedHashMap.size()); assertEquals(1, linkedHashMap.size());
} }
@Test @Test
@ -44,8 +42,8 @@ public class CaseInsensitiveMapUnitTest {
treeMap.put("abc", 1); treeMap.put("abc", 1);
treeMap.put("ABC", 2); treeMap.put("ABC", 2);
assertEquals((Integer)2, treeMap.get("aBc")); assertEquals(2, treeMap.get("aBc").intValue());
assertEquals((Integer)2, treeMap.get("ABc")); assertEquals(2, treeMap.get("ABc").intValue());
} }
@Test @Test
@ -54,8 +52,8 @@ public class CaseInsensitiveMapUnitTest {
commonsHashMap.put("abc", 1); commonsHashMap.put("abc", 1);
commonsHashMap.put("ABC", 2); commonsHashMap.put("ABC", 2);
assertEquals((Integer)2, commonsHashMap.get("aBc")); assertEquals(2, commonsHashMap.get("aBc").intValue());
assertEquals((Integer)2, commonsHashMap.get("ABc")); assertEquals(2, commonsHashMap.get("ABc").intValue());
} }
@Test @Test
@ -64,8 +62,8 @@ public class CaseInsensitiveMapUnitTest {
linkedHashMap.put("abc", 1); linkedHashMap.put("abc", 1);
linkedHashMap.put("ABC", 2); linkedHashMap.put("ABC", 2);
assertEquals((Integer)2, linkedHashMap.get("aBc")); assertEquals(2, linkedHashMap.get("aBc").intValue());
assertEquals((Integer)2, linkedHashMap.get("ABc")); assertEquals(2, linkedHashMap.get("ABc").intValue());
} }
@Test @Test