예제 #1
0
파일: PropsTest.java 프로젝트: vtudiv/jodd
  @Test
  public void testDuplicate() throws IOException {
    Props p = new Props();
    loadProps(p, "test-dupl.props");

    assertEquals("three", p.getValue("foo"));
    assertEquals("everywhere", p.getValue("bar", "prof"));

    p = new Props();
    p.setAppendDuplicateProps(true);
    loadProps(p, "test-dupl.props");

    assertEquals("one,two,three", p.getValue("foo"));
    assertEquals("here,there,everywhere", p.getValue("bar", "prof"));
  }