You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2011/02/05 23:29:25 UTC

svn commit: r1067543 - /myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java

Author: lu4242
Date: Sat Feb  5 22:29:24 2011
New Revision: 1067543

URL: http://svn.apache.org/viewvc?rev=1067543&view=rev
Log:
make LifecycleProviderFactory to be on servlet context attribute map, not bound to a static variable to ensure LifecycleProviderFactory.release to be executed correctly (fix test)

Modified:
    myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java

Modified: myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java
URL: http://svn.apache.org/viewvc/myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java?rev=1067543&r1=1067542&r2=1067543&view=diff
==============================================================================
--- myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java (original)
+++ myfaces/core/branches/1.2.x/impl/src/test/java/org/apache/myfaces/config/annotation/Myfaces1761TestCase.java Sat Feb  5 22:29:24 2011
@@ -58,15 +58,15 @@ public class Myfaces1761TestCase extends
         managedProperty.setValue(INJECTED_VALUE);
         beanConfiguration.addProperty(managedProperty);
         
-        LifecycleProviderFactory.getLifecycleProviderFactory().release();
+        LifecycleProviderFactory.getLifecycleProviderFactory(externalContext).release();
         servletContext.addInitParameter(DefaultLifecycleProviderFactory.LIFECYCLE_PROVIDER, TEST_LIFECYCLE_PROVIDER);
     }
 
     public void tearDown() throws Exception
     {
+        LifecycleProviderFactory.getLifecycleProviderFactory(externalContext).release();
         super.tearDown();
         managedBeanBuilder = null;
-        LifecycleProviderFactory.getLifecycleProviderFactory().release();
     }
     
     public void testPostConstruct() throws Exception