From b2602650a75cf44e09290dc060ed59596a3b299d Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 25 Feb 2008 21:29:09 +0000 Subject: [PATCH] annoValMatch: testcode --- .../ajc160/AnnotationValueMatchingTests.java | 55 ++++++++++ .../ajc160/annotationValueMatching.xml | 102 ++++++++++++++++++ 2 files changed, 157 insertions(+) create mode 100644 tests/src/org/aspectj/systemtest/ajc160/AnnotationValueMatchingTests.java diff --git a/tests/src/org/aspectj/systemtest/ajc160/AnnotationValueMatchingTests.java b/tests/src/org/aspectj/systemtest/ajc160/AnnotationValueMatchingTests.java new file mode 100644 index 000000000..85df30124 --- /dev/null +++ b/tests/src/org/aspectj/systemtest/ajc160/AnnotationValueMatchingTests.java @@ -0,0 +1,55 @@ +/* ******************************************************************* + * 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 + * ******************************************************************/ +package org.aspectj.systemtest.ajc160; + + +import java.io.File; + +import junit.framework.Test; + +import org.aspectj.testing.XMLBasedAjcTestCase; + +/** + * Parameter value matching + * + */ +public class AnnotationValueMatchingTests extends XMLBasedAjcTestCase { + + public void testParsing() { runTest("parsing"); } + public void testBroken1() { runTest("broken - 1"); } + public void testParsingAllAnnotationValueKinds() { runTest("allkinds"); } + public void testSimpleCase() { runTest("simple"); } + public void testReferencingEnums1() { runTest("enum references - 1"); } + public void testReferencingEnums2() { runTest("enum references - 2"); } + public void testReferencingEnums3() { runTest("enum references - 3"); } + public void testIntValueMatching() { runTest("int value matching");} + public void testFloatValueMatching() { runTest("float value matching");} + public void testDoubleValueMatching() { runTest("double value matching");} + public void testByteValueMatching() { runTest("byte value matching");} + public void testLongValueMatching() { runTest("long value matching");} + public void testBooleanValueMatching() { runTest("boolean value matching");} + public void testShortValueMatching() { runTest("short value matching");} + public void testCharValueMatching() { runTest("char value matching");} + public void testStringValueMatching() { runTest("string value matching");} + public void testExampleOne() { runTest("example one");} + public void testError_InvalidValueTypes() { runTest("error case");} + public void testErrorOne_NonExistingValue() { runTest("error - non existing value");} + + ///////////////////////////////////////// + public static Test suite() { + return XMLBasedAjcTestCase.loadSuite(AnnotationValueMatchingTests.class); + } + + protected File getSpecFile() { + return new File("../tests/src/org/aspectj/systemtest/ajc160/annotationValueMatching.xml"); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc160/annotationValueMatching.xml b/tests/src/org/aspectj/systemtest/ajc160/annotationValueMatching.xml index c537244f2..ebcc8b4c2 100644 --- a/tests/src/org/aspectj/systemtest/ajc160/annotationValueMatching.xml +++ b/tests/src/org/aspectj/systemtest/ajc160/annotationValueMatching.xml @@ -32,6 +32,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -42,5 +109,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- 2.39.5