openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r753405 - in /incubator/openwebbeans/trunk/webbeans-tck/src/test: java/org/apache/webbeans/test/tck/BeansImpl.java java/org/apache/webbeans/test/tck/ContainersImpl.java resources/META-INF/web-beans-tck.properties
Date Fri, 13 Mar 2009 21:01:43 GMT
Author: gerdogdu
Date: Fri Mar 13 21:01:42 2009
New Revision: 753405

URL: http://svn.apache.org/viewvc?rev=753405&view=rev
Log:
Updates to last jboss implementation.

Modified:
    incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
    incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContainersImpl.java
    incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/META-INF/web-beans-tck.properties

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java?rev=753405&r1=753404&r2=753405&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
Fri Mar 13 21:01:42 2009
@@ -92,4 +92,9 @@
         return EJBUtil.isEJBSessionStateless(clazz);
     }
 
+    public <T> T getEnterpriseBean(Class<? extends T> beanType, Class<T>
localInterface)
+    {
+        return null;
+    }
+
 }

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContainersImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContainersImpl.java?rev=753405&r1=753404&r2=753405&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContainersImpl.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContainersImpl.java
Fri Mar 13 21:01:42 2009
@@ -13,6 +13,8 @@
  */
 package org.apache.webbeans.test.tck;
 
+import java.io.File;
+import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
 
@@ -27,25 +29,34 @@
 
     public void cleanup() throws IOException
     {
-        // TODO Auto-generated method stub
 
     }
 
     public void deploy(InputStream archive, String name) throws DeploymentException, IOException
     {
-        // TODO Auto-generated method stub
-
+        if(archive.available() > 0)
+        {
+            File file = new File("/home/gurkanerdogdu/jboss-4.2.3.GA/server/default/deploy/"
+ name);
+            FileOutputStream os = new FileOutputStream(file);            
+            byte temp[] = new byte[512];
+            
+            while(archive.read(temp) != -1)
+            {
+                os.write(temp);
+            }            
+    
+        }
+                
+        
     }
 
     public void setup() throws IOException
     {
-        // TODO Auto-generated method stub
 
     }
 
     public void undeploy(String name) throws IOException
     {
-        // TODO Auto-generated method stub
 
     }
 

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/META-INF/web-beans-tck.properties
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/META-INF/web-beans-tck.properties?rev=753405&r1=753404&r2=753405&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/META-INF/web-beans-tck.properties
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/resources/META-INF/web-beans-tck.properties
Fri Mar 13 21:01:42 2009
@@ -19,9 +19,13 @@
 org.jboss.jsr299.tck.spi.Beans=org.apache.webbeans.test.tck.BeansImpl
 org.jboss.jsr299.tck.spi.Contexts=org.apache.webbeans.test.tck.ContextsImpl
 org.jboss.testharness.spi.StandaloneContainers=org.apache.webbeans.test.tck.StandaloneContainersImpl
-
-# not sure if this is still used!
 org.jboss.testharness.spi.Containers=org.apache.webbeans.test.tck.ContainersImpl
-
-# this TCK interface is marked as @Deprecated! Do we still need it? 
 org.jboss.jsr299.tck.spi.EL=org.apache.webbeans.test.tck.ELImpl
+
+org.jboss.testharness.standalone=true
+#jboss-as.dir=/tmp
+#jboss.force.restart=false
+org.jboss.testharness.libraryDirectory=/tmp/lib
+org.jboss.testharness.runIntegrationTests=true
+
+org.jboss.testharness.api.TestLauncher=org.jboss.testharness.impl.runner.servlet.ServletTestLauncher



Mime
View raw message