<project xmlns="http://maven.apache.org/POM/4.0.0" | <project xmlns="http://maven.apache.org/POM/4.0.0" | ||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |||||
<modelVersion>4.0.0</modelVersion> | <modelVersion>4.0.0</modelVersion> | ||||
<parent> | <parent> |
* | * | ||||
* @author Andy Clement | * @author Andy Clement | ||||
*/ | */ | ||||
public class ReflectionWorldPointcutExpressionTests extends CommonPointcutExpressionTests { | |||||
public class ReflectionWorldPointcutExpressionTest extends CommonPointcutExpressionTests { | |||||
protected World getWorld() { | protected World getWorld() { | ||||
return new ReflectionWorld(true, getClass().getClassLoader()); | return new ReflectionWorld(true, getClass().getClassLoader()); |
/* ******************************************************************* | |||||
* Copyright (c) 2002-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: | |||||
* PARC initial implementation | |||||
* ******************************************************************/ | |||||
// default package | |||||
package org.aspectj.weaver; | |||||
import junit.framework.Test; | |||||
import junit.framework.TestCase; | |||||
import junit.framework.TestSuite; | |||||
import org.aspectj.matcher.tools.ReflectionWorldPointcutExpressionTests; | |||||
import org.aspectj.weaver.patterns.PatternsTests; | |||||
import org.aspectj.weaver.reflect.ReflectionWorldBasicTest; | |||||
import org.aspectj.weaver.reflect.ReflectionWorldSpecificTest; | |||||
public class MatcherModuleTests extends TestCase { | |||||
public MatcherModuleTests(String name) { | |||||
super(name); | |||||
} | |||||
public static Test suite() { | |||||
TestSuite suite = new TestSuite(MatcherModuleTests.class.getName()); | |||||
suite.addTestSuite(ReflectionWorldSpecificTest.class); | |||||
suite.addTestSuite(ReflectionWorldBasicTest.class); | |||||
suite.addTestSuite(ReflectionWorldPointcutExpressionTests.class); | |||||
suite.addTestSuite(TypeFactoryTests.class); | |||||
suite.addTest(PatternsTests.suite()); | |||||
return suite; | |||||
} | |||||
} |
* | * | ||||
* @author Andy Clement | * @author Andy Clement | ||||
*/ | */ | ||||
public class TypeFactoryTests extends TestCase { | |||||
public class TypeFactoryTest extends TestCase { | |||||
public void testParameterizedSig() { | public void testParameterizedSig() { | ||||
UnresolvedType t = null; | UnresolvedType t = null; |
/* ******************************************************************* | |||||
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC). | |||||
* 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: | |||||
* PARC initial implementation | |||||
* ******************************************************************/ | |||||
package org.aspectj.weaver.patterns; | |||||
import junit.framework.Test; | |||||
import junit.framework.TestCase; | |||||
import junit.framework.TestSuite; | |||||
public class PatternsTests extends TestCase { | |||||
public static Test suite() { | |||||
TestSuite suite = new TestSuite(PatternsTests.class.getName()); | |||||
// $JUnit-BEGIN$ | |||||
suite.addTestSuite(AndOrNotTestCase.class); | |||||
suite.addTestSuite(BindingTestCase.class); | |||||
suite.addTestSuite(DeclareErrorOrWarningTestCase.class); | |||||
suite.addTestSuite(ModifiersPatternTestCase.class); | |||||
suite.addTestSuite(NamePatternParserTestCase.class); | |||||
suite.addTestSuite(NamePatternTestCase.class); | |||||
suite.addTestSuite(ParserTestCase.class); | |||||
suite.addTestSuite(SignaturePatternTestCase.class); | |||||
suite.addTestSuite(ThisOrTargetTestCase.class); | |||||
suite.addTestSuite(TypePatternListTestCase.class); | |||||
suite.addTestSuite(TypePatternTestCase.class); | |||||
suite.addTestSuite(SimpleScopeTests.class); | |||||
suite.addTestSuite(WithinTestCase.class); | |||||
suite.addTestSuite(ArgsTestCase.class); | |||||
// suite.addTestSuite(AnnotationPatternTestCase.class); | |||||
// suite.addTestSuite(AnnotationPatternMatchingTestCase.class); | |||||
suite.addTestSuite(PointcutRewriterTest.class); | |||||
suite.addTestSuite(VisitorTestCase.class); | |||||
// $JUnit-END$ | |||||
return suite; | |||||
} | |||||
public PatternsTests(String name) { | |||||
super(name); | |||||
} | |||||
} |
import org.aspectj.weaver.World; | import org.aspectj.weaver.World; | ||||
import org.aspectj.weaver.reflect.ReflectionWorld; | import org.aspectj.weaver.reflect.ReflectionWorld; | ||||
public class SimpleScopeTests extends PatternsTestCase { | |||||
public class SimpleScopeTest extends PatternsTestCase { | |||||
public World getWorld() { | public World getWorld() { | ||||
return new ReflectionWorld(true, this.getClass().getClassLoader()); | return new ReflectionWorld(true, this.getClass().getClassLoader()); |