@Test public void testDetach() { Model<String> singularModel = new Model<String>("Person") { @Override public void detach() { detached = true; } }; final PluralizedModel model = new PluralizedModel(singularModel); model.getObject(); model.detach(); assertTrue(detached); }
@Override public void detach() { singular.detach(); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public void detach() { singular.detach(); } }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public void detach() { singular.detach(); } PluralizedModel(IModel<String> singular); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public void detach() { singular.detach(); } PluralizedModel(IModel<String> singular); @Override void detach(); @Override String getObject(); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public void detach() { singular.detach(); } PluralizedModel(IModel<String> singular); @Override void detach(); @Override String getObject();  }