summaryrefslogtreecommitdiff
path: root/src/test/java/bjc/funcdata/TestMapCreation.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2020-12-03 19:21:38 -0500
committerBen Culkin <scorpress@gmail.com>2020-12-03 19:21:38 -0500
commit0a8f34c27c6ef93c5c94d17728af62c7607e225f (patch)
tree3bbbbb6d62649c7411e7ae3d53a75786255ed84e /src/test/java/bjc/funcdata/TestMapCreation.java
parent097a33bc2ecaa64a664550ddd62ccd8de47c51d0 (diff)
Rename types to match Java style
This renames several interfaces that had names like IWhatever, since that isn't a style that Java uses
Diffstat (limited to 'src/test/java/bjc/funcdata/TestMapCreation.java')
-rw-r--r--src/test/java/bjc/funcdata/TestMapCreation.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/bjc/funcdata/TestMapCreation.java b/src/test/java/bjc/funcdata/TestMapCreation.java
index 6986afb..20dbe35 100644
--- a/src/test/java/bjc/funcdata/TestMapCreation.java
+++ b/src/test/java/bjc/funcdata/TestMapCreation.java
@@ -8,7 +8,7 @@ import org.junit.*;
public class TestMapCreation {
@Test
public void mapOfNothingCreatesEmptyMap() {
- IMap<String, String> map = IMap.of();
+ MapEx<String, String> map = MapEx.of();
assertEquals("Map is empty", 0, map.size());
}
@@ -16,12 +16,12 @@ public class TestMapCreation {
@Test(expected = IllegalArgumentException.class)
public void mapOfMismatchedCountErrors() {
@SuppressWarnings("unused")
- IMap<String, String> map = IMap.of("thing1");
+ MapEx<String, String> map = MapEx.of("thing1");
}
@Test(expected = ClassCastException.class)
public void mapOfMismatchedTypeErrors() {
- IMap<String, String> map = IMap.of(1, 1.0);
+ MapEx<String, String> map = MapEx.of(1, 1.0);
map.forEach((key, val) -> {
// An exception will be thrown here
@@ -30,7 +30,7 @@ public class TestMapCreation {
@Test
public void mapOfCreatesWithGivenContents() {
- IMap<String, String> map = IMap.of("a", "A", "b", "B");
+ MapEx<String, String> map = MapEx.of("a", "A", "b", "B");
assertTrue("Constructed map contains key 'a'", map.containsKey("a"));
assertEquals("Constructed map has key 'a' mapped to value 'A'", "A", map.get("a"));