tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1296913 - /openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java
Date Mon, 05 Mar 2012 00:41:59 GMT
Author: rmannibucau
Date: Mon Mar  5 00:41:59 2012
New Revision: 1296913

URL: http://svn.apache.org/viewvc?rev=1296913&view=rev
Log:
fixing test compile error

Modified:
    openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java

Modified: openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java?rev=1296913&r1=1296912&r2=1296913&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/test/java/org/apache/openejb/config/scanning/AbstractXmlAnnotationFinderTest.java
Mon Mar  5 00:41:59 2012
@@ -13,6 +13,7 @@ import org.junit.Test;
 import java.lang.reflect.Field;
 import java.lang.reflect.Method;
 import java.net.URL;
+import java.util.Arrays;
 import java.util.List;
 
 import static org.junit.Assert.assertEquals;
@@ -25,9 +26,9 @@ public abstract class AbstractXmlAnnotat
         final ClassLoader loader = Thread.currentThread().getContextClassLoader();
         System.setProperty("openejb.scan.xml.name", scanXml());
         finder = new AnnotationFinder(new ConfigurableClasspathArchive(loader,
-                new URL[] {
+                Arrays.asList(
                         new URL(loader.getResource(scanXml()).toExternalForm().replace(scanXml(),
""))
-                }
+                )
         ));
         System.clearProperty("openejb.scan.xml.name");
     }



Mime
View raw message