From 8df8db1be53dff9405da3a2edb542af2c28ea75a Mon Sep 17 00:00:00 2001 From: mwebster Date: Wed, 9 Aug 2006 12:54:13 +0000 Subject: [PATCH] Bug 152982 "org.aspectj Restructure - Phase 2: Move tests" (move Java 5 dependent tests to XLint5Tests) --- .../aspectj/systemtest/xlint/XLint5Tests.java | 36 +++++++++++++++++++ .../aspectj/systemtest/xlint/XLintTests.java | 7 ---- 2 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java diff --git a/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java b/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java new file mode 100644 index 000000000..e146b0280 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/xlint/XLint5Tests.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM + * 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: + * Matthew Webster Move Java 5 dependent tests + *******************************************************************************/ +package org.aspectj.systemtest.xlint; + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +public class XLint5Tests extends XMLBasedAjcTestCase { + + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(XLint5Tests.class); + } + + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/xlint/xlint.xml"); + } + + public void testBug99136(){ + runTest("Two Xlint warnings wth cflow?"); + if(ajc.getLastCompilationResult().getWarningMessages().size() != 1){ + fail(); + } + } + +} diff --git a/tests/src/org/aspectj/systemtest/xlint/XLintTests.java b/tests/src/org/aspectj/systemtest/xlint/XLintTests.java index 1cc44f1f9..3510ed49e 100644 --- a/tests/src/org/aspectj/systemtest/xlint/XLintTests.java +++ b/tests/src/org/aspectj/systemtest/xlint/XLintTests.java @@ -162,13 +162,6 @@ public class XLintTests extends org.aspectj.testing.XMLBasedAjcTestCase { // if (is15VMOrGreater) // runTest("7 lint warnings"); // } - - public void testBug99136(){ - runTest("Two Xlint warnings wth cflow?"); - if(ajc.getLastCompilationResult().getWarningMessages().size() != 1){ - fail(); - } - } } -- 2.39.5