@Test public void shouldReturnEqualPredicatesForExistingKeys() { PropertiesDescription description = wildcard(); assertEquals(equalTo(2), description.get("two")); assertEquals(equalTo("3"), description.get("three")); assertEquals(equalTo(new int[] {4, 5}), description.get("array")); }
@Test public void shouldContainCorrectKeys() { PropertiesDescription description = wildcard(); List<String> keys = IterableUtils.toList(description.getKeys()); assertEquals(3, keys.size()); assertTrue(keys.contains("two")); assertTrue(keys.contains("three")); assertTrue(keys.contains("array")); }
@Test public void shouldReturnWildcardForNonExistingKeys() { PropertiesDescription description = wildcard(); assertEquals(any(), description.get("non-existing")); }