@Test public void testCopy() throws Exception { final I18NModel model = new Null18NModel(); final I18NModel copy = model.copy(); assertEquals(copy, model); copy.putValue(I18NModel.DEFAULT, "Changed"); assertNull(model.getValue("EN")); assertNull(copy.getValue("EN")); }
@Override public I18NModel copy() { return this; }
Null18NModel implements I18NModel { @Override public I18NModel copy() { return this; } }
Null18NModel implements I18NModel { @Override public I18NModel copy() { return this; }  }
Null18NModel implements I18NModel { @Override public I18NModel copy() { return this; }  @Override String getValue(final String locale); @Override void putValue(final String locale, final String value); @Override Map<String, String> getAllValues(); @Override I18NModel copy(); @Override int hashCode(); @Override boolean equals(final Object obj); }
Null18NModel implements I18NModel { @Override public I18NModel copy() { return this; }  @Override String getValue(final String locale); @Override void putValue(final String locale, final String value); @Override Map<String, String> getAllValues(); @Override I18NModel copy(); @Override int hashCode(); @Override boolean equals(final Object obj);  }