~ubuntu-branches/ubuntu/natty/aspectj/natty

« back to all changes in this revision

Viewing changes to org.aspectj/modules/tests/java5/ataspectj/ataspectj/AroundInlineMungerTest2.aj

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2009-10-04 16:37:23 UTC
  • mfrom: (1.1.3 upstream) (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091004163723-ck4y7j7fhjxskkie
Tags: 1.6.6+dfsg-1
* New upstream release.
  - Update 02_use_gjdoc.diff patch
* Update my email address

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*******************************************************************************
2
 
 * Copyright (c) 2005 Contributors.
3
 
 * All rights reserved. 
4
 
 * This program and the accompanying materials are made available 
5
 
 * under the terms of the Eclipse Public License v1.0 
6
 
 * which accompanies this distribution and is available at 
7
 
 * http://eclipse.org/legal/epl-v10.html 
8
 
 * 
9
 
 * Contributors:
10
 
 *   Alexandre Vasseur         initial implementation
11
 
 *******************************************************************************/
12
 
package ataspectj;
13
 
 
14
 
import junit.framework.TestCase;
15
 
import org.aspectj.lang.annotation.Aspect;
16
 
import org.aspectj.lang.annotation.Around;
17
 
import org.aspectj.lang.annotation.Before;
18
 
import org.aspectj.lang.ProceedingJoinPoint;
19
 
 
20
 
/**
21
 
 * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
22
 
 */
23
 
public class AroundInlineMungerTest2 extends TestCase {
24
 
 
25
 
    public static void main(String[] args) {
26
 
        TestHelper.runAndThrowOnFailure(suite());
27
 
    }
28
 
 
29
 
    public static junit.framework.Test suite() {
30
 
        return new junit.framework.TestSuite(AroundInlineMungerTest2.class);
31
 
    }
32
 
 
33
 
    public void testAccessNonPublicFromAroundAdvice() {
34
 
        target();
35
 
        assertEquals(3, AroundInlineMungerTestAspects2.Open.aroundCount);
36
 
        assertEquals(6, AroundInlineMungerTestAspects2.Open.beforeCount);
37
 
    }
38
 
 
39
 
    public void target() {}
40
 
 
41
 
}