@Test
  public void messagesMatch() throws Exception {
    MessageComparator comparator = new MessageComparator(Messages.class);
    assertTrue(comparator.getDifferences(), comparator.isMatch());

    comparator = new MessageComparator(Messages.class, Locale.FRENCH);
    assertTrue(comparator.getDifferences(), comparator.isMatch());

    // Test files not tested because messages are intentionally
    // problematic.
  }
示例#2
0
 @Test
 public void messagesMatch() throws Exception {
   MessageComparator comparator = new MessageComparator(Messages.class);
   assertTrue(comparator.getDifferences(), comparator.isMatch());
 }