[weld-commits] Weld SVN: r4221 - cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Thu Oct 22 08:02:04 EDT 2009


Author: jharting
Date: 2009-10-22 08:02:04 -0400 (Thu, 22 Oct 2009)
New Revision: 4221

Removed:
   cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventObserver.java
   cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventTest.java
Log:
Cleanup

Deleted: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventObserver.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventObserver.java	2009-10-22 11:53:26 UTC (rev 4220)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventObserver.java	2009-10-22 12:02:04 UTC (rev 4221)
@@ -1,30 +0,0 @@
-package org.jboss.jsr299.tck.tests.lookup.injection.enterprise;
-
-import javax.enterprise.event.Observes;
-import javax.enterprise.inject.spi.Extension;
-import javax.enterprise.inject.spi.ProcessInjectionTarget;
-
-public class ProcessInjectionTargetEventObserver implements Extension
-{
-
-   private static ProcessInjectionTarget<Farm> sessionBeanEvent = null; 
-   private static ProcessInjectionTarget<FarmInterceptor> ejbInterceptorEvent = null; 
-   
-   public void observeSessionBean(@Observes ProcessInjectionTarget<Farm> event) {
-      sessionBeanEvent = event;
-   }
-   
-   public void observeEJBInterceptor(@Observes ProcessInjectionTarget<FarmInterceptor> event) {
-      ejbInterceptorEvent = event;
-   }
-
-   public static ProcessInjectionTarget<Farm> getSessionBeanEvent()
-   {
-      return sessionBeanEvent;
-   }
-
-   public static ProcessInjectionTarget<FarmInterceptor> getEjbInterceptorEvent()
-   {
-      return ejbInterceptorEvent;
-   }
-}

Deleted: cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventTest.java
===================================================================
--- cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventTest.java	2009-10-22 11:53:26 UTC (rev 4220)
+++ cdi-tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/lookup/injection/enterprise/ProcessInjectionTargetEventTest.java	2009-10-22 12:02:04 UTC (rev 4221)
@@ -1,65 +0,0 @@
-/*
- * 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.jsr299.tck.tests.lookup.injection.enterprise;
-
-import javax.enterprise.inject.spi.ProcessInjectionTarget;
-
-import org.jboss.jsr299.tck.AbstractJSR299Test;
-import org.jboss.test.audit.annotations.SpecAssertion;
-import org.jboss.test.audit.annotations.SpecAssertions;
-import org.jboss.test.audit.annotations.SpecVersion;
-import org.jboss.testharness.impl.packaging.Artifact;
-import org.jboss.testharness.impl.packaging.IntegrationTest;
-import org.jboss.testharness.impl.packaging.Resource;
-import org.testng.annotations.Test;
-
-/**
- * This test verifies that ProcessInjectionTarget event is fired for a session bean and EJB interceptor.
- * @author Jozef Hartinger
- *
- */
-
- at Artifact
- at Resource(source = "javax.enterprise.inject.spi.Extension", destination = "WEB-INF/classes/META-INF/services/javax.enterprise.inject.spi.Extension")
- at IntegrationTest
- at SpecVersion(spec="cdi", version="20091018")
-public class ProcessInjectionTargetEventTest extends AbstractJSR299Test
-{
-   @Test(groups = "ri-broken")
-   @SpecAssertions({
-      @SpecAssertion(section = "11.5.6", id = "aab"),
-      @SpecAssertion(section = "11.5.6", id = "abb")})
-   public void testEventFiredForSessionBean()
-   {
-      ProcessInjectionTarget<Farm> event = ProcessInjectionTargetEventObserver.getSessionBeanEvent();
-      assert event != null;
-      assert event.getAnnotatedType().getBaseType().equals(Farm.class);
-      assert event.getAnnotatedType().getFields().size() == 2;
-   }
-
-   @Test
-   @SpecAssertions({
-      @SpecAssertion(section = "11.5.6", id = "aaf"),
-      @SpecAssertion(section = "11.5.6", id = "abf")})
-   public void testEventFiredForTagHandler()
-   {
-      ProcessInjectionTarget<FarmInterceptor> event = ProcessInjectionTargetEventObserver.getEjbInterceptorEvent();
-      assert event != null;
-      assert event.getAnnotatedType().getBaseType().equals(FarmInterceptor.class);
-      assert event.getAnnotatedType().getFields().size() == 1;
-   }
-}



More information about the weld-commits mailing list