[webbeans-commits] Webbeans SVN: r1122 - ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation.
by webbeans-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2009-01-20 08:26:28 -0500 (Tue, 20 Jan 2009)
New Revision: 1122
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java
Log:
wrong import
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java 2009-01-20 11:45:02 UTC (rev 1121)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java 2009-01-20 13:26:28 UTC (rev 1122)
@@ -1,6 +1,6 @@
package org.jboss.webbeans.test.unit.implementation;
-import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.test.unit.AbstractTest;
import org.testng.annotations.Test;
public class RemoveMethodTests extends AbstractTest
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1121 - in tck/trunk/impl/src/main/java/org/jboss/webbeans/tck: integration/event and 2 other directories.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2009-01-20 06:45:02 -0500 (Tue, 20 Jan 2009)
New Revision: 1121
Added:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Pomeranian.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/PomeranianInterface.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Tame.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Terrier.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/TibetanTerrier.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Egg.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/LazyFarmer.java
Removed:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Egg.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Farmer.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/LazyFarmer.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/PomeranianInterface.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Terrier.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/TibetanTerrier.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Pomeranian.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Farmer.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/SpecializationTest.java
Log:
Split out the integration tests for the events and some cleanup.
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,98 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, 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.webbeans.tck.integration.event;
+
+import java.util.Set;
+
+import javax.webbeans.Observer;
+import javax.webbeans.manager.Bean;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.testng.annotations.Test;
+
+/**
+ * Integration tests for Web Bean events.
+ *
+ * @author David Allen
+ *
+ */
+public class EventTest extends AbstractTest
+{
+ @Test(groups = { "stub", "events", "integration" })
+ @SpecAssertion(section = "8.4")
+ public void testObserverCalledBeforeTransactionCompleteMaySetRollbackOnly()
+ {
+ assert false;
+ }
+
+ @Test(groups = { "stub", "events", "integration" })
+ @SpecAssertion(section = "8.4")
+ public void testObserverManipulatingJTATransactionsDirectlyFails()
+ {
+ assert false;
+ }
+
+ @Test(groups = { "events", "integration" })
+ @SpecAssertion(section = "8.5")
+ public void testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic()
+ {
+ deployBeans(Pomeranian.class);
+ Set<Bean<Object>> beans = manager.resolveByType(Object.class);
+ assert beans.size() >= 2;
+ Set<Observer<String>> observers = manager.resolveObservers("An event");
+ assert observers.size() == 2;
+ }
+
+ @Test(groups = { "events", "integration" })
+ @SpecAssertion(section = "8.5")
+ public void testObserverMethodOnEnterpriseBeanNotBusinessMethodOrStaticFails()
+ {
+ deployBeans(TibetanTerrier.class);
+ Set<Bean<Object>> beans = manager.resolveByType(Object.class);
+ assert beans.size() >= 2;
+ Set<Observer<String>> observers = manager.resolveObservers("An event");
+ assert observers.size() == 1;
+ }
+
+ /**
+ *
+ */
+ @Test(groups = { "events", "integration" })
+ @SpecAssertion(section = "8.5.7")
+ public void testEnterpriseBeanObserverMethodCalledWithCallerContext()
+ {
+ deployBeans(Pomeranian.class);
+ Set<Bean<Object>> beans = manager.resolveByType(Object.class);
+ assert beans.size() >= 1;
+ String event = "A new event";
+ Set<Observer<String>> observers = manager.resolveObservers(event);
+ assert observers.size() == 2;
+
+ manager.fireEvent(event);
+ assert Thread.currentThread().equals(Pomeranian.notificationThread);
+ }
+
+ @Test(groups = { "stub", "events", "integration" })
+ @SpecAssertion(section = "8.5.7")
+ public void testTransactionalObserverThrownExceptionIsCaughtAndLogged()
+ {
+ assert false;
+ }
+
+}
Property changes on: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/EventTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Pomeranian.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Pomeranian.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Pomeranian.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Pomeranian.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.tck.integration.event;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Named;
+import javax.webbeans.Observes;
+
+@Stateful
+@Tame
+@Named("Teddy")
+class Pomeranian implements PomeranianInterface
+{
+ public static Thread notificationThread;
+
+ public void observeSimpleEvent(@Observes String someEvent)
+ {
+ notificationThread = Thread.currentThread();
+ }
+
+ public static void staticallyObserveEvent(@Observes String someEvent)
+ {
+ }
+}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/PomeranianInterface.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/PomeranianInterface.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/PomeranianInterface.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/PomeranianInterface.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,6 @@
+package org.jboss.webbeans.tck.integration.event;
+
+public interface PomeranianInterface
+{
+
+}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Tame.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Tame.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Tame.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Tame.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.tck.integration.event;
+
+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.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.webbeans.BindingType;
+
+@Target( { TYPE, METHOD, PARAMETER, FIELD })
+@Retention(RUNTIME)
+@Documented
+@BindingType
+@interface Tame
+{
+
+}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Terrier.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Terrier.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Terrier.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/Terrier.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.tck.integration.event;
+
+import javax.ejb.Local;
+
+@Local
+public interface Terrier
+{
+
+}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/TibetanTerrier.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/TibetanTerrier.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/TibetanTerrier.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/event/TibetanTerrier.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.tck.integration.event;
+
+import javax.ejb.Stateless;
+import javax.webbeans.Observes;
+
+@Stateless
+class TibetanTerrier implements Terrier
+{
+ public void observeInitialized(@Observes String someEvent)
+ {
+ }
+}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Egg.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Egg.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Egg.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,6 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-class Egg
-{
-
-}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/EventTest.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -136,7 +136,6 @@
// First test with the Class<T> of the event type
manager.addObserver(observer, AnEventType.class);
Set<Observer<AnEventType>> resolvedObservers = manager.resolveObservers(new AnEventType());
- assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 1;
assert resolvedObservers.iterator().next() == observer;
@@ -146,7 +145,6 @@
{
});
resolvedObservers = manager.resolveObservers(new AnEventType());
- assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 2;
boolean foundObserver = false;
for (Observer<AnEventType> obs : resolvedObservers)
@@ -164,7 +162,6 @@
Annotation[] bindingTypes = new Annotation[] { new RoleBinding("Admin"), new RoleBinding("Manager") };
manager.addObserver(observer, AnEventType.class, bindingTypes);
resolvedObservers = manager.resolveObservers(new AnEventType(), bindingTypes);
- assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 3;
foundObserver = false;
for (Observer<AnEventType> obs : resolvedObservers)
@@ -263,7 +260,7 @@
assert observer2.wasNotified;
}
- @Test(groups = { "events" })
+ @Test(groups = { "events", "broken" })
@SpecAssertion(section = "8.4")
public void testObserverThrowsExceptionAbortsNotifications()
{
@@ -291,57 +288,28 @@
// assert !observer.wasNotified;
}
- @Test(groups = { "stub", "events" })
- @SpecAssertion(section = "8.4")
- public void testObserverCalledBeforeTransactionCompleteMaySetRollbackOnly()
- {
- assert false;
- }
-
- @Test(groups = { "stub", "events" })
- @SpecAssertion(section = "8.4")
- public void testObserverManipulatingJTATransactionsDirectlyFails()
- {
- assert false;
- }
-
@Test(groups = { "events" })
@SpecAssertion(section = "8.5")
- public void testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic()
+ public void testMultipleObserverMethodsOK()
{
- deployBeans(Pomeranian.class);
+ // This bean has a couple observer methods
+ deployBeans(TeaCupPomeranian.class);
Set<Bean<Object>> beans = manager.resolveByType(Object.class);
assert beans.size() >= 2;
- Set<Observer<String>> observers = manager.resolveObservers("An event");
- assert observers.size() == 2;
- }
- @Test(groups = { "events" })
- @SpecAssertion(section = "8.5")
- public void testObserverMethodOnEnterpriseBeanNotBusinessMethodOrStaticFails()
- {
- deployBeans(TibetanTerrier.class);
- Set<Bean<Object>> beans = manager.resolveByType(Object.class);
- assert beans.size() >= 2;
- Set<Observer<String>> observers = manager.resolveObservers("An event");
- assert observers.size() == 1;
+ // Resolve the observers for String and Integer
+ Set<Observer<String>> resolvedStringObservers = manager.resolveObservers("A new event");
+ assert resolvedStringObservers.size() == 1;
+
+ Set<Observer<Integer>> resolvedIntegerObservers = manager.resolveObservers(new Integer(42));
+ assert resolvedIntegerObservers.size() == 1;
}
- @Test(groups = { "events" })
- @SpecAssertion(section = "8.5")
- public void testMultipleObserverMethodsOK()
- {
- // Somewhat of a cheat, but this other test already does have 2 observer
- // methods
- // for the same event type and event bindings.
- testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic();
- }
-
@Test(groups = { "events" }, expectedExceptions = { DefinitionException.class })
@SpecAssertion(section = { "8.5.1", "8.5.2" })
public void testObserverMethodMustHaveOnlyOneEventParameter()
{
- deployBeans(YorkshireTerrier.class);
+ deployBeans(YorkshireTerrier_Broken.class);
Set<Bean<Object>> beans = manager.resolveByType(Object.class);
assert beans != null;
@@ -367,7 +335,6 @@
// Resolve registered observers with an event containing no binding types
Set<Observer<String>> resolvedObservers = manager.resolveObservers("A new event");
- assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 2;
}
@@ -417,7 +384,6 @@
// If we can resolve the observer with the two binding types,
// then it worked
Set<Observer<String>> resolvedObservers = manager.resolveObservers("An event object", new RoleBinding("Admin"), new TameAnnotationLiteral());
- assert !resolvedObservers.isEmpty();
assert resolvedObservers.size() == 1;
}
@@ -521,35 +487,16 @@
@SpecAssertion(section = "8.5.7")
public void testObserverMethodRegistration()
{
- // For now, this test is checking the registration of methods
- testObserverMethodOnEnterpriseBeanIsBusinessMethodOrStatic();
- }
-
- /**
- *
- */
- @Test(groups = { "broken", "events" })
- @SpecAssertion(section = "8.5.7")
- public void testEnterpriseBeanObserverMethodCalledWithCallerContext()
- {
+ // This bean has two observer methods, one static and one non-static
deployBeans(Pomeranian.class);
Set<Bean<Object>> beans = manager.resolveByType(Object.class);
- assert beans.size() >= 1;
- String event = "A new event";
- Set<Observer<String>> observers = manager.resolveObservers(event);
- assert observers.size() == 2;
+ assert beans.size() >= 2;
- manager.fireEvent(event);
- assert Thread.currentThread().equals(Pomeranian.notificationThread);
+ // Resolve registered observers with an event containing no binding types
+ Set<Observer<String>> resolvedObservers = manager.resolveObservers("A new event");
+ assert resolvedObservers.size() == 2;
}
- @Test(groups = { "stub", "events" })
- @SpecAssertion(section = "8.5.7")
- public void testTransactionalObserverThrownExceptionIsCaughtAndLogged()
- {
- assert false;
- }
-
@Test(groups = { "events" }, expectedExceptions = { TeaCupPomeranian.OversizedException.class })
@SpecAssertion(section = "8.5.7")
public void testNonTransactionalObserverThrownNonCheckedExceptionIsRethrown()
@@ -969,12 +916,4 @@
{
assert false;
}
-
- @Test @SpecAssertion(section="4.2")
- public void testNonStaticProducerMethodNotInherited()
- {
- deployBeans(LazyFarmer.class);
- assert manager.resolveObservers(new Egg()).isEmpty();
- }
-
}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Farmer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Farmer.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Farmer.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,13 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-import javax.webbeans.Observes;
-
-class Farmer
-{
-
- public void observeEggLaying(@Observes Egg egg)
- {
-
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/LazyFarmer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/LazyFarmer.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/LazyFarmer.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,6 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-public class LazyFarmer extends Farmer
-{
-
-}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Pomeranian.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Pomeranian.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Pomeranian.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,13 +1,10 @@
package org.jboss.webbeans.tck.unit.event;
-import javax.ejb.Stateful;
import javax.webbeans.Named;
import javax.webbeans.Observes;
-@Stateful
-@Tame
@Named("Teddy")
-class Pomeranian implements PomeranianInterface
+class Pomeranian
{
public static Thread notificationThread;
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/PomeranianInterface.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/PomeranianInterface.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/PomeranianInterface.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,6 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-public interface PomeranianInterface
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Terrier.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Terrier.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Terrier.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,9 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-import javax.ejb.Local;
-
-@Local
-public interface Terrier
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/TibetanTerrier.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/TibetanTerrier.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/TibetanTerrier.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,12 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-import javax.ejb.Stateless;
-import javax.webbeans.Observes;
-
-@Stateless
-class TibetanTerrier implements Terrier
-{
- public void observeInitialized(@Observes String someEvent)
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.event;
-
-import javax.ejb.Stateless;
-import javax.webbeans.Observes;
-import javax.webbeans.manager.Initialized;
-import javax.webbeans.manager.Manager;
-
-@Stateless
-class YorkshireTerrier
-{
- public void observeInitialized(@Observes @Initialized Manager manager, @Observes Boxer anotherDog)
- {
- }
-}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier_Broken.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/YorkshireTerrier_Broken.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.tck.unit.event;
+
+import javax.webbeans.Observes;
+import javax.webbeans.manager.Initialized;
+import javax.webbeans.manager.Manager;
+
+class YorkshireTerrier_Broken
+{
+ public void observeInitialized(@Observes @Initialized Manager manager, @Observes Boxer anotherDog)
+ {
+ }
+}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Egg.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/Egg.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Egg.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Egg.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,6 @@
+package org.jboss.webbeans.tck.unit.inheritance.specialization;
+
+class Egg
+{
+
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Farmer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Farmer.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/Farmer.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -1,6 +1,15 @@
package org.jboss.webbeans.tck.unit.inheritance.specialization;
-public class Farmer
+import javax.webbeans.Observes;
+
+import org.jboss.webbeans.tck.unit.inheritance.specialization.Egg;
+
+class Farmer
{
+ public void observeEggLaying(@Observes Egg egg)
+ {
+
+ }
+
}
Copied: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/LazyFarmer.java (from rev 1120, tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/event/LazyFarmer.java)
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/LazyFarmer.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/LazyFarmer.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -0,0 +1,7 @@
+package org.jboss.webbeans.tck.unit.inheritance.specialization;
+
+
+public class LazyFarmer extends Farmer
+{
+
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/SpecializationTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/SpecializationTest.java 2009-01-20 08:57:15 UTC (rev 1120)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/inheritance/specialization/SpecializationTest.java 2009-01-20 11:45:02 UTC (rev 1121)
@@ -2,22 +2,32 @@
import javax.webbeans.InconsistentSpecializationException;
+import org.jboss.webbeans.tck.AbstractTest;
import org.jboss.webbeans.tck.impl.SpecAssertion;
import org.testng.annotations.Test;
-public class SpecializationTest
+public class SpecializationTest extends AbstractTest
{
-
- @Test(expectedExceptions=InconsistentSpecializationException.class, groups={"stub", "specialization"})
+
+ @Test
+ @SpecAssertion(section = "4.2")
+ public void testNonStaticProducerMethodNotInherited()
+ {
+ deployBeans(LazyFarmer.class);
+ assert manager.resolveObservers(new Egg()).isEmpty();
+ }
+
+ @Test(expectedExceptions = InconsistentSpecializationException.class, groups = { "stub", "specialization" })
public void testInconsistentSpecialization()
{
-
+
}
-
- @Test @SpecAssertion(section="4.3")
+
+ @Test
+ @SpecAssertion(section = "4.3")
public void testSpecializedBeanDirectlyExtendsLowerPriorityBean()
{
-
+
}
-
+
}
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1120 - in tck/trunk/impl/src/main/java/org/jboss/webbeans/tck: integration/lookup/manager and 2 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-20 03:57:15 -0500 (Tue, 20 Jan 2009)
New Revision: 1120
Added:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
Log:
integration tests
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/manager/ManagerTest.java 2009-01-20 08:57:15 UTC (rev 1120)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.lookup.manager;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.testng.annotations.Test;
+
+public class ManagerTest extends AbstractTest
+{
+ @Test(groups={"stub", "manager", "ejb3"}) @SpecAssertion(section="5.8")
+ public void testManagerLookupInJndi()
+ {
+ assert false;
+ }
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java 2009-01-20 07:26:54 UTC (rev 1119)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/manager/ManagerTest.java 2009-01-20 08:57:15 UTC (rev 1120)
@@ -6,19 +6,10 @@
public class ManagerTest extends AbstractTest
{
-
@Test(groups={"manager", "injection", "deployment"}) @SpecAssertion(section="5.8")
public void testInjectingManager()
{
FishFarmOffice fishFarmOffice = createSimpleBean(FishFarmOffice.class).create();
assert fishFarmOffice.manager != null;
- }
-
-
- @Test(groups={"stub", "manager", "ejb3"}) @SpecAssertion(section="5.8")
- public void testManagerLookupInJndi()
- {
- assert false;
- }
-
+ }
}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-01-20 07:26:54 UTC (rev 1119)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/typesafe/InstantiationByTypeTest.java 2009-01-20 08:57:15 UTC (rev 1120)
@@ -91,16 +91,5 @@
{
deployBeans(FinalTuna_Broken.class);
manager.getInstanceByType(FinalTuna_Broken.class, new AnnotationLiteral<Whitefish>(){});
- }
-
- /*
-
- @Test(groups="resolution") @SpecAssertion(section="5.9")
- public void test
- {
- assert false;
- }
-
- */
-
+ }
}
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1119 - doc/trunk/reference/zh-TW.
by webbeans-commits@lists.jboss.org
Author: tchuang
Date: 2009-01-20 02:26:54 -0500 (Tue, 20 Jan 2009)
New Revision: 1119
Modified:
doc/trunk/reference/zh-TW/intro.po
doc/trunk/reference/zh-TW/scopescontexts.po
Log:
Translation updated
Modified: doc/trunk/reference/zh-TW/intro.po
===================================================================
--- doc/trunk/reference/zh-TW/intro.po 2009-01-20 07:21:21 UTC (rev 1118)
+++ doc/trunk/reference/zh-TW/intro.po 2009-01-20 07:26:54 UTC (rev 1119)
@@ -8,7 +8,7 @@
"Project-Id-Version: intro\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-19 18:17+1000\n"
+"PO-Revision-Date: 2009-01-20 17:26+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -312,7 +312,6 @@
#. Tag: para
#: intro.xml:113
#, no-c-format
-#, fuzzy
msgid ""
"For a given thread in a Web Beans application, there may be an "
"<emphasis>active context</emphasis> associated with the scope of the Web "
@@ -320,7 +319,7 @@
"is request scoped), or it may be shared with certain other threads (for "
"example, if the Web Bean is session scoped) or even all other threads (if it "
"is application scoped)."
-msgstr "Web Bean 應用程式中的某個執行緒"
+msgstr "Web Bean 應用程式中的某個執行緒可能會有個和該 Web Bean 的 scope 關聯的 <emphasis>active context</emphasis>。這個 context 對於執行緒來說可能會是獨一無二的(例如,若 Web Bean 為 request scoped 的話),或是它亦有可能共享於其它特定執行緒之間(例如,若 Web Bean 為 session scoped 的話)或甚至是共享於所有其它執行緒之間(若它是 application scoped 的話)。"
#. Tag: para
#: intro.xml:119
@@ -379,7 +378,7 @@
#: intro.xml:149
#, no-c-format
msgid "Enough hand-waving. More formally, according to the spec:"
-msgstr ""
+msgstr "根據規格:"
#. Tag: para
#: intro.xml:153
@@ -616,13 +615,13 @@
msgid ""
"We'll talk more about this unique and powerful feature in <xref linkend="
"\"deploymenttypes\"/>."
-msgstr ""
+msgstr "我們將在 <xref linkend=\"deploymenttypes\"/> 中更詳細地討論到這項獨特和強大的功能。"
#. Tag: title
#: intro.xml:246
#, no-c-format
msgid "Scope"
-msgstr ""
+msgstr "Scope"
#. Tag: para
#: intro.xml:248
@@ -641,7 +640,7 @@
msgid ""
"For example, any web application may have <emphasis>session scoped</"
"emphasis> Web Beans:"
-msgstr ""
+msgstr "比方說,任何網站應用程式都能夠有 <emphasis>session scoped</emphasis> 的 Web Bean:"
#. Tag: programlisting
#: intro.xml:257
@@ -659,7 +658,7 @@
msgid ""
"An instance of a session scoped Web Bean is bound to a user session and is "
"shared by all requests that execute in the context of that session."
-msgstr ""
+msgstr "一個 session scoped 的 Web Bean 的 instance 會被綁定至一個用戶的 session,並且會被所有執行於該 session 的 context 中的請求共享。"
#. Tag: para
#: intro.xml:262
@@ -669,19 +668,19 @@
"<emphasis>dependent pseudo-scope</emphasis>. Web Beans with this scope are "
"pure dependent objects of the object into which they are injected, and their "
"lifecycle is bound to the lifecycle of that object."
-msgstr ""
+msgstr "就預設值,Web Bean 屬於一個稱為 <emphasis>dependent pseudo-scope</emphasis> 的特殊 scope。含有這個 scope 的 Web Bean 純粹就是它們所被注入的物件的相依物件,並且它們的生命週期綁定至該物件的生命週期。"
#. Tag: para
#: intro.xml:267
#, no-c-format
msgid "We'll talk more about scopes in <xref linkend=\"scopescontexts\"/>."
-msgstr ""
+msgstr "我們將在 <xref linkend=\"scopescontexts\"/> 中詳細討論 scope。"
#. Tag: title
#: intro.xml:272
#, no-c-format
msgid "Web Bean names and Unified EL"
-msgstr ""
+msgstr "Web Bean 名稱和 Unified EL"
#. Tag: para
#: intro.xml:274
@@ -689,7 +688,7 @@
msgid ""
"A Web Bean may have a <emphasis>name</emphasis>, allowing it to be used in "
"Unified EL expressions. It's easy to specify the name of a Web Bean:"
-msgstr ""
+msgstr "Web Bean 能夠擁有一個<emphasis>名稱</emphasis>,這能允許它被使用於 Unified EL 表示式中。要指定 Web Bean 的名稱相當容易:"
#. Tag: programlisting
#: intro.xml:278
@@ -705,7 +704,7 @@
#: intro.xml:280
#, no-c-format
msgid "Now we can easily use the Web Bean in any JSF or JSP page:"
-msgstr ""
+msgstr "現在我們能輕易地在任何 JSF 或 JSP 網頁中使用 Web Bean:"
#. Tag: programlisting
#: intro.xml:282
@@ -723,7 +722,7 @@
#: intro.xml:284
#, no-c-format
msgid "It's even easier to just let the name be defaulted by the Web Bean manager:"
-msgstr ""
+msgstr "讓 Web Bean 管理員來預設這個名稱可能會更加容易:"
#. Tag: programlisting
#: intro.xml:287
@@ -741,13 +740,13 @@
msgid ""
"In this case, the name defaults to <literal>shoppingCart</literal>—the "
"unqualified class name, with the first character changed to lowercase."
-msgstr ""
+msgstr "在此情況下,名稱將被預設為 <literal>shoppingCart</literal>—這是個不完整的 class 名稱,並且第一個字元已被改變為小寫。"
#. Tag: title
#: intro.xml:295
#, no-c-format
msgid "Interceptor binding types"
-msgstr ""
+msgstr "攔截器綁定類型"
#. Tag: para
#: intro.xml:297
@@ -757,7 +756,7 @@
"for EJB beans, but also for plain Java classes. In addition, Web Beans "
"provides a new approach to binding interceptors to EJB beans and other Web "
"Beans."
-msgstr ""
+msgstr "Web Bean 支援 EJB 3 所定義的攔截器功能,不只是 EJB bean 支援,純 Java 的 class 也支援。另外,Web Bean 也提供了一個新的方法來將攔截器綁定至 EJB bean 和其它的 Web Bean。"
#. Tag: para
#: intro.xml:302
@@ -765,7 +764,7 @@
msgid ""
"It remains possible to directly specify the interceptor class via use of the "
"<literal>@Interceptors</literal> annotation:"
-msgstr ""
+msgstr "您也能直接地透過使用 <literal>@Interceptors</literal> 標記來指定攔截器(interceptor)class:"
#. Tag: programlisting
#: intro.xml:305
@@ -785,7 +784,7 @@
msgid ""
"However, it is more elegant, and better practice, to indirect the "
"interceptor binding through an <emphasis>interceptor binding type</emphasis>:"
-msgstr ""
+msgstr "不過,透過 <emphasis>interceptor binding type(攔截器綁定類型)</emphasis>來將攔截器綁定重定向會是較好的作法:"
#. Tag: programlisting
#: intro.xml:311
@@ -803,13 +802,13 @@
msgid ""
"We'll discuss Web Beans interceptors and decorators in <xref linkend="
"\"interceptors\"/> and <xref linkend=\"decorators\"/>."
-msgstr ""
+msgstr "我們將在 <xref linkend=\"interceptors\"/> 和 <xref linkend=\"decorators\"/> 中更詳細地討論 Web Bean 攔截器與裝飾器。"
#. Tag: title
#: intro.xml:321
#, no-c-format
msgid "What kinds of objects can be Web Beans?"
-msgstr ""
+msgstr "哪種物件屬於 Web Bean?"
#. Tag: para
#: intro.xml:323
@@ -817,13 +816,13 @@
msgid ""
"We've already seen that JavaBeans, EJBs and some other Java classes can be "
"Web Beans. But exactly what kinds of objects are Web Beans?"
-msgstr ""
+msgstr "我們已經看過 JavaBean、EJB 和一些其它的 Java class 都能屬於 Web Bean。不過 Web Bean 到底是哪種物件呢?"
#. Tag: title
#: intro.xml:327
#, no-c-format
msgid "Simple Web Beans"
-msgstr ""
+msgstr "基本的 Web Bean"
#. Tag: para
#: intro.xml:329
@@ -831,7 +830,7 @@
msgid ""
"The Web Beans specification says that a concrete Java class is a "
"<emphasis>simple</emphasis> Web Bean if:"
-msgstr ""
+msgstr "Web Bean 規格談到了一個具備下列條件的具體 Java class 就是個 <emphasis>simple(基本)</emphasis>Web Bean:"
#. Tag: para
#: intro.xml:334
@@ -839,13 +838,13 @@
msgid ""
"it is not an EE container-managed component, like an EJB, a Servlet or a JPA "
"entity,"
-msgstr ""
+msgstr "它不像 EJB、Servlet 或 JPA 實體都是個 EE container 所管理的元件、"
#. Tag: para
#: intro.xml:338
#, no-c-format
msgid "it is not a non-static static inner class,"
-msgstr ""
+msgstr "它不是個非靜態的靜態內部類別(static inner class)、"
#. Tag: para
#: intro.xml:341
@@ -1032,7 +1031,7 @@
#: intro.xml:427
#, no-c-format
msgid "Producer methods"
-msgstr ""
+msgstr "Producer method"
#. Tag: para
#: intro.xml:429
@@ -1096,7 +1095,7 @@
#: intro.xml:445
#, no-c-format
msgid "Some producer methods return objects that require explicit destruction:"
-msgstr ""
+msgstr "有些 producer method 會回傳需要明確銷毀的物件:"
#. Tag: programlisting
#: intro.xml:447
@@ -1116,7 +1115,7 @@
msgid ""
"These producer methods may define matching <emphasis>disposal methods</"
"emphasis>:"
-msgstr ""
+msgstr "這些 producer method 可定義符合的 <emphasis>disposal methods</emphasis>:"
#. Tag: programlisting
#: intro.xml:451
@@ -1136,7 +1135,7 @@
msgid ""
"This disposal method is called automatically by the Web Bean manager at the "
"end of the request."
-msgstr ""
+msgstr "這個 disposal method 會在請求結束後自動地被 Web Bean 管理員調用。"
#. Tag: para
#: intro.xml:456
@@ -1144,13 +1143,13 @@
msgid ""
"We'll talk much more about producer methods in <xref linkend="
"\"producermethods\"/>."
-msgstr ""
+msgstr "我們將在 <xref linkend=\"producermethods\"/> 中詳細討論 producer method。"
#. Tag: title
#: intro.xml:461
#, no-c-format
msgid "JMS endpoints"
-msgstr ""
+msgstr "JMS 端點(endpoints)"
#. Tag: para
#: intro.xml:463
@@ -1160,5 +1159,5 @@
"developer from the tedium of managing the lifecycles of all the various JMS "
"objects required to send messages to queues and topics. We'll discuss JMS "
"endpoints in <xref linkend=\"jms\"/>."
-msgstr ""
+msgstr "最後,JMS 佇列(queue)或主題(topic)都能是個 Web Bean。Web Bean 能讓開發人員省去管理所有傳送訊息至佇列和主題所需的不同 JMS 物件生命週期的麻煩。我們將在 <xref linkend=\"jms\"/> 中詳細討論 JMS 端點。"
Modified: doc/trunk/reference/zh-TW/scopescontexts.po
===================================================================
--- doc/trunk/reference/zh-TW/scopescontexts.po 2009-01-20 07:21:21 UTC (rev 1118)
+++ doc/trunk/reference/zh-TW/scopescontexts.po 2009-01-20 07:26:54 UTC (rev 1119)
@@ -8,7 +8,7 @@
"Project-Id-Version: scopescontexts\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-20 12:10+1000\n"
+"PO-Revision-Date: 2009-01-20 16:49+1000\n"
"Last-Translator: Terry Chuang <tchuang(a)redhat.com>\n"
"Language-Team: Traditional Chinese <zh(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -243,13 +243,13 @@
"in that it holds state associated with a user of the system, and spans "
"multiple requests to the server. However, unlike the session scope, the "
"conversation scope:"
-msgstr ""
+msgstr "Web Bean 的 conversation scope 和傳統的 session scope 類似,它們都持有著有關於系統用戶的狀態,並發出多重請求至伺服器。conversation scope 和 session scope 不同的地方在於:"
#. Tag: para
#: scopescontexts.xml:130
#, no-c-format
msgid "is demarcated explicitly by the application, and"
-msgstr ""
+msgstr "conversation scope 已被應用程式明確區分,並且"
#. Tag: para
#: scopescontexts.xml:133
@@ -257,7 +257,7 @@
msgid ""
"holds state associated with a particular web browser tab in a JSF "
"application."
-msgstr ""
+msgstr "它在 JSF 應用程式中會持有和特定網站瀏覽器分頁相關的狀態。"
#. Tag: para
#: scopescontexts.xml:138
@@ -267,7 +267,7 @@
"the user. The conversation context holds state associated with what the user "
"is currently working on. If the user is doing multiple things at the same "
"time, there are multiple conversations."
-msgstr ""
+msgstr "Conversation(對話)代表一項工作,從用戶角度來看是項工作的單位。conversation 的 context 持有和用戶目前工作相關的狀態。若用戶同時間一次進行多項工作的話,那就會有多個 conversation。"
#. Tag: para
#: scopescontexts.xml:143
@@ -277,13 +277,13 @@
"conversations are destroyed at the end of the request. If a conversation "
"should hold state across multiple requests, it must be explicitly promoted "
"to a <emphasis>long-running conversation</emphasis>."
-msgstr ""
+msgstr "conversation context 會在任何 JSF 請求進行中的時候啟用。不過,大部分的 conversation 都會在請求結束後被刪除掉。若有個 conversation 必須持有多重請求的狀態,它便需要被明確地轉為 <emphasis>long-running conversation</emphasis>。"
#. Tag: title
#: scopescontexts.xml:149
#, no-c-format
msgid "Conversation demarcation"
-msgstr ""
+msgstr "Conversation demarcation(對話區分)"
#. Tag: para
#: scopescontexts.xml:151
@@ -292,7 +292,7 @@
"Web Beans provides a built-in Web Bean for controlling the lifecyle of "
"conversations in a JSF application. This Web Bean may be obtained by "
"injection:"
-msgstr ""
+msgstr "Web Bean 提供了一個內建的 Web Bean,它可被用來在 JSF 應用程式中控制 conversation 的生命週期。這個 Web Bean 能透過注入下列來取得:"
#. Tag: programlisting
#: scopescontexts.xml:154
@@ -309,7 +309,7 @@
"application code. To schedule the current long-running conversation context "
"for destruction at the end of the current request, call <literal>end()</"
"literal>."
-msgstr ""
+msgstr "若要將和目前的請求關聯的 conversation 轉為 long-running conversation 的話,請由應用程式的程式碼調用 <literal>begin()</literal> method。若要將目前的 long-running conversation context 排程在目前請求結束時被刪除,請調用 <literal>end()</literal>。"
#. Tag: para
#: scopescontexts.xml:161
@@ -317,7 +317,7 @@
msgid ""
"In the following example, a conversation-scoped Web Bean controls the "
"conversation with which it is associated:"
-msgstr ""
+msgstr "在下列範例中,有個 conversation-scoped 的 Web Bean 會控制和它關聯的 conversation:"
#. Tag: programlisting
#: scopescontexts.xml:164
@@ -392,13 +392,13 @@
"This Web Bean is able to control its own lifecycle through use of the "
"<literal>Conversation</literal> API. But some other Web Beans have a "
"lifecycle which depends completely upon another object."
-msgstr ""
+msgstr "這個 Web Bean 能夠透過使用 <literal>Conversation</literal> API 來控制它自己的生命週期。不過有些其它 Web Bean 的生命週期完全取決於另一個物件。"
#. Tag: title
#: scopescontexts.xml:173
#, no-c-format
msgid "Conversation propagation"
-msgstr ""
+msgstr "Conversation propagation(傳播)"
#. Tag: para
#: scopescontexts.xml:175
@@ -407,7 +407,7 @@
"The conversation context automatically propagates with any JSF faces request "
"(JSF form submission). It does not automatically propagate with non-faces "
"requests, for example, navigation via a link."
-msgstr ""
+msgstr "conversation context 會隨著任何 JSF face 的請求(JSF form submission)自動地傳播。它不會隨著 non-face 的請求(例如透過連結來瀏覽)自動地傳播。"
#. Tag: para
#: scopescontexts.xml:179
@@ -419,13 +419,13 @@
"<literal>cid</literal> for this use. The unique identifier of the "
"conversation may be obtained from the <literal>Conversation</literal> "
"object, which has the Web Beans name <literal>conversation</literal>."
-msgstr ""
+msgstr "我們能夠透過包含 conversation 的唯一識別碼(unique identifier)來作為一個請求參數以強制 conversation 隨著 non-face 的請求進行傳播。Web Bean 規格保留了一個名為 <literal>cid</literal> 的請求參數以用於此情況下。conversation 的唯一識別碼可藉由 <literal>Conversation</literal> 這個物件取得,並且它的 Web Bean 名稱為 <literal>conversation</literal>。"
#. Tag: para
#: scopescontexts.xml:186
#, no-c-format
msgid "Therefore, the following link propagates the conversation:"
-msgstr ""
+msgstr "因此,下列連結會傳播 conversation:"
#. Tag: programlisting
#: scopescontexts.xml:188
@@ -446,13 +446,13 @@
"very easy to implement the common POST-then-redirect pattern, without resort "
"to fragile constructs such as a \"flash\" object. In this case, the Web Bean "
"manager automatically adds a request parameter to the redirect URL."
-msgstr ""
+msgstr "Web Bean 管理員也必須將 conversation 在任何重定向作業之間進行傳播,儘管該 conversation 沒有被標記為 long-running。這使得實做一般的 POST-then-redirect 模式變得非常簡單,這樣便無須使用一些像是「flash」物件的脆弱 construct。在此情況下,Web Bean 管理員會自動地新增一個請求參數至重定向 URL。"
#. Tag: title
#: scopescontexts.xml:200
#, no-c-format
msgid "Conversation timeout"
-msgstr ""
+msgstr "Conversation timeout(逾時)"
#. Tag: para
#: scopescontexts.xml:202
@@ -463,7 +463,7 @@
"manager implementation will normally do this on the basis of some kind of "
"timeout—though this is not required by the Web Beans specification. The "
"timeout is the period of inactivity before the conversation is destroyed."
-msgstr ""
+msgstr "Web Bean 管理員能夠隨時隨地刪除它 context 中的 conversation 以及所有狀態以保留資源。一個 Web Bean 管理員實做一般會利用某種形式的 timeout 來這麼作—儘管這在 Web Bean 規格中是非必要的。Timeout 代表 conversation 在被刪除之前所經過的休止狀態時間。"
#. Tag: para
#: scopescontexts.xml:208
@@ -472,7 +472,7 @@
"The <literal>Conversation</literal> object provides a method to set the "
"timeout. This is a hint to the Web Bean manager, which is free to ignore the "
"setting."
-msgstr ""
+msgstr "<literal>Conversation</literal> 這個物件提供了一個能設置 timeout 的 method。這是個給 Web Bean 管理員的提示,您可忽略該設定。"
#. Tag: programlisting
#: scopescontexts.xml:212
@@ -484,7 +484,7 @@
#: scopescontexts.xml:219
#, no-c-format
msgid "The dependent pseudo-scope"
-msgstr ""
+msgstr "dependent pseudo-scope"
#. Tag: para
#: scopescontexts.xml:221
@@ -493,13 +493,13 @@
"In addition to the four built-in scopes, Web Beans features the so-called "
"<emphasis>dependent pseudo-scope</emphasis>. This is the default scope for a "
"Web Bean which does not explicitly declare a scope type."
-msgstr ""
+msgstr "除了這四個內建的 scope,Web Bean 還提供了一項稱為 <emphasis>dependent pseudo-scope</emphasis> 的功能。這是個未明確宣告 scope 類型的 Web Bean 的預設 scope。"
#. Tag: para
#: scopescontexts.xml:225
#, no-c-format
msgid "For example, this Web Bean has the scope type <literal>@Dependent</literal>:"
-msgstr ""
+msgstr "比方說,這個 Web Bean 的 scope 類型為 <literal>@Dependent</literal>:"
#. Tag: programlisting
#: scopescontexts.xml:227
@@ -516,7 +516,7 @@
"Bean is instantiated. Instances of dependent Web Beans are never shared "
"between different Web Beans or different injection points. They are "
"<emphasis>dependent objects</emphasis> of some other Web Bean instance."
-msgstr ""
+msgstr "當 Web Bean 的一個注入點解析至一個相依 Web Bean 時,每當第一個 Web Bean 被例示(instantiate)時,相依 Web Bean 的一個新的 instance 就會被建立。相依 Web Bean 的 instance 絕不會被共享於不同的 Web Bean 或不同的注入點之間。它們是其它 Web Bean instance 的 <emphasis>dependent object(相依物件)</emphasis>。"
#. Tag: para
#: scopescontexts.xml:235
@@ -524,7 +524,7 @@
msgid ""
"Dependent Web Bean instances are destroyed when the instance they depend "
"upon is destroyed."
-msgstr ""
+msgstr "相依 Web Bean 的 instance 會在它們所依賴的 instance 被刪除掉時跟著被一起刪除。"
#. Tag: para
#: scopescontexts.xml:243
@@ -533,13 +533,13 @@
"Web Beans makes it easy to obtain a dependent instance of a Java class or "
"EJB bean, even if the class or EJB bean is already declared as a Web Bean "
"with some other scope type."
-msgstr ""
+msgstr "Web Bean 使得取得 Java class 或是 EJB bean 的相依 instance 變得相當容易,儘管該 class 或是 EJB bean 已被宣告為一個含有其牠 scope 類型的 Web Bean。"
#. Tag: title
#: scopescontexts.xml:248
#, no-c-format
msgid "The <literal>@New</literal> annotation"
-msgstr ""
+msgstr "<literal>@New</literal> 標記"
#. Tag: para
#: scopescontexts.xml:250
@@ -548,7 +548,7 @@
"The built-in <literal>@New</literal> binding annotation allows "
"<emphasis>implicit</emphasis> definition of a dependent Web Bean at an "
"injection point. Suppose we declare the following injected field:"
-msgstr ""
+msgstr "內建的 <literal>@New</literal> 綁定標記允許在注入點能夠有<emphasis>暗示性</emphasis>的相依 Web Bean 定義。假設我們宣告下列被注入的欄位:"
#. Tag: programlisting
#: scopescontexts.xml:254
@@ -564,7 +564,7 @@
"<literal>@New</literal>, API type <literal>Calculator</literal>, "
"implementation class <literal>Calculator</literal> and deployment type "
"<literal>@Standard</literal> is implicitly defined."
-msgstr ""
+msgstr "如此一來有個含有 scope <literal>@Dependent</literal>、綁定類型 <literal>@New</literal>、API 類型 <literal>Calculator</literal>、實做 class <literal>Calculator</literal> 以及建置類型 <literal>@Standard</literal> 的 Web Bean 就被暗示性地定義了。"
#. Tag: para
#: scopescontexts.xml:261
@@ -572,7 +572,7 @@
msgid ""
"This is true even if <literal>Calculator</literal> is <emphasis>already</"
"emphasis> declared with a different scope type, for example:"
-msgstr ""
+msgstr "就算 <literal>Calculator</literal> <emphasis>已經</emphasis>被宣告為不同 scope type,這還是有效的,比方說:"
#. Tag: programlisting
#: scopescontexts.xml:264
@@ -590,7 +590,7 @@
msgid ""
"So the following injected attributes each get a different instance of "
"<literal>Calculator</literal>:"
-msgstr ""
+msgstr "因此下列已注入的屬性都會各得到一個 <literal>Calculator</literal> 的不同 instance:"
#. Tag: programlisting
#: scopescontexts.xml:269
@@ -618,7 +618,7 @@
"of <literal>Calculator</literal> injected. The <literal>newCalculator</"
"literal> field has a new instance of <literal>Calculator</literal> injected, "
"with a lifecycle that is bound to the owning <literal>PaymentCalc</literal>."
-msgstr ""
+msgstr "<literal>calculator</literal> 這個欄位中注入了一個 <literal>Calculator</literal> 的 conversation-scoped instance。<literal>newCalculator</literal> 欄位中有個新的 <literal>Calculator</literal> 的 instance 被注入了,並且它的生命週期取決於擁有它的 <literal>PaymentCalc</literal>。"
#. Tag: para
#: scopescontexts.xml:276
@@ -626,5 +626,5 @@
msgid ""
"This feature is particularly useful with producer methods, as we'll see in "
"the next chapter."
-msgstr ""
+msgstr "這項功能對於 producer method 來講特別有幫助,我們將在下個章節中討論到。"
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1118 - tck/trunk.
by webbeans-commits@lists.jboss.org
Author: dallen6
Date: 2009-01-20 02:21:21 -0500 (Tue, 20 Jan 2009)
New Revision: 1118
Modified:
tck/trunk/pom.xml
Log:
Removed redundant Hibernate tck-utils dependency
Modified: tck/trunk/pom.xml
===================================================================
--- tck/trunk/pom.xml 2009-01-20 07:20:32 UTC (rev 1117)
+++ tck/trunk/pom.xml 2009-01-20 07:21:21 UTC (rev 1118)
@@ -115,12 +115,6 @@
</dependency>
<dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>tck-utils</artifactId>
- <version>0.9-SNAPSHOT</version>
- </dependency>
-
- <dependency>
<groupId>org.jboss.webbeans</groupId>
<artifactId>webbeans-api</artifactId>
<version>${webbeans.version}</version>
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1117 - in tck/trunk/impl/src/main/java/org/jboss/webbeans/tck: integration/lookup and 3 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-20 02:20:32 -0500 (Tue, 20 Jan 2009)
New Revision: 1117
Added:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java
Removed:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/application/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/conversation/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/request/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/session/
Modified:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java
Log:
split up ResolutionByNameTest, delete empty package dirs
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/lookup/byname/ResolutionByNameTest.java 2009-01-20 07:20:32 UTC (rev 1117)
@@ -0,0 +1,23 @@
+package org.jboss.webbeans.tck.integration.lookup.byname;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+@SpecVersion("20081206")
+public class ResolutionByNameTest extends AbstractTest
+{
+
+ @Test(groups={"stub", "el"}) @SpecAssertion(section="5.11.2")
+ public void testELResolverRegisteredWithJsf()
+ {
+ assert false;
+ }
+
+ @Test(groups={"stub", "el"}) @SpecAssertion(section="5.11.2")
+ public void testELResolverRegisteredWithServlet()
+ {
+ assert false;
+ }
+}
Modified: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-01-20 07:13:45 UTC (rev 1116)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/lookup/byname/ResolutionByNameTest.java 2009-01-20 07:20:32 UTC (rev 1117)
@@ -4,7 +4,6 @@
import java.util.List;
import javax.webbeans.AmbiguousDependencyException;
-import javax.webbeans.UnsatisfiedDependencyException;
import javax.webbeans.manager.Bean;
import org.jboss.webbeans.tck.AbstractTest;
@@ -76,18 +75,6 @@
}
}
- @Test(groups={"stub", "el"}) @SpecAssertion(section="5.11.2")
- public void testELResolverRegisteredWithJsf()
- {
- assert false;
- }
-
- @Test(groups={"stub", "el"}) @SpecAssertion(section="5.11.2")
- public void testELResolverRegisteredWithServlet()
- {
- assert false;
- }
-
@Test @SpecAssertion(section="5.11.1")
public void testNamedBasedResolution()
{
@@ -153,16 +140,5 @@
assert manager.resolveByName("whitefish").size() == 1;
assert !manager.resolveByName("whitefish").contains(codBean);
assert manager.resolveByName("whitefish").contains(plaiceBean);
- }
-
- /*
-
- @Test(groups="el") @SpecAssertion(section="5.11")
- public void test
- {
- assert false;
- }
-
- */
-
+ }
}
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1116 - tck/trunk/impl/src/main/resources.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-20 02:13:45 -0500 (Tue, 20 Jan 2009)
New Revision: 1116
Modified:
tck/trunk/impl/src/main/resources/tck-unit-tests.xml
Log:
run the new tests, exclude integration tests for now
Modified: tck/trunk/impl/src/main/resources/tck-unit-tests.xml
===================================================================
--- tck/trunk/impl/src/main/resources/tck-unit-tests.xml 2009-01-20 06:57:33 UTC (rev 1115)
+++ tck/trunk/impl/src/main/resources/tck-unit-tests.xml 2009-01-20 07:13:45 UTC (rev 1116)
@@ -28,12 +28,13 @@
<exclude name="beanDestruction" />
<exclude name="commonAnnotations" />
-->
- <!--exclude name="stub" /-->
+ <exclude name="stub" />
<exclude name="broken" />
</run>
</groups>
<packages>
- <package name="org.jboss.webbeans.tck.tests" />
+ <package name="org.jboss.webbeans.tck.unit" />
+ <!--package name="org.jboss.webbeans.tck.integration" /-->
</packages>
</test>
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1115 - doc/trunk/reference/ko-KR.
by webbeans-commits@lists.jboss.org
Author: eukim
Date: 2009-01-20 01:57:33 -0500 (Tue, 20 Jan 2009)
New Revision: 1115
Modified:
doc/trunk/reference/ko-KR/injection.po
Log:
updated
Modified: doc/trunk/reference/ko-KR/injection.po
===================================================================
--- doc/trunk/reference/ko-KR/injection.po 2009-01-20 06:56:38 UTC (rev 1114)
+++ doc/trunk/reference/ko-KR/injection.po 2009-01-20 06:57:33 UTC (rev 1115)
@@ -8,7 +8,7 @@
"Project-Id-Version: injection\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-06 11:30+0000\n"
-"PO-Revision-Date: 2009-01-20 01:43+1000\n"
+"PO-Revision-Date: 2009-01-20 16:47+1000\n"
"Last-Translator: Eunju Kim <eukim(a)redhat.com>\n"
"Language-Team: Korean <ko(a)li.org>\n"
"MIME-Version: 1.0\n"
@@ -22,6 +22,7 @@
"\n"
"\n"
"\n"
+"\n"
#. Tag: title
#: injection.xml:4
@@ -176,7 +177,7 @@
"Injected fields, however, <emphasis>must</emphasis> specify a binding type, "
"even when the default binding type applies. If the field does not specify a "
"binding type, it will not be injected."
-msgstr ""
+msgstr "기본값 바인딩 유형 <literal>@Current</literal>가 적용되었을 경우 생성자의 매개 변수 및 초기화 방식에서는 명시적으로 어노테이션할 필요가 없습니다. 하지만 삽입된 영역에는 <emphasis>반드시</emphasis> 바인딩 유형을 지정해야 하며, 언제 기본값 바인딩 유형을 적용할 지도 지정해야 합니다. 영역에 바인딩 유형이 지정되어 있지 않을 경우, 이는 삽입되지 않게 됩니다. "
#. Tag: para
#: injection.xml:51
@@ -225,7 +226,7 @@
msgid ""
"The purpose of this algorithm is to allow multiple Web Beans to implement "
"the same API type and either:"
-msgstr ""
+msgstr "이러한 알고리즘은 여러 Web Beans를 허용하여 동일한 API 유형을 구현하기 위한 것입니다: "
#. Tag: para
#: injection.xml:72
@@ -233,7 +234,7 @@
msgid ""
"allow the client to select which implementation it requires using "
"<emphasis>binding annotations</emphasis>,"
-msgstr ""
+msgstr "또는 클라이언트가 <emphasis>바인딩 어노테이션</emphasis>을 사용하여 필요한 구현 사항을 선택하게 합니다, "
#. Tag: para
#: injection.xml:77
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1114 - ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-20 01:56:38 -0500 (Tue, 20 Jan 2009)
New Revision: 1114
Modified:
ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java
Log:
updated test
Modified: ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java
===================================================================
--- ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java 2009-01-20 06:52:03 UTC (rev 1113)
+++ ri/trunk/webbeans-ri/src/test/java/org/jboss/webbeans/test/unit/implementation/RemoveMethodTests.java 2009-01-20 06:56:38 UTC (rev 1114)
@@ -1,6 +1,6 @@
package org.jboss.webbeans.test.unit.implementation;
-import org.jboss.webbeans.tck.tests.AbstractTest;
+import org.jboss.webbeans.tck.AbstractTest;
import org.testng.annotations.Test;
public class RemoveMethodTests extends AbstractTest
17 years, 2 months
[webbeans-commits] Webbeans SVN: r1113 - in tck/trunk/impl/src/main/java/org/jboss/webbeans/tck: integration and 11 other directories.
by webbeans-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-01-20 01:52:03 -0500 (Tue, 20 Jan 2009)
New Revision: 1113
Added:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/City.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityBinding.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityInterface.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer2.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer3.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Espoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Forssa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Helsinki.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hyvinkaa.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jamsa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Joensuu.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jyvaskyla.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kaarina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kotka_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kuopio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Loviisa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Maarianhamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Mikkeli_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Nokia_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Peraseinajoki.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Pietarsaari_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Porvoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Raisio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Salo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Turku.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Uusikaupunki_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vaasa.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vantaa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation2.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java
Removed:
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/application/ApplicationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/conversation/ConversationContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/City.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityBinding.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityInterface.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer2.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer3.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Espoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Forssa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Helsinki.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hyvinkaa.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jamsa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Joensuu.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jyvaskyla.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kaarina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kotka_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kuopio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Loviisa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Maarianhamina_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Mikkeli_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Nokia_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Peraseinajoki.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Pietarsaari_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Porvoo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Raisio_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Salo_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Turku.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Uusikaupunki_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vaasa.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vantaa_Broken.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation2.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/request/RequestContextTest.java
tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/session/SessionContextTest.java
Log:
split out integration tests
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/application/ApplicationContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,92 @@
+package org.jboss.webbeans.tck.integration.context.application;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+@SpecVersion("20081206")
+public class ApplicationContextTest extends AbstractTest
+{
+
+ /**
+ * The application scope is active during the service() method of any servlet
+ * in the web application.
+ */
+ @Test(groups = { "stub", "contexts", "servlet" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeActiveDuringServiceMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The application scope is active during any Java EE web service invocation.
+ */
+ @Test(groups = { "stub", "contexts", "webservice" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeActiveDuringWebSericeInvocation()
+ {
+ assert false;
+ }
+
+ /**
+ * The application scope is also active during any remote method invocation
+ * of any EJB bean, during any call to an EJB timeout method and during
+ * message delivery to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeActiveDuringRemoteMethodInvocationOfEjb()
+ {
+ assert false;
+ }
+
+ /**
+ * The application scope is also active during any remote method invocation
+ * of any EJB bean, during any call to an EJB timeout method and during
+ * message delivery to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeActiveDuringCallToEjbTimeoutMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The application scope is also active during any remote method invocation
+ * of any EJB bean, during any call to an EJB timeout method and during
+ * message delivery to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeActiveDuringEjbMessageDelivery()
+ {
+ assert false;
+ }
+
+ /**
+ * The application context is shared between all servlet requests, web
+ * service invocations, EJB remote method invocations, EJB timeouts and
+ * message deliveries to message driven beans that execute within the same
+ * application
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationContextSharedBetweenInvokationsInApplication()
+ {
+ assert false;
+ }
+
+ /**
+ * The application context is destroyed when the application is undeployed.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.3")
+ public void testApplicationScopeDestroyedWhenApplicationIsUndeployed()
+ {
+ assert false;
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/conversation/ConversationContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,231 @@
+package org.jboss.webbeans.tck.integration.context.conversation;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+/**
+ *
+ * @author Nicklas Karlsson
+ *
+ */
+@SpecVersion("20081206")
+public class ConversationContextTest extends AbstractTest
+{
+ /**
+ * For a JSF faces request, the context is active from the beginning of the
+ * apply request values phase, until the response is complete.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testContextActiveFromBeginningOfApplyRequestValuesPhasetoResponseCompleteForJsfRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * For a JSF non-faces request, the context is active during the render
+ * response phase
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testContextActiveDuringRenderResponsePhaseForNonFacesJsfRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * Any JSF request has exactly one associated conversation
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testJsfRequestHasExactlyOneAssociatedConversation()
+ {
+ assert false;
+ }
+
+ /**
+ * The conversation associated with a JSF request is determined at the end of
+ * the restore view phase and does not change during the request
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testAssociatedConversationOfJsfRequestIsDeterminedAtEndOfRestoreViewPhase()
+ {
+ assert false;
+ }
+
+ /**
+ * The conversation associated with a JSF request is determined at the end of
+ * the restore view phase and does not change during the request
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testAssociatedConversationOfJsfRequestDoesNotChangeDuringRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * By default, a conversation is transient
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testDefaultConversationIsTransient()
+ {
+ assert false;
+ }
+
+ /**
+ * All long-running conversations have a string-valued unique identifier
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testConversationsHaveUniqueStringIdentifiers()
+ {
+ assert false;
+ }
+
+ /**
+ * If the conversation associated with the current JSF request is in the
+ * transient state at the end of a JSF request, it is destroyed, and the
+ * conversation context is also destroyed.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testTransientConversationIsDestroyedAtEndOfJsfRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * If the conversation associated with the current JSF request is in the
+ * transient state at the end of a JSF request, it is destroyed, and the
+ * conversation context is also destroyed.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testTransientConversationContextIsDestroyedAtEndOfJsfRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * If the conversation associated with the current JSF request is in the
+ * long-running state at the end of a JSF request, it is not destroyed
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testLongRunningConversationNotDestroyedAtEndOfJsfRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * The long-running conversation context associated with a request that
+ * renders a JSF view is automatically propagated to any faces request (JSF
+ * form submission) that originates from that rendered page.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testLongRunningConversationOfJsfRenderingRequestIsPropagatedToRequestFromRenderedPage()
+ {
+ assert false;
+ }
+
+ /**
+ * The long-running conversation context associated with a request that
+ * results in a JSF redirect (via a navigation rule) is automatically
+ * propagated to the resulting non-faces request, and to any other subsequent
+ * request to the same URL. This is accomplished via use of a GET request
+ * parameter named cid containing the unique identifier of the conversation.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testLongRunningConversationOfJsfRedirectIsPropagatedToNonFacesRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * The long-running conversation associated with a request may be propagated
+ * to any non-faces request via use of a GET request parameter named cid
+ * containing the unique identifier of the conversation. In this case, the
+ * application must manage this request parameter
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testLongRunningConversationManuallyPropagatedToNonFacesRequest()
+ {
+ assert false;
+ }
+
+ /**
+ * When no conversation is propagated to a JSF request, the request is
+ * associated with a new transient conversation.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testNewTransientRequestIsCreatedWhenNoConversationIsPropagated()
+ {
+ assert false;
+ }
+
+ /**
+ * All long-running conversations are scoped to a particular HTTP servlet
+ * session and may not cross session boundaries
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testLongRunningConversationsMayNotCrossHttpSessions()
+ {
+ assert false;
+ }
+
+ /**
+ * When the HTTP servlet session is invalidated, all long-running
+ * conversation contexts created during the current session are destroyed
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testAllLongRunningConversationContextsOfInvalidatedHttpSessionAreDestroyed()
+ {
+ assert false;
+ }
+
+ /**
+ * The Web Bean manager is permitted to arbitrarily destroy any long-running
+ * conversation that is associated with no current JSF request, in order to
+ * conserve resources
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testManagerCanDestroyOrphanedLongRunningConversations()
+ {
+ assert false;
+ }
+
+ /**
+ * If the propagated conversation cannot be restored, the request is
+ * associated with a new transient conversation
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testNewTransientConversationIsCreatedWhenConversationCannotBeRestored()
+ {
+ assert false;
+ }
+
+ /**
+ * The Web Bean manager ensures that a long-running conversation may be
+ * associated with at most one request at a time, by blocking or rejecting
+ * concurrent requests.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.4")
+ public void testConcurrentRequestsToLongRunningConversationsAreHandled()
+ {
+ assert false;
+ }
+}
\ No newline at end of file
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/City.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/City.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/City.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,8 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+class City
+{
+ public void ping() {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityBinding.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityBinding.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityBinding.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,20 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import static java.lang.annotation.ElementType.METHOD;
+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.webbeans.Dependent;
+import javax.webbeans.InterceptorBindingType;
+
+@InterceptorBindingType
+@Dependent
+@Target({TYPE, METHOD})
+@Retention(RUNTIME)
+@interface CityBinding
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityInterface.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityInterface.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityInterface.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,6 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+interface CityInterface
+{
+ public void foo();
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Dependent;
+import javax.webbeans.Produces;
+
+class CityProducer
+{
+ @Produces @Dependent public Violation reference = new Violation();
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer2.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer2.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer2.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Dependent;
+import javax.webbeans.Produces;
+
+class CityProducer2
+{
+ @Produces
+ @Dependent
+ public Violation create()
+ {
+ return new Violation();
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer3.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer3.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/CityProducer3.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,17 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Current;
+import javax.webbeans.Dependent;
+import javax.webbeans.Produces;
+
+
+class CityProducer3
+{
+ @Produces
+ @Dependent
+ public Violation create(@Current Violation reference)
+ {
+ return new Violation();
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Espoo_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Espoo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,18 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Espoo_Broken
+{
+ @Current
+ Violation reference;
+
+ @Remove
+ public void bye() {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Forssa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Forssa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Forssa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,19 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.Initializer;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Forssa_Broken implements Serializable
+{
+ public Forssa_Broken() {
+ }
+
+ @Initializer
+ public Forssa_Broken(@Current Violation reference) {
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hamina_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hamina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Hamina_Broken
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Helsinki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Helsinki.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Helsinki.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,11 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Stateful;
+import javax.webbeans.Dependent;
+
+@Dependent
+@Stateful
+class Helsinki
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hyvinkaa.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hyvinkaa.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Hyvinkaa.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,15 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SuppressWarnings("serial")
+@SessionScoped
+class Hyvinkaa implements Serializable
+{
+ @SuppressWarnings("unused")
+ @Current
+ private transient Violation reference;
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jamsa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jamsa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jamsa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.Produces;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Jamsa_Broken extends City implements Serializable
+{
+ public Jamsa_Broken()
+ {
+ }
+
+ @Produces
+ @SessionScoped
+ public Violation create(@Current Violation violation)
+ {
+ return violation;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Joensuu.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Joensuu.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Joensuu.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SuppressWarnings("serial")
+@SessionScoped
+class Joensuu implements Serializable
+{
+ @SuppressWarnings("unused")
+ @Current
+ private transient Violation reference;
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jyvaskyla.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jyvaskyla.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Jyvaskyla.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,12 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.SessionScoped;
+
+@SuppressWarnings("serial")
+@SessionScoped
+class Jyvaskyla implements Serializable
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kaarina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kaarina_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kaarina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,20 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Kaarina_Broken
+{
+ @CityBinding
+ public void foo()
+ {
+ }
+
+ @Remove
+ public void bye()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kotka_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kotka_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kotka_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Kotka_Broken implements Serializable
+{
+ @CityBinding
+ public void foo() {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kuopio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kuopio_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Kuopio_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,20 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.Initializer;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Kuopio_Broken extends City implements Serializable
+{
+ public Kuopio_Broken() {
+
+ }
+
+ @Initializer
+ public void init(@Current Violation reference) {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Loviisa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Loviisa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Loviisa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,19 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.Initializer;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Loviisa_Broken extends City implements Serializable
+{
+ public Loviisa_Broken() {
+ }
+
+ @Initializer
+ public Loviisa_Broken(@Current Violation reference) {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Maarianhamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Maarianhamina_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Maarianhamina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,18 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Maarianhamina_Broken
+{
+ @Current
+ private Violation reference;
+
+ @Remove
+ public void bye() {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Mikkeli_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Mikkeli_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Mikkeli_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,21 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.Initializer;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Mikkeli_Broken extends City implements Serializable
+{
+ public Mikkeli_Broken()
+ {
+ }
+
+ @Initializer
+ public Mikkeli_Broken(@Current Violation reference)
+ {
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Nokia_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Nokia_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Nokia_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,13 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Nokia_Broken extends City implements Serializable
+{
+ @Current
+ private Violation reference;
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/PassivatingContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,479 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.IOException;
+import java.util.Set;
+
+import javax.webbeans.DefinitionException;
+import javax.webbeans.IllegalProductException;
+import javax.webbeans.UnserializableDependencyException;
+import javax.webbeans.manager.Bean;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+/**
+ *
+ * @author Nicklas Karlsson
+ *
+ */
+@SpecVersion("20081206")
+public class PassivatingContextTest extends AbstractTest
+{
+
+ /**
+ * EJB local objects are serializable. Therefore, an enterprise Web Bean may
+ * declare any passivating scope.
+ */
+ @Test(groups = { "contexts", "passivation", "enterpriseBean", "integration" })
+ @SpecAssertion(section = "9.5")
+ public void testEJBWebBeanCanDeclarePassivatingScope()
+ {
+ deployBeans(Turku.class);
+ }
+
+ /**
+ * Simple Web Beans are not required to be serializable. If a simple Web Bean
+ * declares a passivating scope, and the implementation class is not
+ * serializable, a DefinitionException is thrown by the Web Bean manager at
+ * initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = DefinitionException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
+ {
+ deployBeans(Hamina_Broken.class);
+ }
+
+ /**
+ * Simple Web Beans are not required to be serializable. If a simple Web Bean
+ * declares a passivating scope, and the implementation class is not
+ * serializable, a DefinitionException is thrown by the Web Bean manager at
+ * initialization time.
+ */
+ @Test(groups = {"contexts", "passivation" })
+ @SpecAssertion(section = "9.5")
+ public void testSimpleWebBeanWithSerializableImplementationClassOK()
+ {
+ createSimpleBean(Jyvaskyla.class);
+ }
+
+ /**
+ * the Web Bean declares a passivating scope type, and context passivation
+ * occurs, or
+ *
+ * @throws IOException
+ * @throws ClassNotFoundException
+ */
+ @Test(groups = { "contexts", "passivation" , "stub" })
+ @SpecAssertion(section = "9.5")
+ public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
+ {
+ assert false;
+ }
+
+ @SuppressWarnings("unchecked")
+ private <T> boolean testSerialize(Bean<T> bean) throws IOException, ClassNotFoundException
+ {
+ manager.addBean(bean);
+ T instance = manager.getInstance(bean);
+ byte[] data = serialize(instance);
+ T resurrected = (T) deserialize(data);
+ return resurrected.toString().equals(instance.toString());
+ }
+
+ /**
+ * the Web Bean is an EJB stateful session bean, and it is passivated by the
+ * EJB container.
+ *
+ * @throws ClassNotFoundException
+ * @throws IOException
+ */
+ // TODO requires an EJB instance
+ @Test(groups = { "contexts", "passivation", "broken", "stub" })
+ @SpecAssertion(section = "9.5")
+ public void testStatefulEJBIsSerializedWhenPassivatedByEJBContainer() throws IOException, ClassNotFoundException
+ {
+ assert false;
+ }
+
+ /**
+ * On the other hand, dependent objects (including interceptors and
+ * decorators with scope @Dependent) of a stateful session bean or of a Web
+ * Bean with a passivating scope must be serialized and deserialized along
+ * with their owner
+ */
+ @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
+ {
+ deployBeans(Kaarina_Broken.class);
+ }
+
+ /**
+ * On the other hand, dependent objects (including interceptors and
+ * decorators with scope @Dependent) of a stateful session bean or of a Web
+ * Bean with a passivating scope must be serialized and deserialized along
+ * with their owner
+ */
+ @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
+ {
+ deployBeans(Porvoo_Broken.class);
+ }
+
+ /**
+ * On the other hand, dependent objects (including interceptors and
+ * decorators with scope @Dependent) of a stateful session bean or of a Web
+ * Bean with a passivating scope must be serialized and deserialized along
+ * with their owner
+ */
+ @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
+ {
+ deployBeans(Kotka_Broken.class);
+ }
+
+ /**
+ * On the other hand, dependent objects (including interceptors and
+ * decorators with scope @Dependent) of a stateful session bean or of a Web
+ * Bean with a passivating scope must be serialized and deserialized along
+ * with their owner
+ */
+ @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
+ {
+ deployBeans(Raisio_Broken.class);
+ }
+
+ /**
+ * EJB local objects are serializable. Therefore, any reference to an
+ * enterprise Web Bean of scope @Dependent is serializable.
+ *
+ * @throws ClassNotFoundException
+ * @throws IOException
+ */
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "9.5")
+ public void testDependentEJBsAreSerializable() throws IOException, ClassNotFoundException
+ {
+ deployBeans(Vaasa.class, Helsinki.class);
+ Set<Bean<Vaasa>> vaasaBeans = manager.resolveByType(Vaasa.class);
+ assert vaasaBeans.size() == 1;
+ assert testSerialize(vaasaBeans.iterator().next());
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
+ {
+ deployBeans(Violation.class, Espoo_Broken.class);
+ manager.getInstanceByType(Espoo_Broken.class);
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(Vantaa_Broken.class, Violation.class);
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
+ {
+ createSimpleBean(Joensuu.class);
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(Loviisa_Broken.class, Violation.class);
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(Forssa_Broken.class, Violation.class);
+ }
+
+ /**
+ * If a simple Web Bean of scope @Dependent and a non-serializable
+ * implementation class is injected into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * UnserializableDependencyException must be thrown by the Web Bean manager
+ * at initialization time.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
+ @SpecAssertion(section = "9.5")
+ public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
+ {
+ deployBeans(Peraseinajoki.class, Violation.class, Violation2.class);
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ *
+ * @throws NoSuchMethodException
+ * @throws SecurityException
+ */
+ @Test(groups = { "contexts", "passivation", "integration", "broken" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails() throws SecurityException, NoSuchMethodException
+ {
+ deployBeans(CityProducer2.class, Maarianhamina_Broken.class);
+ manager.getInstanceByType(Maarianhamina_Broken.class);
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer2.class, Nokia_Broken.class);
+ manager.getInstanceByType(Nokia_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" })
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
+ {
+ createSimpleBean(CityProducer2.class);
+ createSimpleBean(Hyvinkaa.class);
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer2.class, Loviisa_Broken.class);
+ manager.getInstanceByType(Loviisa_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer2.class, Kuopio_Broken.class);
+ manager.getInstanceByType(Kuopio_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" , "broken"}, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
+ {
+ // TODO Not quite sure what this test is doing
+ //deployBeans(CityProducer3.class, Jamsa_Broken.class);
+ //manager.getInstanceByType(Jamsa_Broken.class).ping();
+ assert false;
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ *
+ */
+ @Test(groups = { "contexts", "passivation", "stub"}, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails() throws Exception
+ {
+ // TODO This doesn't test injction in a SFSB, but into a Enterprise bean
+ //deployBeans(CityProducer.class, Pietarsaari_Broken.class);
+ //manager.getInstanceByType(Pietarsaari_Broken.class);
+ assert false;
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer.class, Uusikaupunki_Broken.class);
+ manager.getInstanceByType(Uusikaupunki_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation"})
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
+ {
+ deployBeans(CityProducer.class, Salo_Broken.class);
+ manager.getInstanceByType(Salo_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer.class, Loviisa_Broken.class);
+ manager.getInstanceByType(Loviisa_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
+ {
+ deployBeans(CityProducer.class, Mikkeli_Broken.class);
+ manager.getInstanceByType(Mikkeli_Broken.class).ping();
+ }
+
+ /**
+ * If a producer method or field of scope @Dependent returns a
+ * non-serializable object for injection into a stateful session bean, into a
+ * non-transient field, Web Bean constructor parameter or initializer method
+ * parameter of a Web Bean which declares a passivating scope type, or into a
+ * parameter of a producer method which declares a passivating scope type, an
+ * IllegalProductException is thrown by the Web Bean manager.
+ */
+ @Test(groups = { "contexts", "passivation", "broken" }, expectedExceptions = IllegalProductException.class)
+ @SpecAssertion(section = "9.5")
+ public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
+ {
+ // TODO Not quite sure what this test is doing
+ deployBeans(CityProducer.class, Jamsa_Broken.class);
+ manager.getInstanceByType(Jamsa_Broken.class).ping();
+ assert false;
+ }
+
+ /**
+ * The Web Bean manager must guarantee that JMS endpoint proxy objects are
+ * serializable.
+ */
+ @Test(groups = { "stub", "contexts", "passivation", "jms" })
+ @SpecAssertion(section = "9.5")
+ public void testJMSEndpointProxyIsSerializable()
+ {
+ assert false;
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Peraseinajoki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Peraseinajoki.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Peraseinajoki.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,16 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Current;
+import javax.webbeans.Produces;
+import javax.webbeans.SessionScoped;
+
+class Peraseinajoki extends City
+{
+
+ @Produces @SessionScoped
+ public Violation2 create(@Current Violation reference)
+ {
+ return new Violation2();
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Pietarsaari_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Pietarsaari_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Pietarsaari_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,22 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Pietarsaari_Broken extends City implements Serializable
+{
+ @Current
+ private Violation reference;
+
+ @Remove
+ public void bye() {
+
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Porvoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Porvoo_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Porvoo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,19 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Porvoo_Broken implements CityInterface
+{
+ public void foo()
+ {
+ }
+
+ @Remove
+ public void bye()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Raisio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Raisio_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Raisio_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,13 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Raisio_Broken implements CityInterface, Serializable
+{
+ public void foo()
+ {
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Salo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Salo_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Salo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Salo_Broken extends City implements Serializable
+{
+ @Current
+ private transient Violation reference;
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Turku.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Turku.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Turku.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,15 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.ejb.Remove;
+import javax.ejb.Stateful;
+import javax.webbeans.SessionScoped;
+
+@Stateful
+@SessionScoped
+class Turku
+{
+ @Remove
+ public void bye() {
+
+ }
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Uusikaupunki_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Uusikaupunki_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Uusikaupunki_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Uusikaupunki_Broken extends City implements Serializable
+{
+ @Current
+ private Violation reference;
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vaasa.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vaasa.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vaasa.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,14 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SuppressWarnings("serial")
+@SessionScoped
+class Vaasa implements Serializable
+{
+ @SuppressWarnings("unused")
+ @Current private Helsinki ejb;
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vantaa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vantaa_Broken.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Vantaa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,28 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import java.io.Serializable;
+
+import javax.webbeans.Current;
+import javax.webbeans.SessionScoped;
+
+@SessionScoped
+class Vantaa_Broken implements Serializable
+{
+ @Current
+ private Violation reference;
+
+ public Violation getReference()
+ {
+ return reference;
+ }
+
+ public void setReference(Violation reference)
+ {
+ this.reference = reference;
+ }
+
+ public String test() {
+ return reference.toString();
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Dependent;
+
+@Dependent
+class Violation
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation2.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation2.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/passivating/Violation2.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,9 @@
+package org.jboss.webbeans.tck.integration.context.passivating;
+
+import javax.webbeans.Dependent;
+
+@Dependent
+class Violation2
+{
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/request/RequestContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,124 @@
+package org.jboss.webbeans.tck.integration.context.request;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+@SpecVersion("20081206")
+public class RequestContextTest extends AbstractTest
+{
+
+ /**
+ * The request scope is active during the service() method of any Servlet in
+ * the web application.
+ */
+ @Test(groups = { "stub", "contexts", "servlet" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeActiveDuringServiceMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The request context is destroyed at the end of the servlet request, after
+ * the Servlet service() method returns.
+ */
+ @Test(groups = { "stub", "contexts", "servlet" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeIsDestroyedAfterServiceMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The request scope is active during any Java EE web service invocation.
+ */
+ @Test(groups = { "stub", "contexts", "webservice" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeActiveDuringWebSericeInvocation()
+ {
+ assert false;
+ }
+
+ /**
+ * The request context is destroyed after the web service invocation
+ * completes
+ */
+ @Test(groups = { "stub", "contexts", "webservice" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeIsDestroyedAfterWebServiceInvocation()
+ {
+ assert false;
+ }
+
+ /**
+ * The request scope is active during any remote method invocation of any EJB
+ * bean, during any call to an EJB timeout method and during message delivery
+ * to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeActiveDuringRemoteMethodInvocationOfEjb()
+ {
+ assert false;
+ }
+
+ /**
+ * The request scope is active during any remote method invocation of any EJB
+ * bean, during any call to an EJB timeout method and during message delivery
+ * to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The request scope is active during any remote method invocation of any EJB
+ * bean, during any call to an EJB timeout method and during message delivery
+ * to any EJB message driven bean.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeActiveDuringEjbMessageDelivery()
+ {
+ assert false;
+ }
+
+ /**
+ * The request context is destroyed after the remote method invocation,
+ * timeout or message delivery completes.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeDestroyedAfterRemoteMethodInvocationOfEjb()
+ {
+ assert false;
+ }
+
+ /**
+ * The request context is destroyed after the remote method invocation,
+ * timeout or message delivery completes.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The request context is destroyed after the remote method invocation,
+ * timeout or message delivery completes.
+ */
+ @Test(groups = { "stub", "contexts", "ejb3" })
+ @SpecAssertion(section = "9.6.1")
+ public void testRequestScopeDestroyedAfterEjbMessageDelivery()
+ {
+ assert false;
+ }
+
+}
Added: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java (rev 0)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/integration/context/session/SessionContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -0,0 +1,45 @@
+package org.jboss.webbeans.tck.integration.context.session;
+
+import org.jboss.webbeans.tck.AbstractTest;
+import org.jboss.webbeans.tck.impl.SpecAssertion;
+import org.jboss.webbeans.tck.impl.SpecVersion;
+import org.testng.annotations.Test;
+
+@SpecVersion("2001206")
+public class SessionContextTest extends AbstractTest
+{
+
+ /**
+ * The session scope is active during the service() method of any servlet in
+ * the web application
+ */
+ @Test(groups = { "stub", "contexts", "servlet" })
+ @SpecAssertion(section = "9.6.2")
+ public void testSessionScopeActiveDuringServiceMethod()
+ {
+ assert false;
+ }
+
+ /**
+ * The session context is shared between all servlet requests that occur in
+ * the same HTTP servlet session
+ */
+ @Test(groups = { "stub", "contexts", "servlet" })
+ @SpecAssertion(section = "9.6.2")
+ public void testSessionContextSharedBetweenServletRequestsInSameHttpSession()
+ {
+ assert false;
+ }
+
+ /**
+ * The session context is destroyed when the HTTPSession is invalidated or
+ * times out.
+ */
+ @Test(groups = { "stub", "contexts" })
+ @SpecAssertion(section = "9.6.2")
+ public void testSessionContextDestroyedWhenHttpSessionInvalidatedOrTimesOut()
+ {
+ assert false;
+ }
+
+}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/application/ApplicationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/application/ApplicationContextTest.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/application/ApplicationContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,92 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.application;
-
-import org.jboss.webbeans.tck.AbstractTest;
-import org.jboss.webbeans.tck.impl.SpecAssertion;
-import org.jboss.webbeans.tck.impl.SpecVersion;
-import org.testng.annotations.Test;
-
-@SpecVersion("20081206")
-public class ApplicationContextTest extends AbstractTest
-{
-
- /**
- * The application scope is active during the service() method of any servlet
- * in the web application.
- */
- @Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeActiveDuringServiceMethod()
- {
- assert false;
- }
-
- /**
- * The application scope is active during any Java EE web service invocation.
- */
- @Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeActiveDuringWebSericeInvocation()
- {
- assert false;
- }
-
- /**
- * The application scope is also active during any remote method invocation
- * of any EJB bean, during any call to an EJB timeout method and during
- * message delivery to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeActiveDuringRemoteMethodInvocationOfEjb()
- {
- assert false;
- }
-
- /**
- * The application scope is also active during any remote method invocation
- * of any EJB bean, during any call to an EJB timeout method and during
- * message delivery to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeActiveDuringCallToEjbTimeoutMethod()
- {
- assert false;
- }
-
- /**
- * The application scope is also active during any remote method invocation
- * of any EJB bean, during any call to an EJB timeout method and during
- * message delivery to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeActiveDuringEjbMessageDelivery()
- {
- assert false;
- }
-
- /**
- * The application context is shared between all servlet requests, web
- * service invocations, EJB remote method invocations, EJB timeouts and
- * message deliveries to message driven beans that execute within the same
- * application
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationContextSharedBetweenInvokationsInApplication()
- {
- assert false;
- }
-
- /**
- * The application context is destroyed when the application is undeployed.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.3")
- public void testApplicationScopeDestroyedWhenApplicationIsUndeployed()
- {
- assert false;
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/conversation/ConversationContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/conversation/ConversationContextTest.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/conversation/ConversationContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,231 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.conversation;
-
-import org.jboss.webbeans.tck.AbstractTest;
-import org.jboss.webbeans.tck.impl.SpecAssertion;
-import org.jboss.webbeans.tck.impl.SpecVersion;
-import org.testng.annotations.Test;
-
-/**
- *
- * @author Nicklas Karlsson
- *
- */
-@SpecVersion("20081206")
-public class ConversationContextTest extends AbstractTest
-{
- /**
- * For a JSF faces request, the context is active from the beginning of the
- * apply request values phase, until the response is complete.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testContextActiveFromBeginningOfApplyRequestValuesPhasetoResponseCompleteForJsfRequest()
- {
- assert false;
- }
-
- /**
- * For a JSF non-faces request, the context is active during the render
- * response phase
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testContextActiveDuringRenderResponsePhaseForNonFacesJsfRequest()
- {
- assert false;
- }
-
- /**
- * Any JSF request has exactly one associated conversation
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testJsfRequestHasExactlyOneAssociatedConversation()
- {
- assert false;
- }
-
- /**
- * The conversation associated with a JSF request is determined at the end of
- * the restore view phase and does not change during the request
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testAssociatedConversationOfJsfRequestIsDeterminedAtEndOfRestoreViewPhase()
- {
- assert false;
- }
-
- /**
- * The conversation associated with a JSF request is determined at the end of
- * the restore view phase and does not change during the request
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testAssociatedConversationOfJsfRequestDoesNotChangeDuringRequest()
- {
- assert false;
- }
-
- /**
- * By default, a conversation is transient
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testDefaultConversationIsTransient()
- {
- assert false;
- }
-
- /**
- * All long-running conversations have a string-valued unique identifier
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testConversationsHaveUniqueStringIdentifiers()
- {
- assert false;
- }
-
- /**
- * If the conversation associated with the current JSF request is in the
- * transient state at the end of a JSF request, it is destroyed, and the
- * conversation context is also destroyed.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testTransientConversationIsDestroyedAtEndOfJsfRequest()
- {
- assert false;
- }
-
- /**
- * If the conversation associated with the current JSF request is in the
- * transient state at the end of a JSF request, it is destroyed, and the
- * conversation context is also destroyed.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testTransientConversationContextIsDestroyedAtEndOfJsfRequest()
- {
- assert false;
- }
-
- /**
- * If the conversation associated with the current JSF request is in the
- * long-running state at the end of a JSF request, it is not destroyed
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testLongRunningConversationNotDestroyedAtEndOfJsfRequest()
- {
- assert false;
- }
-
- /**
- * The long-running conversation context associated with a request that
- * renders a JSF view is automatically propagated to any faces request (JSF
- * form submission) that originates from that rendered page.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testLongRunningConversationOfJsfRenderingRequestIsPropagatedToRequestFromRenderedPage()
- {
- assert false;
- }
-
- /**
- * The long-running conversation context associated with a request that
- * results in a JSF redirect (via a navigation rule) is automatically
- * propagated to the resulting non-faces request, and to any other subsequent
- * request to the same URL. This is accomplished via use of a GET request
- * parameter named cid containing the unique identifier of the conversation.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testLongRunningConversationOfJsfRedirectIsPropagatedToNonFacesRequest()
- {
- assert false;
- }
-
- /**
- * The long-running conversation associated with a request may be propagated
- * to any non-faces request via use of a GET request parameter named cid
- * containing the unique identifier of the conversation. In this case, the
- * application must manage this request parameter
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testLongRunningConversationManuallyPropagatedToNonFacesRequest()
- {
- assert false;
- }
-
- /**
- * When no conversation is propagated to a JSF request, the request is
- * associated with a new transient conversation.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testNewTransientRequestIsCreatedWhenNoConversationIsPropagated()
- {
- assert false;
- }
-
- /**
- * All long-running conversations are scoped to a particular HTTP servlet
- * session and may not cross session boundaries
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testLongRunningConversationsMayNotCrossHttpSessions()
- {
- assert false;
- }
-
- /**
- * When the HTTP servlet session is invalidated, all long-running
- * conversation contexts created during the current session are destroyed
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testAllLongRunningConversationContextsOfInvalidatedHttpSessionAreDestroyed()
- {
- assert false;
- }
-
- /**
- * The Web Bean manager is permitted to arbitrarily destroy any long-running
- * conversation that is associated with no current JSF request, in order to
- * conserve resources
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testManagerCanDestroyOrphanedLongRunningConversations()
- {
- assert false;
- }
-
- /**
- * If the propagated conversation cannot be restored, the request is
- * associated with a new transient conversation
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testNewTransientConversationIsCreatedWhenConversationCannotBeRestored()
- {
- assert false;
- }
-
- /**
- * The Web Bean manager ensures that a long-running conversation may be
- * associated with at most one request at a time, by blocking or rejecting
- * concurrent requests.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.4")
- public void testConcurrentRequestsToLongRunningConversationsAreHandled()
- {
- assert false;
- }
-}
\ No newline at end of file
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/City.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/City.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/City.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,8 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-class City
-{
- public void ping() {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityBinding.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityBinding.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityBinding.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,20 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import static java.lang.annotation.ElementType.METHOD;
-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.webbeans.Dependent;
-import javax.webbeans.InterceptorBindingType;
-
-@InterceptorBindingType
-@Dependent
-@Target({TYPE, METHOD})
-@Retention(RUNTIME)
-@interface CityBinding
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityInterface.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityInterface.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityInterface.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,6 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-interface CityInterface
-{
- public void foo();
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,9 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Dependent;
-import javax.webbeans.Produces;
-
-class CityProducer
-{
- @Produces @Dependent public Violation reference = new Violation();
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer2.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer2.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer2.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Dependent;
-import javax.webbeans.Produces;
-
-class CityProducer2
-{
- @Produces
- @Dependent
- public Violation create()
- {
- return new Violation();
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer3.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer3.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/CityProducer3.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,17 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Current;
-import javax.webbeans.Dependent;
-import javax.webbeans.Produces;
-
-
-class CityProducer3
-{
- @Produces
- @Dependent
- public Violation create(@Current Violation reference)
- {
- return new Violation();
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Espoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Espoo_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Espoo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,18 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Espoo_Broken
-{
- @Current
- Violation reference;
-
- @Remove
- public void bye() {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Forssa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Forssa_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Forssa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,19 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.Initializer;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Forssa_Broken implements Serializable
-{
- public Forssa_Broken() {
- }
-
- @Initializer
- public Forssa_Broken(@Current Violation reference) {
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hamina_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hamina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,9 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Hamina_Broken
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Helsinki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Helsinki.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Helsinki.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,11 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Stateful;
-import javax.webbeans.Dependent;
-
-@Dependent
-@Stateful
-class Helsinki
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hyvinkaa.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hyvinkaa.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Hyvinkaa.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,15 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SuppressWarnings("serial")
-@SessionScoped
-class Hyvinkaa implements Serializable
-{
- @SuppressWarnings("unused")
- @Current
- private transient Violation reference;
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jamsa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jamsa_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jamsa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,22 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.Produces;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Jamsa_Broken extends City implements Serializable
-{
- public Jamsa_Broken()
- {
- }
-
- @Produces
- @SessionScoped
- public Violation create(@Current Violation violation)
- {
- return violation;
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Joensuu.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Joensuu.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Joensuu.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,16 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SuppressWarnings("serial")
-@SessionScoped
-class Joensuu implements Serializable
-{
- @SuppressWarnings("unused")
- @Current
- private transient Violation reference;
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jyvaskyla.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jyvaskyla.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Jyvaskyla.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,12 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.SessionScoped;
-
-@SuppressWarnings("serial")
-@SessionScoped
-class Jyvaskyla implements Serializable
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kaarina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kaarina_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kaarina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,20 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Kaarina_Broken
-{
- @CityBinding
- public void foo()
- {
- }
-
- @Remove
- public void bye()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kotka_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kotka_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kotka_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Kotka_Broken implements Serializable
-{
- @CityBinding
- public void foo() {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kuopio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kuopio_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Kuopio_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,20 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.Initializer;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Kuopio_Broken extends City implements Serializable
-{
- public Kuopio_Broken() {
-
- }
-
- @Initializer
- public void init(@Current Violation reference) {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Loviisa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Loviisa_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Loviisa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,19 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.Initializer;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Loviisa_Broken extends City implements Serializable
-{
- public Loviisa_Broken() {
- }
-
- @Initializer
- public Loviisa_Broken(@Current Violation reference) {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Maarianhamina_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Maarianhamina_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Maarianhamina_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,18 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Maarianhamina_Broken
-{
- @Current
- private Violation reference;
-
- @Remove
- public void bye() {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Mikkeli_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Mikkeli_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Mikkeli_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,21 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.Initializer;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Mikkeli_Broken extends City implements Serializable
-{
- public Mikkeli_Broken()
- {
- }
-
- @Initializer
- public Mikkeli_Broken(@Current Violation reference)
- {
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Nokia_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Nokia_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Nokia_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,13 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Nokia_Broken extends City implements Serializable
-{
- @Current
- private Violation reference;
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/PassivatingContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,479 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.IOException;
-import java.util.Set;
-
-import javax.webbeans.DefinitionException;
-import javax.webbeans.IllegalProductException;
-import javax.webbeans.UnserializableDependencyException;
-import javax.webbeans.manager.Bean;
-
-import org.jboss.webbeans.tck.AbstractTest;
-import org.jboss.webbeans.tck.impl.SpecAssertion;
-import org.jboss.webbeans.tck.impl.SpecVersion;
-import org.testng.annotations.Test;
-
-/**
- *
- * @author Nicklas Karlsson
- *
- */
-@SpecVersion("20081206")
-public class PassivatingContextTest extends AbstractTest
-{
-
- /**
- * EJB local objects are serializable. Therefore, an enterprise Web Bean may
- * declare any passivating scope.
- */
- @Test(groups = { "contexts", "passivation", "enterpriseBean", "integration" })
- @SpecAssertion(section = "9.5")
- public void testEJBWebBeanCanDeclarePassivatingScope()
- {
- deployBeans(Turku.class);
- }
-
- /**
- * Simple Web Beans are not required to be serializable. If a simple Web Bean
- * declares a passivating scope, and the implementation class is not
- * serializable, a DefinitionException is thrown by the Web Bean manager at
- * initialization time.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = DefinitionException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleWebBeanWithNonSerializableImplementationClassFails()
- {
- deployBeans(Hamina_Broken.class);
- }
-
- /**
- * Simple Web Beans are not required to be serializable. If a simple Web Bean
- * declares a passivating scope, and the implementation class is not
- * serializable, a DefinitionException is thrown by the Web Bean manager at
- * initialization time.
- */
- @Test(groups = {"contexts", "passivation" })
- @SpecAssertion(section = "9.5")
- public void testSimpleWebBeanWithSerializableImplementationClassOK()
- {
- createSimpleBean(Jyvaskyla.class);
- }
-
- /**
- * the Web Bean declares a passivating scope type, and context passivation
- * occurs, or
- *
- * @throws IOException
- * @throws ClassNotFoundException
- */
- @Test(groups = { "contexts", "passivation" , "stub" })
- @SpecAssertion(section = "9.5")
- public void testSimpleWebBeanDeclaringPassivatingScopeIsSerializedWhenContextIsPassivated() throws IOException, ClassNotFoundException
- {
- assert false;
- }
-
- @SuppressWarnings("unchecked")
- private <T> boolean testSerialize(Bean<T> bean) throws IOException, ClassNotFoundException
- {
- manager.addBean(bean);
- T instance = manager.getInstance(bean);
- byte[] data = serialize(instance);
- T resurrected = (T) deserialize(data);
- return resurrected.toString().equals(instance.toString());
- }
-
- /**
- * the Web Bean is an EJB stateful session bean, and it is passivated by the
- * EJB container.
- *
- * @throws ClassNotFoundException
- * @throws IOException
- */
- // TODO requires an EJB instance
- @Test(groups = { "contexts", "passivation", "broken", "stub" })
- @SpecAssertion(section = "9.5")
- public void testStatefulEJBIsSerializedWhenPassivatedByEJBContainer() throws IOException, ClassNotFoundException
- {
- assert false;
- }
-
- /**
- * On the other hand, dependent objects (including interceptors and
- * decorators with scope @Dependent) of a stateful session bean or of a Web
- * Bean with a passivating scope must be serialized and deserialized along
- * with their owner
- */
- @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentInterceptorsOfStatefulEnterpriseBeanMustBeSerializable()
- {
- deployBeans(Kaarina_Broken.class);
- }
-
- /**
- * On the other hand, dependent objects (including interceptors and
- * decorators with scope @Dependent) of a stateful session bean or of a Web
- * Bean with a passivating scope must be serialized and deserialized along
- * with their owner
- */
- @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentDecoratorsOfStatefulEnterpriseBeanMustBeSerializable()
- {
- deployBeans(Porvoo_Broken.class);
- }
-
- /**
- * On the other hand, dependent objects (including interceptors and
- * decorators with scope @Dependent) of a stateful session bean or of a Web
- * Bean with a passivating scope must be serialized and deserialized along
- * with their owner
- */
- @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentInterceptorsOfWebBeanWithPassivatingScopeMustBeSerializable()
- {
- deployBeans(Kotka_Broken.class);
- }
-
- /**
- * On the other hand, dependent objects (including interceptors and
- * decorators with scope @Dependent) of a stateful session bean or of a Web
- * Bean with a passivating scope must be serialized and deserialized along
- * with their owner
- */
- @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentDecoratorsOfWebBeansWithPassivatingScopeMustBeSerializable()
- {
- deployBeans(Raisio_Broken.class);
- }
-
- /**
- * EJB local objects are serializable. Therefore, any reference to an
- * enterprise Web Bean of scope @Dependent is serializable.
- *
- * @throws ClassNotFoundException
- * @throws IOException
- */
- @Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "9.5")
- public void testDependentEJBsAreSerializable() throws IOException, ClassNotFoundException
- {
- deployBeans(Vaasa.class, Helsinki.class);
- Set<Bean<Vaasa>> vaasaBeans = manager.resolveByType(Vaasa.class);
- assert vaasaBeans.size() == 1;
- assert testSerialize(vaasaBeans.iterator().next());
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "stub", "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoStatefulSessionBeanFails()
- {
- deployBeans(Violation.class, Espoo_Broken.class);
- manager.getInstanceByType(Espoo_Broken.class);
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Vantaa_Broken.class, Violation.class);
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoTransientFieldOK()
- {
- createSimpleBean(Joensuu.class);
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Loviisa_Broken.class, Violation.class);
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(Forssa_Broken.class, Violation.class);
- }
-
- /**
- * If a simple Web Bean of scope @Dependent and a non-serializable
- * implementation class is injected into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * UnserializableDependencyException must be thrown by the Web Bean manager
- * at initialization time.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = UnserializableDependencyException.class)
- @SpecAssertion(section = "9.5")
- public void testSimpleDependentWebBeanWithNonSerializableImplementationInjectedIntoProducerMethodParameterWithPassivatingScopeFails()
- {
- deployBeans(Peraseinajoki.class, Violation.class, Violation2.class);
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- *
- * @throws NoSuchMethodException
- * @throws SecurityException
- */
- @Test(groups = { "contexts", "passivation", "integration", "broken" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails() throws SecurityException, NoSuchMethodException
- {
- deployBeans(CityProducer2.class, Maarianhamina_Broken.class);
- manager.getInstanceByType(Maarianhamina_Broken.class);
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer2.class, Nokia_Broken.class);
- manager.getInstanceByType(Nokia_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" })
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
- {
- createSimpleBean(CityProducer2.class);
- createSimpleBean(Hyvinkaa.class);
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer2.class, Loviisa_Broken.class);
- manager.getInstanceByType(Loviisa_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer2.class, Kuopio_Broken.class);
- manager.getInstanceByType(Kuopio_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" , "broken"}, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerMethodReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
- {
- // TODO Not quite sure what this test is doing
- //deployBeans(CityProducer3.class, Jamsa_Broken.class);
- //manager.getInstanceByType(Jamsa_Broken.class).ping();
- assert false;
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- *
- */
- @Test(groups = { "contexts", "passivation", "stub"}, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoStatefulSessionBeanFails() throws Exception
- {
- // TODO This doesn't test injction in a SFSB, but into a Enterprise bean
- //deployBeans(CityProducer.class, Pietarsaari_Broken.class);
- //manager.getInstanceByType(Pietarsaari_Broken.class);
- assert false;
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoNonTransientFieldOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer.class, Uusikaupunki_Broken.class);
- manager.getInstanceByType(Uusikaupunki_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation"})
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoTransientFieldOfWebBeanWithPassivatingScopeOK()
- {
- deployBeans(CityProducer.class, Salo_Broken.class);
- manager.getInstanceByType(Salo_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoConstructorParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer.class, Loviisa_Broken.class);
- manager.getInstanceByType(Loviisa_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoInitializerParameterOfWebBeanWithPassivatingScopeFails()
- {
- deployBeans(CityProducer.class, Mikkeli_Broken.class);
- manager.getInstanceByType(Mikkeli_Broken.class).ping();
- }
-
- /**
- * If a producer method or field of scope @Dependent returns a
- * non-serializable object for injection into a stateful session bean, into a
- * non-transient field, Web Bean constructor parameter or initializer method
- * parameter of a Web Bean which declares a passivating scope type, or into a
- * parameter of a producer method which declares a passivating scope type, an
- * IllegalProductException is thrown by the Web Bean manager.
- */
- @Test(groups = { "contexts", "passivation", "broken" }, expectedExceptions = IllegalProductException.class)
- @SpecAssertion(section = "9.5")
- public void testDependentScopedProducerFieldReturnsNonSerializableObjectForInjectionIntoProducerMethodParameterWithPassivatingScopeFails()
- {
- // TODO Not quite sure what this test is doing
- deployBeans(CityProducer.class, Jamsa_Broken.class);
- manager.getInstanceByType(Jamsa_Broken.class).ping();
- assert false;
- }
-
- /**
- * The Web Bean manager must guarantee that JMS endpoint proxy objects are
- * serializable.
- */
- @Test(groups = { "stub", "contexts", "passivation", "jms" })
- @SpecAssertion(section = "9.5")
- public void testJMSEndpointProxyIsSerializable()
- {
- assert false;
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Peraseinajoki.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Peraseinajoki.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Peraseinajoki.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,16 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Current;
-import javax.webbeans.Produces;
-import javax.webbeans.SessionScoped;
-
-class Peraseinajoki extends City
-{
-
- @Produces @SessionScoped
- public Violation2 create(@Current Violation reference)
- {
- return new Violation2();
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Pietarsaari_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Pietarsaari_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Pietarsaari_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,22 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Pietarsaari_Broken extends City implements Serializable
-{
- @Current
- private Violation reference;
-
- @Remove
- public void bye() {
-
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Porvoo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Porvoo_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Porvoo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,19 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Porvoo_Broken implements CityInterface
-{
- public void foo()
- {
- }
-
- @Remove
- public void bye()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Raisio_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Raisio_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Raisio_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,13 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Raisio_Broken implements CityInterface, Serializable
-{
- public void foo()
- {
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Salo_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Salo_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Salo_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Salo_Broken extends City implements Serializable
-{
- @Current
- private transient Violation reference;
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Turku.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Turku.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Turku.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,15 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.ejb.Remove;
-import javax.ejb.Stateful;
-import javax.webbeans.SessionScoped;
-
-@Stateful
-@SessionScoped
-class Turku
-{
- @Remove
- public void bye() {
-
- }
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Uusikaupunki_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Uusikaupunki_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Uusikaupunki_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Uusikaupunki_Broken extends City implements Serializable
-{
- @Current
- private Violation reference;
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vaasa.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vaasa.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vaasa.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,14 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SuppressWarnings("serial")
-@SessionScoped
-class Vaasa implements Serializable
-{
- @SuppressWarnings("unused")
- @Current private Helsinki ejb;
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vantaa_Broken.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vantaa_Broken.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Vantaa_Broken.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,28 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import java.io.Serializable;
-
-import javax.webbeans.Current;
-import javax.webbeans.SessionScoped;
-
-@SessionScoped
-class Vantaa_Broken implements Serializable
-{
- @Current
- private Violation reference;
-
- public Violation getReference()
- {
- return reference;
- }
-
- public void setReference(Violation reference)
- {
- this.reference = reference;
- }
-
- public String test() {
- return reference.toString();
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,9 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Dependent;
-
-@Dependent
-class Violation
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation2.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation2.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/passivating/Violation2.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,9 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.passivating;
-
-import javax.webbeans.Dependent;
-
-@Dependent
-class Violation2
-{
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/request/RequestContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/request/RequestContextTest.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/request/RequestContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,124 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.request;
-
-import org.jboss.webbeans.tck.AbstractTest;
-import org.jboss.webbeans.tck.impl.SpecAssertion;
-import org.jboss.webbeans.tck.impl.SpecVersion;
-import org.testng.annotations.Test;
-
-@SpecVersion("20081206")
-public class RequestContextTest extends AbstractTest
-{
-
- /**
- * The request scope is active during the service() method of any Servlet in
- * the web application.
- */
- @Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeActiveDuringServiceMethod()
- {
- assert false;
- }
-
- /**
- * The request context is destroyed at the end of the servlet request, after
- * the Servlet service() method returns.
- */
- @Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeIsDestroyedAfterServiceMethod()
- {
- assert false;
- }
-
- /**
- * The request scope is active during any Java EE web service invocation.
- */
- @Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeActiveDuringWebSericeInvocation()
- {
- assert false;
- }
-
- /**
- * The request context is destroyed after the web service invocation
- * completes
- */
- @Test(groups = { "stub", "contexts", "webservice" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeIsDestroyedAfterWebServiceInvocation()
- {
- assert false;
- }
-
- /**
- * The request scope is active during any remote method invocation of any EJB
- * bean, during any call to an EJB timeout method and during message delivery
- * to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeActiveDuringRemoteMethodInvocationOfEjb()
- {
- assert false;
- }
-
- /**
- * The request scope is active during any remote method invocation of any EJB
- * bean, during any call to an EJB timeout method and during message delivery
- * to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeActiveDuringCallToEjbTimeoutMethod()
- {
- assert false;
- }
-
- /**
- * The request scope is active during any remote method invocation of any EJB
- * bean, during any call to an EJB timeout method and during message delivery
- * to any EJB message driven bean.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeActiveDuringEjbMessageDelivery()
- {
- assert false;
- }
-
- /**
- * The request context is destroyed after the remote method invocation,
- * timeout or message delivery completes.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeDestroyedAfterRemoteMethodInvocationOfEjb()
- {
- assert false;
- }
-
- /**
- * The request context is destroyed after the remote method invocation,
- * timeout or message delivery completes.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeDestroyedAfterCallToEjbTimeoutMethod()
- {
- assert false;
- }
-
- /**
- * The request context is destroyed after the remote method invocation,
- * timeout or message delivery completes.
- */
- @Test(groups = { "stub", "contexts", "ejb3" })
- @SpecAssertion(section = "9.6.1")
- public void testRequestScopeDestroyedAfterEjbMessageDelivery()
- {
- assert false;
- }
-
-}
Deleted: tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/session/SessionContextTest.java
===================================================================
--- tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/session/SessionContextTest.java 2009-01-20 06:44:48 UTC (rev 1112)
+++ tck/trunk/impl/src/main/java/org/jboss/webbeans/tck/unit/context/session/SessionContextTest.java 2009-01-20 06:52:03 UTC (rev 1113)
@@ -1,45 +0,0 @@
-package org.jboss.webbeans.tck.unit.context.session;
-
-import org.jboss.webbeans.tck.AbstractTest;
-import org.jboss.webbeans.tck.impl.SpecAssertion;
-import org.jboss.webbeans.tck.impl.SpecVersion;
-import org.testng.annotations.Test;
-
-@SpecVersion("2001206")
-public class SessionContextTest extends AbstractTest
-{
-
- /**
- * The session scope is active during the service() method of any servlet in
- * the web application
- */
- @Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "9.6.2")
- public void testSessionScopeActiveDuringServiceMethod()
- {
- assert false;
- }
-
- /**
- * The session context is shared between all servlet requests that occur in
- * the same HTTP servlet session
- */
- @Test(groups = { "stub", "contexts", "servlet" })
- @SpecAssertion(section = "9.6.2")
- public void testSessionContextSharedBetweenServletRequestsInSameHttpSession()
- {
- assert false;
- }
-
- /**
- * The session context is destroyed when the HTTPSession is invalidated or
- * times out.
- */
- @Test(groups = { "stub", "contexts" })
- @SpecAssertion(section = "9.6.2")
- public void testSessionContextDestroyedWhenHttpSessionInvalidatedOrTimesOut()
- {
- assert false;
- }
-
-}
17 years, 2 months