Updated Branches: refs/heads/master 46b25bb1e -> 516ce0ac3
a model should be attached to detach it Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/516ce0ac Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/516ce0ac Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/516ce0ac Branch: refs/heads/master Commit: 516ce0ac3a4258dbf30e55f1c2dc233abefe3aca Parents: 46b25bb Author: Emond Papegaaij <papega...@apache.org> Authored: Thu Aug 30 09:28:05 2012 +0200 Committer: Emond Papegaaij <papega...@apache.org> Committed: Thu Aug 30 09:28:05 2012 +0200 ---------------------------------------------------------------------- .../org/apache/wicket/model/ResourceModelTest.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/516ce0ac/wicket-core/src/test/java/org/apache/wicket/model/ResourceModelTest.java ---------------------------------------------------------------------- diff --git a/wicket-core/src/test/java/org/apache/wicket/model/ResourceModelTest.java b/wicket-core/src/test/java/org/apache/wicket/model/ResourceModelTest.java index 381e598..f343e38 100644 --- a/wicket-core/src/test/java/org/apache/wicket/model/ResourceModelTest.java +++ b/wicket-core/src/test/java/org/apache/wicket/model/ResourceModelTest.java @@ -65,7 +65,7 @@ public class ResourceModelTest extends WicketTestCase final boolean[] detached = { false }; - ResourceModel model = new ResourceModel("test") + ResourceModel model = new ResourceModel("testlabel") { private static final long serialVersionUID = 1L; @@ -78,8 +78,8 @@ public class ResourceModelTest extends WicketTestCase } }; - IModel<String> wrapped = model.wrapOnAssignment(null); - + IModel<String> wrapped = model.wrapOnAssignment(new TestPage()); + wrapped.getObject(); wrapped.detach(); assertTrue(null, detached[0]);