Weld SVN: r5697 - cdi-tck/branches/1.0/impl/src/main/resources/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 14:44:24 -0500 (Mon, 01 Feb 2010)
New Revision: 5697
Modified:
cdi-tck/branches/1.0/impl/src/main/resources/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/TestLibrary.tld
Log:
CDITCK-103
Modified: cdi-tck/branches/1.0/impl/src/main/resources/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/TestLibrary.tld
===================================================================
--- cdi-tck/branches/1.0/impl/src/main/resources/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/TestLibrary.tld 2010-02-01 14:28:02 UTC (rev 5696)
+++ cdi-tck/branches/1.0/impl/src/main/resources/org/jboss/jsr299/tck/tests/lookup/injection/non/contextual/TestLibrary.tld 2010-02-01 19:44:24 UTC (rev 5697)
@@ -1,14 +1,17 @@
-<taglib>
- <tlib-version>1.0</tlib-version>
- <short-name>test-library</short-name>
- <uri>http://contextual.non.injection.lookup.tests.tck.jsr299.jboss.org/</uri>
- <jspversion>2.1</jspversion>
-<tag>
- <name>tag</name>
- <tag-class>org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.TestTagHandler</tag-class>
- <body-content>empty</body-content>
-</tag>
-<listener>
- <listener-class>org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.TagLibraryListener</listener-class>
-</listener>
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<taglib xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
+ version="2.1">
+
+ <tlib-version>1.0</tlib-version>
+ <short-name>test-library</short-name>
+ <uri>http://contextual.non.injection.lookup.tests.tck.jsr299.jboss.org/</uri>
+ <listener>
+ <listener-class>org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.TagLibraryListener</listener-class>
+ </listener>
+ <tag>
+ <name>tag</name>
+ <tag-class>org.jboss.jsr299.tck.tests.lookup.injection.non.contextual.TestTagHandler</tag-class>
+ <body-content>empty</body-content>
+ </tag>
</taglib>
\ No newline at end of file
14 years, 10 months
Weld SVN: r5696 - core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 09:28:02 -0500 (Mon, 01 Feb 2010)
New Revision: 5696
Added:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
Modified:
core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java
Log:
add a simple test for no interface views
Added: core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java (rev 0)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java 2010-02-01 14:28:02 UTC (rev 5696)
@@ -0,0 +1,21 @@
+package org.jboss.weld.tests.enterprise;
+
+import javax.ejb.Stateful;
+
+@Stateful
+public class Castle
+{
+
+ private boolean pinged;
+
+ public boolean isPinged()
+ {
+ return pinged;
+ }
+
+ public void ping()
+ {
+ this.pinged = true;
+ }
+
+}
Property changes on: core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/Castle.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java 2010-02-01 12:58:17 UTC (rev 5695)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/enterprise/EnterpriseBeanTest.java 2010-02-01 14:28:02 UTC (rev 5696)
@@ -1,4 +1,5 @@
/*
+
* 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
@@ -22,6 +23,7 @@
import org.jboss.testharness.impl.packaging.IntegrationTest;
import org.jboss.testharness.impl.packaging.Packaging;
import org.jboss.testharness.impl.packaging.PackagingType;
+import org.jboss.weld.bean.SessionBean;
import org.jboss.weld.test.AbstractWeldTest;
import org.jboss.weld.test.Utils;
import org.testng.annotations.Test;
@@ -95,4 +97,13 @@
assert action.getGoodBye().equals("goodbye");
}
+ @Test(description = "Simple test for no-interface views", groups="broken")
+ public void testNoInterfaceView()
+ {
+ Castle castle = getReference(Castle.class);
+ castle.ping();
+ assert castle.isPinged();
+ assert getBean(Castle.class) instanceof SessionBean<?>;
+ }
+
}
14 years, 10 months
Weld SVN: r5695 - core/trunk/jboss-tck-runner/src/test/resources.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:58:17 -0500 (Mon, 01 Feb 2010)
New Revision: 5695
Modified:
core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml
Log:
wrong bug number
Modified: core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml
===================================================================
--- core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml 2010-02-01 12:48:48 UTC (rev 5694)
+++ core/trunk/jboss-tck-runner/src/test/resources/tck-tests.xml 2010-02-01 12:58:17 UTC (rev 5695)
@@ -203,7 +203,7 @@
</methods>
</class>
- <!-- JBAS-7666 -->
+ <!-- JBAS-7677 -->
<class name="org.jboss.jsr299.tck.tests.implementation.enterprise.definition.EnterpriseBeanDefinitionTest">
<methods>
<exclude name="testBeanTypesAreLocalInterfacesWithoutWildcardTypesOrTypeVariablesWithSuperInterfaces" />
14 years, 10 months
Weld SVN: r5694 - in extensions/trunk: parent and 1 other directory.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:48:48 -0500 (Mon, 01 Feb 2010)
New Revision: 5694
Modified:
extensions/trunk/bom/
extensions/trunk/parent/
Log:
ignores
Property changes on: extensions/trunk/bom
___________________________________________________________________
Name: svn:ignore
+ .settings
.project
Property changes on: extensions/trunk/parent
___________________________________________________________________
Name: svn:ignore
+ .settings
.project
14 years, 10 months
Weld SVN: r5693 - servlet/trunk.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:48:28 -0500 (Mon, 01 Feb 2010)
New Revision: 5693
Modified:
servlet/trunk/
Log:
ignores
Property changes on: servlet/trunk
___________________________________________________________________
Name: svn:ignore
+ .settings
local.build.properties
.project
14 years, 10 months
Weld SVN: r5692 - servlet/trunk.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:32:25 -0500 (Mon, 01 Feb 2010)
New Revision: 5692
Modified:
servlet/trunk/pom.xml
Log:
explictly use jta 1.1
Modified: servlet/trunk/pom.xml
===================================================================
--- servlet/trunk/pom.xml 2010-02-01 12:10:40 UTC (rev 5691)
+++ servlet/trunk/pom.xml 2010-02-01 12:32:25 UTC (rev 5692)
@@ -204,6 +204,12 @@
<artifactId>jboss-test-harness-tomcat</artifactId>
<version>${jboss.test.harness.version}</version>
</dependency>
+
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>jta</artifactId>
+ <version>1.1</version>
+ </dependency>
</dependencies>
14 years, 10 months
Weld SVN: r5691 - java-se/trunk/src/main/java/org/jboss/weld/environment/se/bindings.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:10:40 -0500 (Mon, 01 Feb 2010)
New Revision: 5691
Modified:
java-se/trunk/src/main/java/org/jboss/weld/environment/se/bindings/Parameters.java
Log:
minor
Modified: java-se/trunk/src/main/java/org/jboss/weld/environment/se/bindings/Parameters.java
===================================================================
--- java-se/trunk/src/main/java/org/jboss/weld/environment/se/bindings/Parameters.java 2010-02-01 12:07:58 UTC (rev 5690)
+++ java-se/trunk/src/main/java/org/jboss/weld/environment/se/bindings/Parameters.java 2010-02-01 12:10:40 UTC (rev 5691)
@@ -1,4 +1,4 @@
-/**
+/*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
@@ -16,10 +16,15 @@
*/
package org.jboss.weld.environment.se.bindings;
-import java.lang.annotation.ElementType;
+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.RetentionPolicy;
import java.lang.annotation.Target;
+
import javax.inject.Qualifier;
/**
@@ -27,6 +32,6 @@
* @author Peter Royle
*/
@Qualifier
-(a)Retention(RetentionPolicy.RUNTIME)
-@Target( { ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD, ElementType.TYPE })
+@Retention(RUNTIME)
+@Target({ PARAMETER, METHOD, FIELD, TYPE })
public @interface Parameters {}
14 years, 10 months
Weld SVN: r5690 - in java-se/trunk/src/test/java/org/jboss/weld/environment/se/test: events and 1 other directory.
by weld-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2010-02-01 07:07:58 -0500 (Mon, 01 Feb 2010)
New Revision: 5690
Added:
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Bar.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier1.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier2.java
java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java
Log:
Test for forum reported bug
Added: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java 2010-02-01 12:07:58 UTC (rev 5690)
@@ -0,0 +1,46 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, 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.environment.se.test;
+
+import org.jboss.weld.environment.se.ShutdownManager;
+import org.jboss.weld.environment.se.Weld;
+import org.jboss.weld.environment.se.WeldContainer;
+import org.jboss.weld.environment.se.test.events.Foo;
+import org.testng.annotations.Test;
+
+/**
+ *
+ * @author Peter Royle
+ */
+public class EventsTest
+{
+
+ @Test(description="forum post check")
+ public void testEventQualifiersCorrect()
+ {
+ Foo.reset();
+ WeldContainer weld = new Weld().initialize();
+ assert !Foo.isObservedEventTest();
+ shutdownManager(weld);
+ }
+
+ private void shutdownManager(WeldContainer weld)
+ {
+ ShutdownManager shutdownManager = weld.instance().select(ShutdownManager.class).get();
+ shutdownManager.shutdown();
+ }
+}
Property changes on: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/EventsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Bar.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Bar.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Bar.java 2010-02-01 12:07:58 UTC (rev 5690)
@@ -0,0 +1,6 @@
+package org.jboss.weld.environment.se.test.events;
+
+public class Bar
+{
+
+}
Property changes on: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Bar.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier1.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier1.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier1.java 2010-02-01 12:07:58 UTC (rev 5690)
@@ -0,0 +1,37 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, 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.environment.se.test.events;
+
+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;
+
+/**
+ *
+ * @author Peter Royle
+ */
+@Qualifier
+@Retention(RUNTIME)
+@Target({ PARAMETER, METHOD, FIELD, TYPE })
+public @interface EventQualifier1 {}
Property changes on: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier1.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier2.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier2.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier2.java 2010-02-01 12:07:58 UTC (rev 5690)
@@ -0,0 +1,37 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, Red Hat, Inc. and/or its affiliates, 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.environment.se.test.events;
+
+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;
+
+/**
+ *
+ * @author Peter Royle
+ */
+@Qualifier
+@Retention(RUNTIME)
+@Target({ PARAMETER, METHOD, FIELD, TYPE })
+public @interface EventQualifier2 {}
Property changes on: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/EventQualifier2.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
Added: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java
===================================================================
--- java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java (rev 0)
+++ java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java 2010-02-01 12:07:58 UTC (rev 5690)
@@ -0,0 +1,39 @@
+package org.jboss.weld.environment.se.test.events;
+
+import javax.enterprise.event.Event;
+import javax.enterprise.event.Observes;
+import javax.inject.Inject;
+
+import org.jboss.weld.environment.se.ShutdownManager;
+import org.jboss.weld.environment.se.events.ContainerInitialized;
+
+public class Foo
+{
+
+ private static boolean observedEventTest;
+
+ public static void reset()
+ {
+ observedEventTest = false;
+ }
+
+ public static boolean isObservedEventTest()
+ {
+ return observedEventTest;
+ }
+
+ @Inject
+ @EventQualifier1
+ private Event<Bar> eventTest;
+
+ public void start(@Observes ContainerInitialized event, ShutdownManager shutdownManager)
+ {
+ eventTest.fire(new Bar());
+ }
+
+ public void observeEventTest(@Observes @EventQualifier2 Bar eventTest)
+ {
+ this.observedEventTest = true;
+ }
+
+}
Property changes on: java-se/trunk/src/test/java/org/jboss/weld/environment/se/test/events/Foo.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
14 years, 10 months