geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1060498 - in /geronimo/tck/branches/3.0/atinject-tck-runner: ./ src/ src/main/ src/site/ src/site/apt/ src/test/ src/test/java/ src/test/java/org/ src/test/java/org/apache/ src/test/java/org/apache/webbeans/ src/test/java/org/apache/webbea...
Date Tue, 18 Jan 2011 18:08:55 GMT
Author: xiaming
Date: Tue Jan 18 18:08:54 2011
New Revision: 1060498

URL: http://svn.apache.org/viewvc?rev=1060498&view=rev
Log:
Upgrade atinject-tck to 1.1.0-SNAPSHOT

Added:
    geronimo/tck/branches/3.0/atinject-tck-runner/
    geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT   (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml   (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/main/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/site/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/index.apt
    geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml   (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
  (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
  (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
  (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
  (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
  (with props)
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/
    geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
  (with props)

Added: geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT (added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT Tue Jan 18 18:08:54 2011
@@ -0,0 +1,13 @@
+Atinject tck runner is copied from open web bean atinject-tck project with some modification
in pom.xml.
+
+The parent of the pom is set to open web bean so we don't need to maintain versions/dependencies
ourselves.
+
+They are junit test cases with a standalone test container.
+
+Running the TCK
+===============
+
+Execute:
+
+mvn test
+

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/README.TXT
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml (added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml Tue Jan 18 18:08:54 2011
@@ -0,0 +1,173 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+		<groupId>org.apache.geronimo</groupId>
+		<artifactId>geronimo</artifactId>
+		<version>3.0-SNAPSHOT</version>
+	</parent>
+
+    <artifactId>atinject-tck-runner</artifactId>
+    <version>1.1.0-SNAPSHOT</version>
+    <name>OWB JSR-330 TCK</name>
+    <packaging>jar</packaging>
+    <description>Apache OpenWebBeans JSR-330 TCK Suite</description>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>              
 
+                <configuration>
+                    <includes>
+                        <include>**/OpenWebBeansAtInjectTck.java</include>
+                    </includes>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    
+    <dependencyManagement>
+		<dependencies>
+			<dependency>
+                <groupId>org.apache.openwebbeans</groupId>
+                <artifactId>openwebbeans-porting</artifactId>
+                <version>${openwebbeansVersion}</version>
+            </dependency>
+		</dependencies>
+	</dependencyManagement>
+
+
+    <dependencies>
+        <dependency>
+            <groupId>javax.inject</groupId>
+            <artifactId>javax.inject-tck</artifactId>
+            <version>1</version>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>javax.inject</groupId>
+                    <artifactId>javax.inject</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-atinject_1.0_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.openwebbeans</groupId>
+            <artifactId>openwebbeans-porting</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>openejb-core</artifactId>
+            <version>3.1.2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.openejb</groupId>
+            <artifactId>openejb-jee</artifactId>
+            <version>3.1.2</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-validation_1.0_spec</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.wsdl4j</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-connector_1.6_spec</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.components</groupId>
+            <artifactId>geronimo-transaction</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.components</groupId>
+            <artifactId>geronimo-connector</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.xbean</groupId>
+            <artifactId>xbean-asm-shaded</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.javassist</artifactId>
           
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.bundles</groupId>
+            <artifactId>scannotation</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.16</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.xbean</groupId>
+            <artifactId>xbean-finder</artifactId>                
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_3.1_spec</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+            
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <version>1.5.5</version>
+        </dependency>
+            
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jacc_1.4_spec</artifactId>
+        </dependency>        
+    </dependencies>
+    
+</project>

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/index.apt?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/index.apt (added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/site/apt/index.apt Tue Jan 18 18:08:54
2011
@@ -0,0 +1,16 @@
+~~ Licensed to the Apache Software Foundation (ASF) under one or more
+~~ contributor license agreements. See the NOTICE file distributed with this
+~~ work for additional information regarding copyright ownership. The ASF
+~~ licenses this file to You under the Apache License, Version 2.0 (the
+~~ "License"); you may not use this file except in compliance with the License.
+~~ You may obtain a copy of the License at
+~~ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
+~~ or agreed to in writing, software distributed under the License is
+~~ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+~~ KIND, either express or implied. See the License for the specific language
+~~ governing permissions and limitations under the License.
+OpenWebBeans API
+
+  Application Programming Interface for the JSR-299 
+  Java Contexts and Dependency Injection.
+

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml (added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml Tue Jan 18 18:08:54 2011
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<project name="OpenWebBeans-API">
+    <publishDate format="dd MMM yyyy" />
+    <version position="left"/>
+    
+    <body>
+        <breadcrumbs>
+            <item name="Apache" href="http://www.apache.org"/>
+            <item name="OpenWebBeans" href="http://openwebbeans.apache.org"/>
+            <item name="atinject TCK" href="http://openwebbeans.apache.org/${project.version}/atinject-tck"/>
+        </breadcrumbs>
+
+        <menu name="Overview">
+            <item name="Introduction" href="index.html" />
+        </menu>
+    
+        <menu ref="reports"/>
+    </body>
+</project>
+

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/site/site.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.atinject.tck;
+
+import org.apache.webbeans.atinject.tck.container.AtInjectContainer;
+
+import junit.framework.Test;
+
+public class OpenWebBeansAtInjectTck
+{
+    public static Test suite()
+    {
+        return new AtInjectContainer().start();
+    }
+
+}

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/OpenWebBeansAtInjectTck.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,95 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.atinject.tck.container;
+
+import java.lang.annotation.Annotation;
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.enterprise.inject.spi.Bean;
+import javax.enterprise.inject.spi.BeanManager;
+
+import junit.framework.Test;
+
+import org.apache.webbeans.atinject.tck.specific.SpecificProducer;
+import org.apache.webbeans.test.tck.StandaloneContainersImpl;
+import org.atinject.tck.Tck;
+import org.atinject.tck.auto.Car;
+import org.atinject.tck.auto.Convertible;
+import org.atinject.tck.auto.FuelTank;
+import org.atinject.tck.auto.Seat;
+import org.atinject.tck.auto.Tire;
+import org.atinject.tck.auto.V8Engine;
+import org.atinject.tck.auto.accessories.Cupholder;
+import org.jboss.testharness.api.DeploymentException;
+
+public class AtInjectContainer extends StandaloneContainersImpl
+{ 
+    private static Set<Class<?>> deploymentClasses = null;
+    
+    static
+    {
+        deploymentClasses = new HashSet<Class<?>>();
+        deploymentClasses.add(Convertible.class);
+        deploymentClasses.add(Seat.class);
+        deploymentClasses.add(Tire.class);
+        deploymentClasses.add(V8Engine.class);
+        deploymentClasses.add(Cupholder.class);
+        deploymentClasses.add(FuelTank.class);
+        
+        //Adding our special producer
+        deploymentClasses.add(SpecificProducer.class);
+        
+    }
+    
+    public AtInjectContainer()
+    {
+        
+    }
+    
+    public Test start()
+    {
+        try
+        {
+            deploy(deploymentClasses);
+            
+            BeanManager manager = getBeanManager(); 
+            Set<Bean<?>> beans = manager.getBeans(Car.class, new Annotation[0]);
+            Bean<?> carBean = beans.iterator().next();
+            
+            Car car = (Car)manager.getReference(carBean , Car.class , manager.createCreationalContext(carBean));
+            
+            return Tck.testsFor(car, false, true);
+            
+        }catch(DeploymentException e)
+        {
+            e.printStackTrace();
+        }
+        
+        return null;
+    }
+    
+    
+    public void stop()
+    {
+        undeploy();            
+
+    }
+    
+}

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/container/AtInjectContainer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.atinject.tck.specific;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+
+@Qualifier
+@Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER
})
+public @interface DriverBinding 
+{
+
+}

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/DriverBinding.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.atinject.tck.specific;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+
+@Qualifier
+@Retention(RetentionPolicy.RUNTIME)
+@Target( { ElementType.FIELD, ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER
})
+public @interface SpareBinding 
+{
+
+}

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpareBinding.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.webbeans.atinject.tck.specific;
+
+import javax.enterprise.inject.Typed;
+import javax.enterprise.inject.Default;
+import javax.enterprise.inject.New;
+import javax.enterprise.inject.Produces;
+import javax.inject.Named;
+
+import org.atinject.tck.auto.Drivers;
+import org.atinject.tck.auto.DriversSeat;
+import org.atinject.tck.auto.Seat;
+import org.atinject.tck.auto.accessories.SpareTire;
+
+
+public class SpecificProducer
+{
+    public SpecificProducer()
+    {
+        
+    }
+    
+    @Produces @Drivers
+    public Seat produceDrivers(@New DriversSeat seat)
+    {
+        return seat;
+    }
+    
+    
+    @Produces @DriverBinding @Typed(value={DriversSeat.class})
+    public DriversSeat produceDriverSeat(@New DriversSeat seat)
+    {
+        return seat;
+    }
+    
+    
+    @Produces @Named("spare") @SpareBinding
+    public SpareTire produceSpare(@New SpareTire tire)
+    {
+        return tire;
+    }
+    
+    @Produces @Default @Typed(value={SpareTire.class})
+    public SpareTire produceSpareTire(@New SpareTire tire)
+    {
+        return tire;
+    }
+    
+}

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/java/org/apache/webbeans/atinject/tck/specific/SpecificProducer.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
URL: http://svn.apache.org/viewvc/geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties?rev=1060498&view=auto
==============================================================================
--- geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
(added)
+++ geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
Tue Jan 18 18:08:54 2011
@@ -0,0 +1,39 @@
+#Licensed to the Apache Software Foundation (ASF) under one
+#or more contributor license agreements.  See the NOTICE file
+#distributed with this work for additional information
+#regarding copyright ownership.  The ASF licenses this file
+#to you under the Apache License, Version 2.0 (the
+#"License"); you may not use this file except in compliance
+#with the License.  You may obtain a copy of the License at
+#
+#  http://www.apache.org/licenses/LICENSE-2.0
+#
+#Unless required by applicable law or agreed to in writing,
+#software distributed under the License is distributed on an
+#"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#KIND, either express or implied.  See the License for the
+#specific language governing permissions and limitations
+#under the License.
+
+#---------------------------------------------------------------
+# The default configuration for OpenWebBeans
+#
+# The default configuration is intended for a JDK and a simple ServletContainer
+# like jetty, resin or tomcat.
+# 
+#---------------------------------------------------------------
+
+#general configuration section
+
+
+# the service section:
+# The key is the Interface, the value the implementation of the service
+
+# use the static HashMap instead of storing objects in JNDI as default  
+org.apache.webbeans.spi.JNDIService=org.apache.webbeans.corespi.se.DefaultJndiService
+
+# lookup the javax.transaction.TransactionManager via JNDI as default 
+org.apache.webbeans.spi.TransactionService=org.apache.webbeans.corespi.se.DefaultTransactionService
+
+#use the web metadata as default
+org.apache.webbeans.spi.ScannerService=org.apache.webbeans.test.tck.mock.TCKMetaDataDiscoveryImpl
\ No newline at end of file

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/tck/branches/3.0/atinject-tck-runner/src/test/resources/META-INF/openwebbeans/openwebbeans.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message