[jboss-cvs] JBossAS SVN: r72714 - in projects/jboss-aspects/trunk: test and 27 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 25 04:01:28 EDT 2008
Author: wolfc
Date: 2008-04-25 04:01:28 -0400 (Fri, 25 Apr 2008)
New Revision: 72714
Added:
projects/jboss-aspects/trunk/test/
projects/jboss-aspects/trunk/test/.classpath
projects/jboss-aspects/trunk/test/.project
projects/jboss-aspects/trunk/test/.settings/
projects/jboss-aspects/trunk/test/.settings/org.eclipse.jdt.core.prefs
projects/jboss-aspects/trunk/test/.settings/org.maven.ide.eclipse.prefs
projects/jboss-aspects/trunk/test/pom.xml
projects/jboss-aspects/trunk/test/src/
projects/jboss-aspects/trunk/test/src/main/
projects/jboss-aspects/trunk/test/src/main/java/
projects/jboss-aspects/trunk/test/src/main/java/org/
projects/jboss-aspects/trunk/test/src/main/java/org/jboss/
projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/
projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/
projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AbstractAspectTestCase.java
projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AspectTestDelegate.java
projects/jboss-aspects/trunk/test/src/test/
projects/jboss-aspects/trunk/test/src/test/java/
projects/jboss-aspects/trunk/test/src/test/java/org/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/BasicInterceptor.java
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/SomeBean.java
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/unit/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/unit/BasicTestCase.java
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/unit/
projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/unit/MissingResourceTestCase.java
projects/jboss-aspects/trunk/test/src/test/resources/
projects/jboss-aspects/trunk/test/src/test/resources/org/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/unit/
projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/unit/BasicTestCase-aop.xml
Log:
ASPECT-7: unit test framework for aspects
Property changes on: projects/jboss-aspects/trunk/test
___________________________________________________________________
Name: svn:ignore
+ eclipse-target
target
Added: projects/jboss-aspects/trunk/test/.classpath
===================================================================
--- projects/jboss-aspects/trunk/test/.classpath (rev 0)
+++ projects/jboss-aspects/trunk/test/.classpath 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry excluding="**/*.java" kind="src" output="eclipse-target/test-classes" path="src/test/resources"/>
+ <classpathentry kind="src" output="eclipse-target/test-classes" path="src/test/java"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="eclipse-target/classes"/>
+</classpath>
Added: projects/jboss-aspects/trunk/test/.project
===================================================================
--- projects/jboss-aspects/trunk/test/.project (rev 0)
+++ projects/jboss-aspects/trunk/test/.project 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jboss-aspects-test</name>
+ <comment>JBoss Aspects Test Facilities can be used as a base for writing
+ aspect unit tests.</comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: projects/jboss-aspects/trunk/test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/jboss-aspects/trunk/test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ projects/jboss-aspects/trunk/test/.settings/org.eclipse.jdt.core.prefs 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,5 @@
+#Fri Apr 25 08:33:48 CEST 2008
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
Added: projects/jboss-aspects/trunk/test/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- projects/jboss-aspects/trunk/test/.settings/org.maven.ide.eclipse.prefs (rev 0)
+++ projects/jboss-aspects/trunk/test/.settings/org.maven.ide.eclipse.prefs 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,9 @@
+#Fri Apr 25 08:34:29 CEST 2008
+activeProfiles=
+eclipse.preferences.version=1
+filterResources=false
+includeModules=false
+resolveWorkspaceProjects=true
+resourceFilterGoals=process-resources resources\:testResources
+useMavenFolders=false
+version=1
Added: projects/jboss-aspects/trunk/test/pom.xml
===================================================================
--- projects/jboss-aspects/trunk/test/pom.xml (rev 0)
+++ projects/jboss-aspects/trunk/test/pom.xml 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,68 @@
+<!--
+ vi:ts=2:sw=2:expandtab
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
+ <parent>
+ <groupId>org.jboss.aspects</groupId>
+ <artifactId>jboss-aspects-build</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-aspects-test</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <name>JBoss Aspects Test Facilities</name>
+ <url>http://www.jboss.org/jbossas</url>
+ <description>
+ JBoss Aspects Test Facilities can be used as a base for writing
+ aspect unit tests.
+ </description>
+
+ <build>
+
+ <!-- TODO: Remove these when parent build has proper default -->
+ <sourceDirectory>src/main/java</sourceDirectory>
+ <testSourceDirectory>src/test/java</testSourceDirectory>
+
+ <plugins>
+ <!-- Configure surefire to run with dynamic AOP -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <argLine>-Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader</argLine>
+ <!--forkMode>always</forkMode-->
+ <includes>
+ <include>**/*TestCase.java</include>
+ </includes>
+ <testFailureIgnore>false</testFailureIgnore>
+ <!--useSystemClassLoader>true</useSystemClassLoader-->
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <!-- override junit scope -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <!-- in compile scope, because this is a test facility -->
+ <scope>compile</scope>
+ </dependency>
+
+ <!-- this is an actual dependency -->
+ <dependency>
+ <groupId>org.jboss.test</groupId>
+ <artifactId>jboss-test</artifactId>
+ <!-- in compile scope, because this is a test facility -->
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.aop</groupId>
+ <artifactId>jboss-aop</artifactId>
+ </dependency>
+
+ </dependencies>
+</project>
Added: projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AbstractAspectTestCase.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AbstractAspectTestCase.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AbstractAspectTestCase.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test;
+
+import org.jboss.test.AbstractTestCaseWithSetup;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * Makes sure the aspects are deployed before running the test case.
+ *
+ * Run with: -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public abstract class AbstractAspectTestCase extends AbstractTestCaseWithSetup
+{
+ protected AbstractAspectTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static AbstractTestDelegate getDelegate(Class<?> cls)
+ {
+ return new AspectTestDelegate(cls);
+ }
+
+}
Added: projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AspectTestDelegate.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AspectTestDelegate.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/main/java/org/jboss/aspects/test/AspectTestDelegate.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test;
+
+import java.net.URL;
+import java.util.List;
+import java.util.concurrent.CopyOnWriteArrayList;
+
+import org.jboss.aop.AspectXmlLoader;
+import org.jboss.test.AbstractTestDelegate;
+
+/**
+ * Make sure the proper aop.xml is deployed before running the test.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class AspectTestDelegate extends AbstractTestDelegate
+{
+ /** The deployed urls */
+ private static final List<URL> urls = new CopyOnWriteArrayList<URL>();
+
+ /**
+ * @param clazz the class of the unit test case
+ */
+ public AspectTestDelegate(Class<?> clazz)
+ {
+ super(clazz);
+ }
+
+ @Override
+ public void setUp() throws Exception
+ {
+ super.setUp();
+
+ String aopXmlName = clazz.getName().replace(".", "/") + "-aop.xml";
+ URL url = clazz.getClassLoader().getResource(aopXmlName);
+ if(url == null)
+ throw new IllegalStateException("Can't find resource " + aopXmlName);
+ AspectXmlLoader.deployXML(url);
+ urls.add(url);
+ }
+
+ @Override
+ public void tearDown() throws Exception
+ {
+ for(URL url : urls)
+ AspectXmlLoader.undeployXML(url);
+ super.tearDown();
+ }
+}
Added: projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/BasicInterceptor.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/BasicInterceptor.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/BasicInterceptor.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test.test.basic;
+
+import org.jboss.aop.advice.Interceptor;
+import org.jboss.aop.joinpoint.Invocation;
+
+/**
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class BasicInterceptor implements Interceptor
+{
+ public String getName()
+ {
+ return getClass().getName();
+ }
+
+ public Object invoke(Invocation invocation) throws Throwable
+ {
+ return invocation.invokeNext() + " intercepted";
+ }
+}
Added: projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/SomeBean.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/SomeBean.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/SomeBean.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test.test.basic;
+
+/**
+ * Not even a real one. :-)
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class SomeBean
+{
+ public String sayHi(String name)
+ {
+ return "Hi " + name;
+ }
+}
Added: projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/unit/BasicTestCase.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/unit/BasicTestCase.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/basic/unit/BasicTestCase.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test.test.basic.unit;
+
+import org.jboss.aspects.test.AbstractAspectTestCase;
+import org.jboss.aspects.test.test.basic.SomeBean;
+
+/**
+ * Test the basic functionality of AbstractAspectTestCase.
+ *
+ * Run with: -Djava.system.class.loader=org.jboss.aop.standalone.SystemClassLoader
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class BasicTestCase extends AbstractAspectTestCase
+{
+ public BasicTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void test1()
+ {
+ SomeBean bean = new SomeBean();
+ String actual = bean.sayHi("me");
+
+ assertEquals("Hi me intercepted", actual);
+ }
+}
Added: projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/unit/MissingResourceTestCase.java
===================================================================
--- projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/unit/MissingResourceTestCase.java (rev 0)
+++ projects/jboss-aspects/trunk/test/src/test/java/org/jboss/aspects/test/test/missingresource/unit/MissingResourceTestCase.java 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.aspects.test.test.missingresource.unit;
+
+import org.jboss.aspects.test.AspectTestDelegate;
+
+import junit.framework.TestCase;
+
+/**
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MissingResourceTestCase extends TestCase
+{
+ public void testMissingResource() throws Exception
+ {
+ AspectTestDelegate delegate = new AspectTestDelegate(MissingResourceTestCase.class);
+ try
+ {
+ delegate.setUp();
+ fail("Expecting an IllegalStateException");
+ }
+ catch(IllegalStateException e)
+ {
+ String actual = e.getMessage();
+ String expected = "Can't find resource " + MissingResourceTestCase.class.getName().replace(".", "/") + "-aop.xml";
+ assertEquals(expected, actual);
+ }
+ }
+}
Added: projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/unit/BasicTestCase-aop.xml
===================================================================
--- projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/unit/BasicTestCase-aop.xml (rev 0)
+++ projects/jboss-aspects/trunk/test/src/test/resources/org/jboss/aspects/test/test/basic/unit/BasicTestCase-aop.xml 2008-04-25 08:01:28 UTC (rev 72714)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<aop>
+ <interceptor class="org.jboss.aspects.test.test.basic.BasicInterceptor" scope="PER_VM"/>
+
+ <bind pointcut="execution(public * org.jboss.aspects.test.test.basic.SomeBean->*(..))">
+ <interceptor-ref name="org.jboss.aspects.test.test.basic.BasicInterceptor"/>
+ </bind>
+</aop>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list