Author: nbelaevski
Date: 2010-11-10 11:29:24 -0500 (Wed, 10 Nov 2010)
New Revision: 20015
Modified:
trunk/ui/validator/ui/src/test/java/org/richfaces/component/behavior/BehaviorTestBase.java
Log:
Fixed unit test failures
Modified:
trunk/ui/validator/ui/src/test/java/org/richfaces/component/behavior/BehaviorTestBase.java
===================================================================
---
trunk/ui/validator/ui/src/test/java/org/richfaces/component/behavior/BehaviorTestBase.java 2010-11-10
15:12:10 UTC (rev 20014)
+++
trunk/ui/validator/ui/src/test/java/org/richfaces/component/behavior/BehaviorTestBase.java 2010-11-10
16:29:24 UTC (rev 20015)
@@ -14,6 +14,7 @@
import org.jboss.test.faces.mock.MockController;
import org.jboss.test.faces.mock.MockFacesEnvironment;
import org.jboss.test.faces.mock.Stub;
+import org.junit.After;
import org.junit.Before;
import org.richfaces.application.ServicesFactory;
@@ -44,6 +45,12 @@
behavior = createBehavior();
}
+
+ @After
+ public void tearDown() throws Exception {
+ controller.release();
+ }
+
protected ClientBehaviorContext setupBehaviorContext(UIComponent component) {
expect(behaviorContext.getComponent()).andStubReturn(component);
expect(behaviorContext.getFacesContext()).andStubReturn(environment.getFacesContext());
Show replies by date