From: erik Date: Thu, 29 Jul 2010 21:54:30 +0000 (+0000) Subject: (no commit message) X-Git-Tag: wamblee-utils-0.5~36 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=cff330db46b433e59741af125a359e63e567d609;p=utils --- diff --git a/wicket/components/src/test/java/org/wamblee/wicket/page/WebApplicationBasePageTest.java b/wicket/components/src/test/java/org/wamblee/wicket/page/WebApplicationBasePageTest.java index ec7b9e3b..1ee8cef8 100644 --- a/wicket/components/src/test/java/org/wamblee/wicket/page/WebApplicationBasePageTest.java +++ b/wicket/components/src/test/java/org/wamblee/wicket/page/WebApplicationBasePageTest.java @@ -199,9 +199,11 @@ public class WebApplicationBasePageTest { public void testSmokeBehaviorFlushEntityManager() throws Exception { WebApplicationBasePage page = new WebApplicationBasePage( mock(IPageMap.class), new PageParameters()); - EntityManager entityManager = mock(EntityManager.class); + final EntityManager entityManager = mock(EntityManager.class); when(entityManager.isOpen()).thenReturn(true); - PageBehavior behavior = new FlushEntityManagerBehavior(entityManager); + PageBehavior behavior = new FlushEntityManagerBehavior() { + public EntityManager getEntityManager() { return entityManager; } + }; page.addBehavior(behavior); wicket.startPage(page); wicket.assertRenderedPage(WebApplicationBasePage.class);