[jboss-cvs] JBossAS SVN: r75967 - in projects/microcontainer/trunk/aop-mc-int/src: tests/org/jboss/test/microcontainer/support and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 17 13:46:15 EDT 2008


Author: kabir.khan at jboss.com
Date: 2008-07-17 13:46:15 -0400 (Thu, 17 Jul 2008)
New Revision: 75967

Removed:
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.properties
   projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.xml
   projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA.java
   projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA2.java
   projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.bak
Log:
[JBMICROCONT-314] Get rid of @InstanceAnnotation

Deleted: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.properties
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.properties	2008-07-17 17:21:22 UTC (rev 75966)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.properties	2008-07-17 17:46:15 UTC (rev 75967)
@@ -1,5 +0,0 @@
-test.Permission.1=java.util.PropertyPermission, *#*, read,write
-
-
-
-

Deleted: projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.xml
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.xml	2008-07-17 17:21:22 UTC (rev 75966)
+++ projects/microcontainer/trunk/aop-mc-int/src/resources/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.xml	2008-07-17 17:46:15 UTC (rev 75967)
@@ -1,44 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<deployment xmlns="urn:jboss:bean-deployer:2.0">
-
-  <bean name="Bean1" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="",exposedInterface=org.jboss.test.microcontainer.support.SimpleBean.class)</annotation>
-  </bean>
-
-  <bean name="Bean2" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <property name="property">
-      <annotation>@org.jboss.test.microcontainer.support.ContainsIA</annotation>
-      <value>123</value>
-    </property>
-  </bean>
-
-  <bean name="Bean3" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <annotation>@org.jboss.test.microcontainer.support.SomeNonIA</annotation>
-  </bean>
-
-  <bean name="Bean4" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <property name="property">
-      <annotation>@org.jboss.test.microcontainer.support.SomeNonIA</annotation>
-      <value>123</value>
-    </property>
-  </bean>
-
-  <bean name="Bean5" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <annotation>@org.jboss.test.microcontainer.support.ContainsIA</annotation>
-    <annotation>@org.jboss.test.microcontainer.support.SomeNonIA</annotation>
-  </bean>
-
-  <bean name="Bean6" class="org.jboss.test.microcontainer.support.SimpleBeanImpl">
-    <property name="property">
-      <annotation>@org.jboss.test.microcontainer.support.SomeNonIA</annotation>
-      <annotation>@org.jboss.test.microcontainer.support.ContainsIA</annotation>
-      <value>123</value>
-    </property>
-  </bean>
-
-  <bean name="Bean7" class="org.jboss.test.microcontainer.support.JustClassAnnotatedBean"/>
-  <bean name="Bean8" class="org.jboss.test.microcontainer.support.JustMethodAnnotatedBean"/>
-  <bean name="Bean9" class="org.jboss.test.microcontainer.support.AnnotatedBean"/>
-
-</deployment>

Deleted: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA.java	2008-07-17 17:21:22 UTC (rev 75966)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA.java	2008-07-17 17:46:15 UTC (rev 75967)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.test.microcontainer.support;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-import java.lang.annotation.ElementType;
-
-import org.jboss.metadata.spi.annotation.InstanceAnnotation;
-
-/**
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
- at Retention(RetentionPolicy.RUNTIME)
- at Target({ElementType.TYPE, ElementType.METHOD})
- at InstanceAnnotation(false)
-public @interface ContainsIA
-{
-}
\ No newline at end of file

Deleted: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA2.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA2.java	2008-07-17 17:21:22 UTC (rev 75966)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/support/ContainsIA2.java	2008-07-17 17:46:15 UTC (rev 75967)
@@ -1,39 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.test.microcontainer.support;
-
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-import java.lang.annotation.ElementType;
-
-import org.jboss.metadata.spi.annotation.InstanceAnnotation;
-
-/**
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
- at Retention(RetentionPolicy.RUNTIME)
- at Target({ElementType.TYPE, ElementType.METHOD})
- at InstanceAnnotation(false)
-public @interface ContainsIA2
-{
-}
\ No newline at end of file

Deleted: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.bak
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.bak	2008-07-17 17:21:22 UTC (rev 75966)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/test/HasInstanceAnnotationTestCase.bak	2008-07-17 17:46:15 UTC (rev 75967)
@@ -1,77 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.test.microcontainer.test;
-
-import junit.framework.Test;
-
-import org.jboss.test.AbstractTestDelegate;
-import org.jboss.test.aop.junit.AbstractTypeTest;
-import org.jboss.test.aop.junit.AbstractTypeTestDelegate;
-
-/**
- * Test instance annotations, do we require aop proxy for them.
- *
- * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
- */
-public class HasInstanceAnnotationTestCase extends AbstractTypeTest
-{
-   public HasInstanceAnnotationTestCase(String name)
-   {
-      super(name);
-   }
-
-   public static Test suite()
-   {
-      return suite(HasInstanceAnnotationTestCase.class);
-   }
-   
-   public static AbstractTestDelegate getDelegate(Class<?> clazz) throws Exception
-   {
-      //Don't use security for this test
-      AbstractTypeTestDelegate delegate = new AbstractTypeTestDelegate(clazz);
-      return delegate;
-   }
-
-   public void testInstanceAnnotation() throws Throwable
-   {
-      SecurityManager sm = suspendSecurity();
-      try
-      {
-         assertIsPojo("Bean1");
-         assertIsPojo("Bean2");
-   
-         assertIsAspectized("Bean3");
-         assertIsAspectized("Bean4");
-   
-         assertIsAspectized("Bean5");
-         assertIsAspectized("Bean6");
-   
-         assertIsPojo("Bean7");
-         assertIsPojo("Bean8");
-         assertIsPojo("Bean9");
-      }
-      finally
-      {
-         resumeSecurity(sm);
-      }
-   }
-}




More information about the jboss-cvs-commits mailing list