[jboss-cvs] JBossAS SVN: r67463 - projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/beans/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Nov 26 17:26:31 EST 2007
Author: kabir.khan at jboss.com
Date: 2007-11-26 17:26:31 -0500 (Mon, 26 Nov 2007)
New Revision: 67463
Modified:
projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/beans/test/DomainSimpleTest.java
Log:
Disable some commented out code pending the aop release
Modified: projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/beans/test/DomainSimpleTest.java
===================================================================
--- projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/beans/test/DomainSimpleTest.java 2007-11-26 22:22:57 UTC (rev 67462)
+++ projects/microcontainer/trunk/aop-mc-int/src/tests/org/jboss/test/microcontainer/beans/test/DomainSimpleTest.java 2007-11-26 22:26:31 UTC (rev 67463)
@@ -2,7 +2,7 @@
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
-* distribution for a full listing of individual contributors.
+* 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
@@ -18,7 +18,7 @@
* 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.beans.test;
import java.util.Collection;
@@ -33,7 +33,7 @@
/**
- *
+ *
* @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
* @version $Revision: 1.1 $
*/
@@ -56,7 +56,7 @@
assertEquals("This is only a test", TestAspectWithProperty.last.getSomeProperty());
assertTrue(TestInterceptor.invoked);
assertTrue(TestAspect.invoked);
-
+
AspectManager domain = getDomain("AOPDomain");
checkArtifacts(domain, true);
}
@@ -72,61 +72,56 @@
assertNull(TestAspectWithProperty.last);
assertFalse(TestInterceptor.invoked);
assertFalse(TestAspect.invoked);
-
+
AspectManager manager = getMainAspectManager();
checkArtifacts(manager, false);
}
-
+
private void checkArtifacts(AspectManager manager, boolean shouldBeThere)
{
Object o = manager.getTypedef("TypeDef");
checkShouldBeThere(o, shouldBeThere);
-
+
o = manager.getCFlowStack("CFlow");
checkShouldBeThere(o, shouldBeThere);
-
+
o = manager.getDynamicCFlow("DynamicCFlow");
checkShouldBeThere(o, shouldBeThere);
-
+
o = manager.getPointcut("Prepare");
checkShouldBeThere(o, shouldBeThere);
-
+
o = manager.getPointcut("NamedPointcut");
checkShouldBeThere(o, shouldBeThere);
-
+
o = manager.getInterfaceIntroduction("MixinBinding");
checkShouldBeThere(o, shouldBeThere);
-
+
List coll = manager.getAnnotationIntroductions();
checkShouldBeThere(coll, shouldBeThere);
-
+
coll = manager.getAnnotationOverrides();
checkShouldBeThere(coll, shouldBeThere);
-
+
Map map = manager.getPrecedenceDefs();
checkShouldBeThere(map, shouldBeThere);
-
- map = manager.getArrayReplacements();
- checkShouldBeThere(map, shouldBeThere);
-
- try
- {
- o = manager.getArrayBinding("TestArrayBinding");
- checkShouldBeThere(o, shouldBeThere);
- }
- catch (ClassCastException expected)
- {
- // TODO remove after AOP 2.0.0.CR1 which fixes the bug
- }
-
+
+ fail("enable following aop release");
+ //map = manager.getArrayReplacements();
+ //checkShouldBeThere(map, shouldBeThere);
+
+ fail("enable following aop release");
+ //o = manager.getArrayBinding("TestArrayBinding");
+ //checkShouldBeThere(o, shouldBeThere);
+
}
-
+
private void checkShouldBeThere(Object o, boolean shouldBeThere)
{
if (shouldBeThere) assertNotNull(o);
else assertNull(o);
}
-
+
private void checkShouldBeThere(Collection coll, boolean shouldBeThere)
{
if (shouldBeThere)
@@ -142,7 +137,7 @@
}
}
}
-
+
private void checkShouldBeThere(Map coll, boolean shouldBeThere)
{
if (shouldBeThere)
More information about the jboss-cvs-commits
mailing list