From 1a6f69583137f03d2a8052148a17eebe8e79e162 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 6 Apr 2006 11:45:02 +0000 Subject: test and fix for 135001 --- weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'weaver/testsrc/org') diff --git a/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java b/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java index 8a6f78e67..146a5ba2b 100644 --- a/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java +++ b/weaver/testsrc/org/aspectj/weaver/bcel/AsmDelegateTests.java @@ -57,8 +57,10 @@ public class AsmDelegateTests extends AbstractWorldTestCase { // --- testcode public void testWeDontGoBang() { + world.fallbackToLoadingBcelDelegatesForAspects = false; ResolvedType rt = world.resolve("SimpleAspect"); ReferenceTypeDelegate delegate = ((ReferenceType)rt).getDelegate(); + assertTrue("Should be an ASM delegate but is "+delegate.getClass(), delegate.getClass().toString().equals("class org.aspectj.weaver.asm.AsmDelegate")); } @@ -392,8 +394,10 @@ public class AsmDelegateTests extends AbstractWorldTestCase { * Load up the AspectFromHell and take it apart... */ public void testLoadingAttributesForTypes() { - BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");slowWorld.setFastDelegateSupport(false); + BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar"); + slowWorld.setFastDelegateSupport(false); BcelWorld fastWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar"); + fastWorld.fallbackToLoadingBcelDelegatesForAspects = false; ReferenceType bcelT = (ReferenceType)slowWorld.resolve("AspectFromHell"); ReferenceType asmT = (ReferenceType)fastWorld.resolve("AspectFromHell"); @@ -416,7 +420,8 @@ public class AsmDelegateTests extends AbstractWorldTestCase { boolean debug = false; BcelWorld slowWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar");slowWorld.setFastDelegateSupport(false); BcelWorld fastWorld = new BcelWorld(BcweaverTests.TESTDATA_PATH+"/forAsmDelegateTesting/stuff.jar"); - + fastWorld.fallbackToLoadingBcelDelegatesForAspects = false; + ReferenceType bcelT = (ReferenceType)slowWorld.resolve("AspectFromHell"); ReferenceType asmT = (ReferenceType)fastWorld.resolve("AspectFromHell"); -- cgit v1.2.3