Exemplo n.º 1
0
  @Test
  public void parse_map() {
    Map<String, Object> map = parser.parseMap(new SourceFile(null, "name: Bob"));

    assertThat(map).containsExactly(entry("name", "Bob"));
  }
Exemplo n.º 2
0
  @Test
  public void parse_empty_map() {
    Map<String, Object> map = parser.parseMap(new SourceFile(null, ""));

    assertThat(map).isEmpty();
  }