Browse Source

testcode 356594

356694
Andy Clement 11 years ago
parent
commit
3875260e02

+ 14
- 0
tests/bugs171/pr356594/Code.aj View File

@@ -0,0 +1,14 @@
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Foo {}
@Retention(RetentionPolicy.RUNTIME)
@interface Bar {}

class C {
}

aspect X {
declare @type: C: @Foo @Bar;
}


BIN
tests/bugs171/pr384398_2/A$InnerA.class View File


BIN
tests/bugs171/pr384398_2/A.class View File


BIN
tests/bugs171/pr384398_2/B.class View File


+ 2
- 0
tests/src/org/aspectj/systemtest/AllTests17.java View File

@@ -7,12 +7,14 @@ import junit.framework.Test;
import junit.framework.TestSuite;

import org.aspectj.systemtest.ajc170.AllTestsAspectJ170;
import org.aspectj.systemtest.ajc171.AllTestsAspectJ171;

public class AllTests17 {

public static Test suite() {
TestSuite suite = new TestSuite("AspectJ System Test Suite - JDK 1.7");
// $JUnit-BEGIN$
suite.addTest(AllTestsAspectJ171.suite());
suite.addTest(AllTestsAspectJ170.suite());
suite.addTest(AllTests16.suite());
suite.addTest(AllTests15.suite());

+ 39
- 0
tests/src/org/aspectj/systemtest/ajc171/Ajc171Tests.java View File

@@ -0,0 +1,39 @@
/*******************************************************************************
* Copyright (c) 2008-2012 Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Andy Clement - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc171;

import java.io.File;

import junit.framework.Test;

import org.aspectj.testing.XMLBasedAjcTestCase;

/**
* @author Andy Clement
*/
public class Ajc171Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
// public void testMultipleAnnos_356594() {
// runTest("multiple annos 1");
// }
// ---

public static Test suite() {
return XMLBasedAjcTestCase.loadSuite(Ajc171Tests.class);
}

@Override
protected File getSpecFile() {
return new File("../tests/src/org/aspectj/systemtest/ajc171/ajc171.xml");
}

}

+ 25
- 0
tests/src/org/aspectj/systemtest/ajc171/AllTestsAspectJ171.java View File

@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2008 Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Andy Clement - initial API and implementation
*******************************************************************************/
package org.aspectj.systemtest.ajc171;

import junit.framework.Test;
import junit.framework.TestSuite;

public class AllTestsAspectJ171 {

public static Test suite() {
TestSuite suite = new TestSuite("AspectJ 1.7.1 tests");
// $JUnit-BEGIN$
suite.addTest(Ajc171Tests.suite());
// $JUnit-END$
return suite;
}
}

+ 12
- 0
tests/src/org/aspectj/systemtest/ajc171/ajc171.xml View File

@@ -0,0 +1,12 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>

<suite>

<ajc-test dir="bugs171/pr356594" title="multiple annos 1">
<compile files="Code.aj" options="-1.5 -showWeaveInfo">
<message kind="weave" text="'C' (Code.aj:8) is annotated with @Bar type annotation from 'X' (Code.aj:12)"/>
<message kind="weave" text="'C' (Code.aj:8) is annotated with @Foo type annotation from 'X' (Code.aj:12)"/>
</compile>
</ajc-test>
</suite>

Loading…
Cancel
Save