01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package test.withinstaticref;
08:
09: import junit.framework.TestCase;
10:
11: /**
12: * Test against an Eclipse compiled xxx.class that uses DUP_X1
13: *
14: * @see src/testdata/test.withinstaticref.TargetA
15: */
16: public class WithinStaticRefTest extends TestCase {
17: public void testWithinAspect() {
18: WithinAspect.s_count = 0;
19: TargetA.suite();
20: assertEquals(WithinAspect.s_count, 4);
21: // and no verify error
22: }
23:
24: // -- JUnit
25: public static void main(String[] args) {
26: junit.textui.TestRunner.run(suite());
27: }
28:
29: public static junit.framework.Test suite() {
30: return new junit.framework.TestSuite(WithinStaticRefTest.class);
31: }
32: }
|