Fix generics issues in test. Related to []
@@ -41,9 +41,8 @@ public class KeysFunctionTest {
SoyValue map =
SoyValueConverterUtility.newDict(
"boo", "bar", "foo", 2, "goo", SoyValueConverterUtility.newDict("moo", 4));
- @SuppressWarnings("unchecked")
- List<SoyValue> result = (List<SoyValue>) tester.callFunction(map);
- assertThat(result).containsExactly("boo", "foo", "goo");
+ Object result = tester.callFunction(map);
+ assertThat(result).isInstanceOf(List.class);
+ assertThat((List<?>) result).containsExactly("boo", "foo", "goo");
}
-
}
