openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r881060 - /incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java
Date Mon, 16 Nov 2009 23:49:42 GMT
Author: struberg
Date: Mon Nov 16 23:49:42 2009
New Revision: 881060

URL: http://svn.apache.org/viewvc?rev=881060&view=rev
Log:
OWB-169 NPE in PrimitiveProducerTest fixed by startUp() the PluginLoader

The PluginLoader has to be initialised before we can use them. I moved the
startUp from the TestContext#init() function to it's constructor to make sure
this will always be called.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java?rev=881060&r1=881059&r2=881060&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/common/TestContext.java
Mon Nov 16 23:49:42 2009
@@ -117,6 +117,7 @@
         TestContext.testContexts.add(this);
         this.manager = new MockManager();
         this.xmlConfigurator = new WebBeansXMLConfigurator();
+        PluginLoader.getInstance().startUp();            
     }
     
 
@@ -134,8 +135,6 @@
         initDecorators();
         initStereoTypes();
         initDependentContext();            
-
-        PluginLoader.getInstance().startUp();            
     }
 
     /**



Mime
View raw message