Преглед на файлове

Fix 433744: default methods and itds

tags/V1_8_1
Andy Clement преди 10 години
родител
ревизия
b4592485d2

Двоични данни
org.eclipse.jdt.core/jdtcore-for-aspectj-src.zip Целия файл


Двоични данни
org.eclipse.jdt.core/jdtcore-for-aspectj.jar Целия файл


+ 18
- 0
tests/bugs181/433744/AnIterator.java Целия файл

@@ -0,0 +1,18 @@
import java.util.Iterator;

public class AnIterator implements Iterator<Object> {
@Override
public boolean hasNext() {
return false;
}

@Override
public Object next() {
throw new IllegalStateException();
}

@Override
public void remove() {
throw new UnsupportedOperationException();
}
}

+ 3
- 1
tests/src/org/aspectj/systemtest/AllTests18.java Целия файл

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

import org.aspectj.systemtest.ajc180.AllTestsAspectJ180;
import org.aspectj.systemtest.ajc181.AllTestsAspectJ181;

public class AllTests18 {

public static Test suite() {
TestSuite suite = new TestSuite("AspectJ System Test Suite - 1.8");
// $JUnit-BEGIN$
// $JUnit-BEGIN$
suite.addTest(AllTestsAspectJ181.suite());
suite.addTest(AllTestsAspectJ180.suite());
suite.addTest(AllTests17.suite());
suite.addTest(AllTests16.suite());

+ 39
- 0
tests/src/org/aspectj/systemtest/ajc181/Ajc181Tests.java Целия файл

@@ -0,0 +1,39 @@
/*******************************************************************************
* Copyright (c) 2014 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.ajc181;

import java.io.File;

import junit.framework.Test;

import org.aspectj.testing.XMLBasedAjcTestCase;

/**
* @author Andy Clement
*/
public class Ajc181Tests extends org.aspectj.testing.XMLBasedAjcTestCase {

public void testDefaultMethods_433744() {
runTest("default methods");
}
// ---

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

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

}

+ 25
- 0
tests/src/org/aspectj/systemtest/ajc181/AllTestsAspectJ181.java Целия файл

@@ -0,0 +1,25 @@
/*******************************************************************************
* Copyright (c) 2014 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.ajc181;

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

public class AllTestsAspectJ181 {

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

+ 9
- 0
tests/src/org/aspectj/systemtest/ajc181/ajc181.xml Целия файл

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

<suite>

<ajc-test dir="bugs181/433744" title="default methods">
<compile options="-1.8" files="AnIterator.java"/>
</ajc-test>

</suite>

Loading…
Отказ
Запис