@Test public void testCopyOfIterableString() throws Exception { Map<String, String> map = ImmutableMap.of("foo", "bar", "dee", "dum"); List<String> input = ImmutableList.of("foo=bar", "dee=dum"); TagList tags = BasicTagList.copyOf(input); assertEquals(tags.asMap(), map); }
@Test public void testOf() throws Exception { BasicTagList expected = BasicTagList.copyOf(ImmutableMap.of("foo", "bar", "id", "1")); BasicTagList of = BasicTagList.of("foo", "bar", "id", "1"); assertEquals(of, expected); }