[weld-commits] Weld SVN: r6767 - extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Fri Jul 23 13:15:27 EDT 2010


Author: pete.muir at jboss.org
Date: 2010-07-23 13:15:26 -0400 (Fri, 23 Jul 2010)
New Revision: 6767

Added:
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Bar.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Baz.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/BazProducer.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Corge.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Foo.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Garply.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Grault.java
Removed:
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericConstructorArgument.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericDep.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericMain.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericProducer.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/InjectedBean.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/NormalBean.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/SomeQualifier.java
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/TestAnnotation.java
Modified:
   extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericBeanTest.java
Log:
start to unweave test details

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Bar.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericDep.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Bar.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Bar.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import javax.inject.Inject;
+
+import org.jboss.weld.extensions.bean.generic.Generic;
+
+/**
+ * A generic bean
+ * 
+ * @author pmuir
+ *
+ */
+
+ at Generic(Garply.class)
+public class Bar
+{
+   @Inject
+   private Garply injectedGarply;
+
+   private Garply garply;
+
+   public String getValue()
+   {
+      return injectedGarply.value();
+   }
+
+   public Garply getGarply()
+   {
+      return garply;
+   }
+}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Baz.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericMain.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Baz.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Baz.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import javax.inject.Inject;
+
+import org.jboss.weld.extensions.bean.generic.Generic;
+
+/**
+ * 
+ * 
+ * @author pmuir
+ *
+ */
+
+ at Generic(Garply.class)
+public class Baz
+{
+   @Inject
+   public Baz(Foo args)
+   {
+      constArgs = args;
+   }
+
+   @Inject
+   private Bar dep;
+
+   @Inject
+   private Corge normalBean;
+
+   private Foo constArgs;
+
+   public String getValue()
+   {
+      return dep.getValue();
+   }
+
+   public Garply getNoData()
+   {
+      return dep.getGarply();
+   }
+   
+   public Corge getNormalBean()
+   {
+      return normalBean;
+   }
+}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/BazProducer.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericProducer.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/BazProducer.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/BazProducer.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import javax.enterprise.inject.Produces;
+
+/**
+ * A producer of Baz's
+ * @author pmuir
+ *
+ */
+public class BazProducer
+{
+   @SuppressWarnings("unused")
+   @Grault(1)
+   @Produces
+   @Garply("hello1")
+   private Baz baz1;
+
+   @SuppressWarnings("unused")
+   @Grault(2)
+   @Produces
+   @Garply("hello2")
+   private Baz baz2;
+
+}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Corge.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/NormalBean.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Corge.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Corge.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,28 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+/**
+ * A normal bean
+ * 
+ * @author pmuir
+ *
+ */
+public class Corge
+{
+
+}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Foo.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericConstructorArgument.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Foo.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Foo.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import javax.inject.Inject;
+
+import org.jboss.weld.extensions.bean.generic.Generic;
+
+/**
+ * A generic bean
+ * 
+ * @author pmuir
+ *
+ */
+
+ at Generic(Garply.class)
+public class Foo
+{
+   @Inject
+   private Garply data;
+
+   public String getValue()
+   {
+      return data.value();
+   }
+
+}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Garply.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/TestAnnotation.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Garply.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Garply.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import org.jboss.weld.extensions.bean.generic.GenericAnnotation;
+
+/**
+ * A "generic annotation"
+ * 
+ * @author pmuir
+ *
+ */
+
+ at Retention(RUNTIME)
+ at Target({METHOD, FIELD, PARAMETER, TYPE})
+ at GenericAnnotation
+public @interface Garply
+{
+   String value();
+}

Modified: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericBeanTest.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericBeanTest.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericBeanTest.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -36,15 +36,20 @@
    }
 
    @Inject
-   InjectedBean bean;
+   @Grault(1)
+   private Baz baz1;
 
+   @Inject
+   @Grault(2)
+   private Baz baz2;
+
    @Test
    public void testGeneric()
    {
-      assert bean.main1.getValue().equals("hello1");
-      assert bean.main2.getValue().equals("hello2");
-      assert bean.main1.getNoData() == null;
-      assert bean.main2.getNoData() == null;
-      assert bean.main2.normalBean != null;
+      assert baz1.getValue().equals("hello1");
+      assert baz2.getValue().equals("hello2");
+      assert baz1.getNoData() == null;
+      assert baz2.getNoData() == null;
+      assert baz2.getNormalBean() != null;
    }
 }

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericConstructorArgument.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericConstructorArgument.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericConstructorArgument.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,34 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import javax.inject.Inject;
-
-import org.jboss.weld.extensions.bean.generic.Generic;
-
- at Generic(TestAnnotation.class)
-public class GenericConstructorArgument
-{
-   @Inject
-   TestAnnotation data;
-
-   public String getValue()
-   {
-      return data.value();
-   }
-
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericDep.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericDep.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericDep.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,40 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import javax.inject.Inject;
-
-import org.jboss.weld.extensions.bean.generic.Generic;
-
- at Generic(TestAnnotation.class)
-public class GenericDep
-{
-   @Inject
-   TestAnnotation data;
-
-   TestAnnotation noData;
-
-   public String getValue()
-   {
-      return data.value();
-   }
-
-   public TestAnnotation getNoData()
-   {
-      return noData;
-   }
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericMain.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericMain.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericMain.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,49 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import javax.inject.Inject;
-
-import org.jboss.weld.extensions.bean.generic.Generic;
-
- at Generic(TestAnnotation.class)
-public class GenericMain
-{
-   @Inject
-   public GenericMain(GenericConstructorArgument args)
-   {
-      constArgs = args;
-   }
-
-   @Inject
-   GenericDep dep;
-
-   @Inject
-   NormalBean normalBean;
-
-   GenericConstructorArgument constArgs;
-
-   public String getValue()
-   {
-      return dep.getValue();
-   }
-
-   public TestAnnotation getNoData()
-   {
-      return dep.getNoData();
-   }
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericProducer.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericProducer.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/GenericProducer.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,33 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import javax.enterprise.inject.Produces;
-
-public class GenericProducer
-{
-   @SomeQualifier(1)
-   @Produces
-   @TestAnnotation("hello1")
-   GenericMain main1;
-
-   @SomeQualifier(2)
-   @Produces
-   @TestAnnotation("hello2")
-   GenericMain main2;
-
-}

Copied: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Grault.java (from rev 6756, extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/SomeQualifier.java)
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Grault.java	                        (rev 0)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/Grault.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -0,0 +1,43 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * Licensed 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.jboss.weld.extensions.test.bean.generic;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+/**
+ * A "normal" qualifier
+ * 
+ * @author pmuir
+ *
+ */
+
+ at Retention(RUNTIME)
+ at Target({METHOD, FIELD, PARAMETER, TYPE})
+ at Qualifier
+public @interface Grault
+{
+   int value();
+}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/InjectedBean.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/InjectedBean.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/InjectedBean.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,31 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import javax.inject.Inject;
-
-public class InjectedBean
-{
-   @Inject
-   @SomeQualifier(1)
-   public GenericMain main1;
-
-   @Inject
-   @SomeQualifier(2)
-   public GenericMain main2;
-
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/NormalBean.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/NormalBean.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/NormalBean.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,22 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-public class NormalBean
-{
-
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/SomeQualifier.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/SomeQualifier.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/SomeQualifier.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,29 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-
-import javax.inject.Qualifier;
-
- at Retention(RetentionPolicy.RUNTIME)
- at Qualifier
-public @interface SomeQualifier
-{
-   int value();
-}

Deleted: extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/TestAnnotation.java
===================================================================
--- extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/TestAnnotation.java	2010-07-23 05:53:44 UTC (rev 6766)
+++ extensions/trunk/impl/src/test/java/org/jboss/weld/extensions/test/bean/generic/TestAnnotation.java	2010-07-23 17:15:26 UTC (rev 6767)
@@ -1,29 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc., and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * Licensed 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.jboss.weld.extensions.test.bean.generic;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-
-import org.jboss.weld.extensions.bean.generic.GenericAnnotation;
-
- at Retention(RetentionPolicy.RUNTIME)
- at GenericAnnotation
-public @interface TestAnnotation
-{
-   String value();
-}



More information about the weld-commits mailing list