Author: veithen Date: Sat Sep 27 03:34:10 2008 New Revision: 699616 URL: http://svn.apache.org/viewvc?rev=699616&view=rev Log: Moved mail transport tests from Synapse to WS commons and switched to Sun's JavaMail implementation (the mail transport seems to have problems with Geronimo).
Added: webservices/commons/trunk/modules/transport/modules/mail/src/test/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/ (props changed) - copied from r698316, synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/mail/ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailChannel.java - copied, changed from r699095, synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/mail/MailChannel.java webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/ webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/ webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/aop.xml Modified: webservices/commons/trunk/modules/transport/modules/mail/pom.xml webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/FlatLayout.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/GreenMailTestEnvironment.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/LogAspect.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAsyncClient.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAxisTestClientSetup.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailClient.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailMessageContextValidator.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailRequestResponseClient.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTransportListenerTest.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MessageLayout.java webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MultipartLayout.java Modified: webservices/commons/trunk/modules/transport/modules/mail/pom.xml URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/pom.xml?rev=699616&r1=699615&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/pom.xml (original) +++ webservices/commons/trunk/modules/transport/modules/mail/pom.xml Sat Sep 27 03:34:10 2008 @@ -45,7 +45,39 @@ <source>1.5</source> <target>1.5</target> </configuration> - </plugin> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.0</version> + <executions> + <execution> + <id>copy</id> + <phase>generate-test-resources</phase> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <stripVersion>true</stripVersion> + <artifactItems> + <artifactItem> + <groupId>org.aspectj</groupId> + <artifactId>aspectjweaver</artifactId> + <outputDirectory>target/lib</outputDirectory> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.3</version> + <configuration> + <argLine>-javaagent:target/lib/aspectjweaver.jar -Xms64m -Xmx128m</argLine> + </configuration> + </plugin> </plugins> </build> @@ -114,8 +146,40 @@ <groupId>org.apache.axis2</groupId> <artifactId>axis2-transport-base</artifactId> <version>${axis2-transport-base.version}</version> + <exclusions> + <exclusion> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-javamail_1.4_spec</artifactId> + </exclusion> + <exclusion> + <groupId>org.apache.geronimo.specs</groupId> + <artifactId>geronimo-activation_1.1_spec</artifactId> + </exclusion> + </exclusions> </dependency> + <dependency> + <groupId>javax.mail</groupId> + <artifactId>mail</artifactId> + <version>1.4.1</version> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.axis2</groupId> + <artifactId>axis2-transport-testkit</artifactId> + <version>${pom.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.icegreen</groupId> + <artifactId>greenmail</artifactId> + <version>1.3</version> + <scope>test</scope> + </dependency> </dependencies> <properties> Propchange: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/ ------------------------------------------------------------------------------ svn:mergeinfo = Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/FlatLayout.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/FlatLayout.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/FlatLayout.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/FlatLayout.java Sat Sep 27 03:34:10 2008 @@ -17,12 +17,12 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import javax.activation.DataHandler; import javax.mail.internet.MimeMessage; -import org.apache.synapse.transport.testkit.name.Name; +import org.apache.axis2.transport.testkit.name.Name; @Name("flat") public class FlatLayout implements MessageLayout { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/GreenMailTestEnvironment.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/GreenMailTestEnvironment.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/GreenMailTestEnvironment.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/GreenMailTestEnvironment.java Sat Sep 27 03:34:10 2008 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.io.OutputStream; import java.util.HashMap; @@ -27,10 +27,10 @@ import javax.mail.Flags; -import org.apache.synapse.transport.testkit.name.Key; -import org.apache.synapse.transport.testkit.name.Name; -import org.apache.synapse.transport.testkit.util.LogManager; -import org.apache.synapse.transport.testkit.util.ServerUtil; +import org.apache.axis2.transport.testkit.name.Key; +import org.apache.axis2.transport.testkit.name.Name; +import org.apache.axis2.transport.testkit.util.LogManager; +import org.apache.axis2.transport.testkit.util.ServerUtil; import com.icegreen.greenmail.store.FolderListener; import com.icegreen.greenmail.store.MailFolder; Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/LogAspect.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/LogAspect.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/LogAspect.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/LogAspect.java Sat Sep 27 03:34:10 2008 @@ -17,15 +17,15 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.io.OutputStream; import javax.mail.Message; +import org.apache.axis2.transport.testkit.util.LogManager; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.synapse.transport.testkit.util.LogManager; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAsyncClient.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAsyncClient.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAsyncClient.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAsyncClient.java Sat Sep 27 03:34:10 2008 @@ -17,12 +17,12 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import javax.mail.internet.ContentType; -import org.apache.synapse.transport.testkit.client.AsyncTestClient; -import org.apache.synapse.transport.testkit.client.ClientOptions; +import org.apache.axis2.transport.testkit.client.AsyncTestClient; +import org.apache.axis2.transport.testkit.client.ClientOptions; public class MailAsyncClient extends MailClient implements AsyncTestClient<byte[]> { public MailAsyncClient(MessageLayout layout) { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAxisTestClientSetup.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAxisTestClientSetup.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAxisTestClientSetup.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailAxisTestClientSetup.java Sat Sep 27 03:34:10 2008 @@ -17,13 +17,12 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import org.apache.axis2.AxisFault; import org.apache.axis2.context.MessageContext; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.synapse.transport.testkit.axis2.client.AxisTestClientSetup; -import org.apache.synapse.transport.testkit.name.Key; +import org.apache.axis2.transport.testkit.axis2.client.AxisTestClientSetup; +import org.apache.axis2.transport.testkit.name.Key; public class MailAxisTestClientSetup implements AxisTestClientSetup { private final String transportFormat; Copied: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailChannel.java (from r699095, synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/mail/MailChannel.java) URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailChannel.java?p2=webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailChannel.java&p1=synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/mail/MailChannel.java&r1=699095&r2=699616&rev=699616&view=diff ============================================================================== --- synapse/trunk/java/modules/transports/src/test/java/org/apache/synapse/transport/mail/MailChannel.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailChannel.java Sat Sep 27 03:34:10 2008 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.util.HashMap; import java.util.Map; @@ -28,11 +28,10 @@ import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.context.MessageContext; import org.apache.axis2.description.AxisService; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.synapse.transport.testkit.axis2.AxisServiceConfigurator; -import org.apache.synapse.transport.testkit.axis2.client.AxisTestClientSetup; -import org.apache.synapse.transport.testkit.channel.AsyncChannel; -import org.apache.synapse.transport.testkit.channel.RequestResponseChannel; +import org.apache.axis2.transport.testkit.axis2.AxisServiceConfigurator; +import org.apache.axis2.transport.testkit.axis2.client.AxisTestClientSetup; +import org.apache.axis2.transport.testkit.channel.AsyncChannel; +import org.apache.axis2.transport.testkit.channel.RequestResponseChannel; public class MailChannel implements AsyncChannel, RequestResponseChannel, AxisTestClientSetup, AxisServiceConfigurator { private MailTestEnvironment env; Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailClient.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailClient.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailClient.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailClient.java Sat Sep 27 03:34:10 2008 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.util.Date; import java.util.Properties; @@ -32,11 +32,10 @@ import javax.mail.util.ByteArrayDataSource; import org.apache.axiom.om.util.UUIDGenerator; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.synapse.transport.testkit.client.ClientOptions; -import org.apache.synapse.transport.testkit.client.TestClient; -import org.apache.synapse.transport.testkit.name.Name; -import org.apache.synapse.transport.testkit.name.Named; +import org.apache.axis2.transport.testkit.client.ClientOptions; +import org.apache.axis2.transport.testkit.client.TestClient; +import org.apache.axis2.transport.testkit.name.Name; +import org.apache.axis2.transport.testkit.name.Named; @Name("javamail") public abstract class MailClient implements TestClient { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailMessageContextValidator.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailMessageContextValidator.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailMessageContextValidator.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailMessageContextValidator.java Sat Sep 27 03:34:10 2008 @@ -17,15 +17,14 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.util.Map; import junit.framework.Assert; import org.apache.axis2.context.MessageContext; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.synapse.transport.testkit.axis2.MessageContextValidator; +import org.apache.axis2.transport.testkit.axis2.MessageContextValidator; public class MailMessageContextValidator extends Assert implements MessageContextValidator { public static final MailMessageContextValidator INSTANCE = new MailMessageContextValidator(); Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailRequestResponseClient.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailRequestResponseClient.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailRequestResponseClient.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailRequestResponseClient.java Sat Sep 27 03:34:10 2008 @@ -17,7 +17,7 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.io.ByteArrayOutputStream; import java.util.Arrays; @@ -33,12 +33,11 @@ import junit.framework.Assert; -import org.apache.axis2.transport.mail.MailConstants; +import org.apache.axis2.transport.testkit.client.ClientOptions; +import org.apache.axis2.transport.testkit.client.RequestResponseTestClient; +import org.apache.axis2.transport.testkit.message.IncomingMessage; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.synapse.transport.testkit.client.ClientOptions; -import org.apache.synapse.transport.testkit.client.RequestResponseTestClient; -import org.apache.synapse.transport.testkit.message.IncomingMessage; public class MailRequestResponseClient extends MailClient implements RequestResponseTestClient<byte[],byte[]> { private static final Log log = LogFactory.getLog(MailRequestResponseClient.class); Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTestEnvironment.java Sat Sep 27 03:34:10 2008 @@ -17,18 +17,15 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import java.util.Map; import org.apache.axis2.description.Parameter; import org.apache.axis2.description.TransportInDescription; import org.apache.axis2.description.TransportOutDescription; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.axis2.transport.mail.MailTransportListener; -import org.apache.axis2.transport.mail.MailTransportSender; -import org.apache.synapse.transport.testkit.axis2.TransportDescriptionFactory; -import org.apache.synapse.transport.testkit.name.Key; +import org.apache.axis2.transport.testkit.axis2.TransportDescriptionFactory; +import org.apache.axis2.transport.testkit.name.Key; @Key("server") public abstract class MailTestEnvironment implements TransportDescriptionFactory { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTransportListenerTest.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTransportListenerTest.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTransportListenerTest.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MailTransportListenerTest.java Sat Sep 27 03:34:10 2008 @@ -17,19 +17,18 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import junit.framework.TestCase; import junit.framework.TestSuite; -import org.apache.axis2.transport.mail.MailConstants; -import org.apache.synapse.transport.testkit.TransportTestSuite; -import org.apache.synapse.transport.testkit.TransportTestSuiteBuilder; -import org.apache.synapse.transport.testkit.axis2.client.AxisAsyncTestClient; -import org.apache.synapse.transport.testkit.axis2.endpoint.AxisAsyncEndpoint; -import org.apache.synapse.transport.testkit.axis2.endpoint.AxisEchoEndpoint; -import org.apache.synapse.transport.testkit.axis2.endpoint.AxisServer; -import org.apache.synapse.transport.testkit.tests.misc.MinConcurrencyTest; +import org.apache.axis2.transport.testkit.TransportTestSuite; +import org.apache.axis2.transport.testkit.TransportTestSuiteBuilder; +import org.apache.axis2.transport.testkit.axis2.client.AxisAsyncTestClient; +import org.apache.axis2.transport.testkit.axis2.endpoint.AxisAsyncEndpoint; +import org.apache.axis2.transport.testkit.axis2.endpoint.AxisEchoEndpoint; +import org.apache.axis2.transport.testkit.axis2.endpoint.AxisServer; +import org.apache.axis2.transport.testkit.tests.misc.MinConcurrencyTest; public class MailTransportListenerTest extends TestCase { public static TestSuite suite() throws Exception { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MessageLayout.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MessageLayout.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MessageLayout.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MessageLayout.java Sat Sep 27 03:34:10 2008 @@ -17,12 +17,12 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import javax.activation.DataHandler; import javax.mail.internet.MimeMessage; -import org.apache.synapse.transport.testkit.name.Key; +import org.apache.axis2.transport.testkit.name.Key; @Key("layout") public interface MessageLayout { Modified: webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MultipartLayout.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MultipartLayout.java?rev=699616&r1=698316&r2=699616&view=diff ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MultipartLayout.java (original) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/java/org/apache/axis2/transport/mail/MultipartLayout.java Sat Sep 27 03:34:10 2008 @@ -17,14 +17,14 @@ * under the License. */ -package org.apache.synapse.transport.mail; +package org.apache.axis2.transport.mail; import javax.activation.DataHandler; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; -import org.apache.synapse.transport.testkit.name.Name; +import org.apache.axis2.transport.testkit.name.Name; @Name("multipart") public class MultipartLayout implements MessageLayout { Added: webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/aop.xml URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/aop.xml?rev=699616&view=auto ============================================================================== --- webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/aop.xml (added) +++ webservices/commons/trunk/modules/transport/modules/mail/src/test/resources/META-INF/aop.xml Sat Sep 27 03:34:10 2008 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ Licensed to the Apache Software Foundation (ASF) under one + ~ or more contributor license agreements. See the NOTICE file + ~ distributed with this work for additional information + ~ regarding copyright ownership. The ASF licenses this file + ~ to you under the Apache License, Version 2.0 (the + ~ "License"); you may not use this file except in compliance + ~ with the License. You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, + ~ software distributed under the License is distributed on an + ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + ~ KIND, either express or implied. See the License for the + ~ specific language governing permissions and limitations + ~ under the License. + --> +<aspectj> + <aspects> + <aspect name="org.apache.axis2.transport.mail.LogAspect"/> + </aspects> + <weaver options="-showWeaveInfo"> + <include within="org.apache.axis2.transport..*"/> + </weaver> +</aspectj> \ No newline at end of file