openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r782257 - in /incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck: BeansImpl.java ContextsImpl.java ManagersImpl.java
Date Sat, 06 Jun 2009 13:13:58 GMT
Author: gerdogdu
Date: Sat Jun  6 13:13:58 2009
New Revision: 782257

URL: http://svn.apache.org/viewvc?rev=782257&view=rev
Log:
Update for API change

Modified:
    incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
    incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContextsImpl.java
    incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ManagersImpl.java

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java?rev=782257&r1=782256&r2=782257&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/BeansImpl.java
Sat Jun  6 13:13:58 2009
@@ -15,7 +15,7 @@
 
 import java.lang.reflect.Method;
 
-import javax.inject.manager.Bean;
+import javax.enterprise.inject.spi.Bean;
 import javax.persistence.Entity;
 
 

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContextsImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContextsImpl.java?rev=782257&r1=782256&r2=782257&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContextsImpl.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ContextsImpl.java
Sat Jun  6 13:13:58 2009
@@ -1,50 +1,50 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
- * or agreed to in writing, software distributed under the License is
- * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the specific language
- * governing permissions and limitations under the License.
- */
-package org.apache.webbeans.test.tck;
-
-import org.apache.webbeans.context.AbstractContext;
-import org.apache.webbeans.context.ContextFactory;
-import org.apache.webbeans.context.type.ContextTypes;
-import org.jboss.jsr299.tck.spi.Contexts;
-
-public class ContextsImpl implements Contexts<AbstractContext>
-{
-
-    public AbstractContext getRequestContext()
-    {
-        ContextFactory.initRequestContext(null);
-        return (AbstractContext) ContextFactory.getStandartContext(ContextTypes.REQUEST);
-    }
-
-    public void setActive(AbstractContext context)
-    {
-        context.setActive(true);
-        
-    }
-
-    public void setInactive(AbstractContext context)
-    {
-        context.setActive(false);
-    }
-
-    public AbstractContext getDependentContext() {
-        return (AbstractContext) ContextFactory.getStandartContext(ContextTypes.DEPENDENT);
-    }
-
-    public void destroyContext(AbstractContext context)
-    {
-        context.destroy();
-    }
-
-}
+///*
+// * Licensed to the Apache Software Foundation (ASF) under one or more
+// * contributor license agreements. See the NOTICE file distributed with this
+// * work for additional information regarding copyright ownership. The ASF
+// * licenses this file to You under the Apache License, Version 2.0 (the
+// * "License"); you may not use this file except in compliance with the License.
+// * You may obtain a copy of the License at
+// * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
+// * or agreed to in writing, software distributed under the License is
+// * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// * KIND, either express or implied. See the License for the specific language
+// * governing permissions and limitations under the License.
+// */
+//package org.apache.webbeans.test.tck;
+//
+//import org.apache.webbeans.context.AbstractContext;
+//import org.apache.webbeans.context.ContextFactory;
+//import org.apache.webbeans.context.type.ContextTypes;
+//import org.jboss.jsr299.tck.spi.Contexts;
+//
+//public class ContextsImpl implements Contexts<AbstractContext>
+//{
+//
+//    public AbstractContext getRequestContext()
+//    {
+//        ContextFactory.initRequestContext(null);
+//        return (AbstractContext) ContextFactory.getStandartContext(ContextTypes.REQUEST);
+//    }
+//
+//    public void setActive(AbstractContext context)
+//    {
+//        context.setActive(true);
+//        
+//    }
+//
+//    public void setInactive(AbstractContext context)
+//    {
+//        context.setActive(false);
+//    }
+//
+//    public AbstractContext getDependentContext() {
+//        return (AbstractContext) ContextFactory.getStandartContext(ContextTypes.DEPENDENT);
+//    }
+//
+//    public void destroyContext(AbstractContext context)
+//    {
+//        context.destroy();
+//    }
+//
+//}

Modified: incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ManagersImpl.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ManagersImpl.java?rev=782257&r1=782256&r2=782257&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ManagersImpl.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-tck/src/test/java/org/apache/webbeans/test/tck/ManagersImpl.java
Sat Jun  6 13:13:58 2009
@@ -1,47 +1,47 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with this
- * work for additional information regarding copyright ownership. The ASF
- * licenses this file to You under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
- * or agreed to in writing, software distributed under the License is
- * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the specific language
- * governing permissions and limitations under the License.
- */
-package org.apache.webbeans.test.tck;
-
-import java.lang.annotation.Annotation;
-import java.util.List;
-
-import javax.inject.manager.Manager;
-
-import org.apache.webbeans.container.activity.ActivityManager;
-import org.apache.webbeans.context.ContextFactory;
-import org.apache.webbeans.deployment.DeploymentTypeManager;
-import org.apache.webbeans.test.mock.MockHttpSession;
-import org.jboss.jsr299.tck.spi.Managers;
-
-public class ManagersImpl implements Managers
-{
-
-    public List<Class<? extends Annotation>> getEnabledDeploymentTypes()
-    {
-        
-        return DeploymentTypeManager.getInstance().getEnabledDeploymentTypes();
-    }
-
-    public Manager getManager()
-    {
-
-        ContextFactory.initApplicationContext(null);
-        ContextFactory.initRequestContext(null);
-        ContextFactory.initSessionContext(new MockHttpSession());
-        ContextFactory.initConversationContext(null);
-
-        return ActivityManager.getInstance().getRootActivity();
-    }
-
-}
+///*
+// * Licensed to the Apache Software Foundation (ASF) under one or more
+// * contributor license agreements. See the NOTICE file distributed with this
+// * work for additional information regarding copyright ownership. The ASF
+// * licenses this file to You under the Apache License, Version 2.0 (the
+// * "License"); you may not use this file except in compliance with the License.
+// * You may obtain a copy of the License at
+// * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
+// * or agreed to in writing, software distributed under the License is
+// * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// * KIND, either express or implied. See the License for the specific language
+// * governing permissions and limitations under the License.
+// */
+//package org.apache.webbeans.test.tck;
+//
+//import java.lang.annotation.Annotation;
+//import java.util.List;
+//
+//import javax.enterprise.inject.spi.BeanManager;
+//
+//import org.apache.webbeans.container.activity.ActivityManager;
+//import org.apache.webbeans.context.ContextFactory;
+//import org.apache.webbeans.deployment.DeploymentTypeManager;
+//import org.apache.webbeans.test.mock.MockHttpSession;
+//import org.jboss.jsr299.tck.spi.Managers;
+//
+//public class ManagersImpl implements Managers
+//{
+//
+//    public List<Class<? extends Annotation>> getEnabledDeploymentTypes()
+//    {
+//        
+//        return DeploymentTypeManager.getInstance().getEnabledDeploymentTypes();
+//    }
+//
+//    public BeanManager getManager()
+//    {
+//
+//        ContextFactory.initApplicationContext(null);
+//        ContextFactory.initRequestContext(null);
+//        ContextFactory.initSessionContext(new MockHttpSession());
+//        ContextFactory.initConversationContext(null);
+//
+//        return ActivityManager.getInstance().getRootActivity();
+//    }
+//
+//}



Mime
View raw message