Exemplo n.º 1
0
 @Test
 public void testConcatVararg() throws Exception {
   Map<String, String> map = ImmutableMap.of("foo", "bar", "dee", "dum");
   TagList t1 = BasicTagList.of("foo", "bar");
   TagList tags = BasicTagList.concat(t1, new BasicTag("dee", "dum"));
   assertEquals(tags.asMap(), map);
 }
Exemplo n.º 2
0
 @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);
 }
Exemplo n.º 3
0
 @Test
 public void testConcatOverride() throws Exception {
   Map<String, String> map = ImmutableMap.of("foo", "bar2");
   TagList t1 = BasicTagList.of("foo", "bar");
   TagList t2 = BasicTagList.of("foo", "bar2");
   TagList tags = BasicTagList.concat(t1, t2);
   assertEquals(tags.asMap(), map);
 }