@@ -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(); | |||
} | |||
} |
@@ -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()); |
@@ -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"); | |||
} | |||
} |
@@ -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; | |||
} | |||
} |
@@ -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> |