changed LinkedHashMap to Map interface

This commit is contained in:
omerfinger 2020-04-02 10:06:43 +03:00
parent c2e37ce399
commit 46843866bd
1 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ public class CaseInsensitiveMapUnitTest {
@Test @Test
public void givenLinkedCaseInsensitiveMap_whenTwoEntriesAdded_thenSizeIsOne(){ public void givenLinkedCaseInsensitiveMap_whenTwoEntriesAdded_thenSizeIsOne(){
LinkedCaseInsensitiveMap<Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>(); Map<String, Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>();
linkedHashMap.put("abc", 1); linkedHashMap.put("abc", 1);
linkedHashMap.put("ABC", 2); linkedHashMap.put("ABC", 2);
@ -58,7 +58,7 @@ public class CaseInsensitiveMapUnitTest {
@Test @Test
public void givenLinkedCaseInsensitiveMap_whenSameEntryAdded_thenValueUpdated(){ public void givenLinkedCaseInsensitiveMap_whenSameEntryAdded_thenValueUpdated(){
LinkedCaseInsensitiveMap<Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>(); Map<String, Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>();
linkedHashMap.put("abc", 1); linkedHashMap.put("abc", 1);
linkedHashMap.put("ABC", 2); linkedHashMap.put("ABC", 2);
@ -86,7 +86,7 @@ public class CaseInsensitiveMapUnitTest {
@Test @Test
public void givenLinkedCaseInsensitiveMap_whenEntryRemoved_thenSizeIsZero(){ public void givenLinkedCaseInsensitiveMap_whenEntryRemoved_thenSizeIsZero(){
LinkedCaseInsensitiveMap<Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>(); Map<String, Integer> linkedHashMap = new LinkedCaseInsensitiveMap<>();
linkedHashMap.put("abc", 3); linkedHashMap.put("abc", 3);
linkedHashMap.remove("aBC"); linkedHashMap.remove("aBC");