[jboss-cvs] JBossAS SVN: r63677 - in projects/microcontainer/trunk: deployers-client and 50 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 27 11:49:46 EDT 2007
Author: adrian at jboss.org
Date: 2007-06-27 11:49:46 -0400 (Wed, 27 Jun 2007)
New Revision: 63677
Added:
projects/microcontainer/trunk/deployers-client/
projects/microcontainer/trunk/deployers-client/.classpath
projects/microcontainer/trunk/deployers-client/.project
projects/microcontainer/trunk/deployers-client/output/
projects/microcontainer/trunk/deployers-client/output/eclipse-classes/
projects/microcontainer/trunk/deployers-client/pom.xml
projects/microcontainer/trunk/deployers-client/src/
projects/microcontainer/trunk/deployers-client/src/main/
projects/microcontainer/trunk/deployers-client/src/main/org/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/deployment/
projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.java
projects/microcontainer/trunk/deployers-client/src/resources/
projects/microcontainer/trunk/deployers-client/src/tests/
projects/microcontainer/trunk/deployers-client/src/tests/org/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/DeployersClientTestSuite.java
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.java
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.java
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/test/
projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.java
projects/microcontainer/trunk/deployers-client/target/
projects/microcontainer/trunk/deployers-client/target/classes-retro/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/plugins/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/plugins/deployment/
projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
projects/microcontainer/trunk/deployers-client/target/classes/
projects/microcontainer/trunk/deployers-client/target/classes/org/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/plugins/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/plugins/deployment/
projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/plugins/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/plugins/deployment/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/test/
projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-jdk14.jar
projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-sources.jar
projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-tests.jar
projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client.jar
projects/microcontainer/trunk/deployers-client/target/surefire-reports/
projects/microcontainer/trunk/deployers-client/target/surefire-reports/TEST-org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.xml
projects/microcontainer/trunk/deployers-client/target/surefire-reports/org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.txt
projects/microcontainer/trunk/deployers-client/target/test-classes/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/test/
projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
Log:
Import refactored deployers code
Added: projects/microcontainer/trunk/deployers-client/.classpath
===================================================================
--- projects/microcontainer/trunk/deployers-client/.classpath (rev 0)
+++ projects/microcontainer/trunk/deployers-client/.classpath 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main"/>
+ <classpathentry kind="src" path="src/tests"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-common-core/2.0.4.GA/jboss-common-core-2.0.4.GA.jar" sourcepath="M2_REPO/jboss/jboss-common-core/2.0.4.GA/jboss-common-core-2.0.4.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-common-logging-spi/2.0.4.GA/jboss-common-logging-spi-2.0.4.GA.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-logging-log4j/2.0.2.GA/jboss-logging-log4j-2.0.2.GA.jar" sourcepath="M2_REPO/jboss/jboss-logging-log4j/2.0.2.GA/jboss-logging-log4j-2.0.2.GA-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar" sourcepath="M2_REPO/junit/junit/3.8.1/junit-3.8.1-sources.jar"/>
+ <classpathentry kind="var" path="M2_REPO/jboss/jboss-test/1.0.4-SNAPSHOT/jboss-test-1.0.4-SNAPSHOT.jar" sourcepath="M2_REPO/jboss/jboss-test/1.0.4-SNAPSHOT/jboss-test-1.0.4-SNAPSHOT-sources.jar"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/jboss-deployers-core-spi"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/jboss-deployers-client-spi"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/jboss-deployers-core"/>
+ <classpathentry kind="output" path="target/eclipse-classes"/>
+</classpath>
Added: projects/microcontainer/trunk/deployers-client/.project
===================================================================
--- projects/microcontainer/trunk/deployers-client/.project (rev 0)
+++ projects/microcontainer/trunk/deployers-client/.project 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jboss-deployers-client</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: projects/microcontainer/trunk/deployers-client/pom.xml
===================================================================
--- projects/microcontainer/trunk/deployers-client/pom.xml (rev 0)
+++ projects/microcontainer/trunk/deployers-client/pom.xml 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,54 @@
+<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>jboss</groupId>
+ <artifactId>jboss-microcontainer</artifactId>
+ <version>2.0.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>jboss-deployers-client</artifactId>
+ <packaging>jar</packaging>
+ <name>JBoss Deployers Client</name>
+ <url>http://www.jboss.com/products/jbossmc</url>
+ <description>JBoss Deployers Client</description>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>test-jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <!-- Global dependencies -->
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-deployers-client-spi</artifactId>
+ </dependency>
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-test</artifactId>
+ <version>1.0.4-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-deployers-core</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
Added: projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.java
===================================================================
--- projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.java (rev 0)
+++ projects/microcontainer/trunk/deployers-client/src/main/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.java 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,117 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2007, 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.deployers.client.plugins.deployment;
+
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+
+import org.jboss.deployers.client.spi.Deployment;
+import org.jboss.deployers.spi.attachments.helpers.PredeterminedManagedObjectAttachmentsImpl;
+
+/**
+ * AbstractDeployment.
+ *
+ * @author <a href="adrian at jboss.org">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class AbstractDeployment extends PredeterminedManagedObjectAttachmentsImpl implements Deployment
+{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = -5443148970623594183L;
+
+ /** The name of the deployment */
+ private String name;
+
+ /**
+ * Create a new AbstractDeployment.
+ */
+ public AbstractDeployment()
+ {
+ }
+
+ /**
+ * Create a new AbstractDeployment.
+ *
+ * @param name the name of the deployment
+ * @throws IllegalArgumentException for a null name
+ */
+ public AbstractDeployment(String name)
+ {
+ setName(name);
+ }
+
+ /**
+ * Get the name.
+ *
+ * @return the name.
+ */
+ public String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Get the simple name.
+ *
+ * @return the name.
+ */
+ public String getSimpleName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the name.
+ *
+ * @param name the name.
+ * @throws IllegalArgumentException for a null name
+ */
+ public void setName(String name)
+ {
+ if (name == null)
+ throw new IllegalArgumentException("Null name");
+ this.name = name;
+ }
+
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
+ {
+ super.readExternal(in);
+ boolean hasName = in.readBoolean();
+ if (hasName)
+ name = in.readUTF();
+ }
+
+ /**
+ * @serialData name from {@link #getName()}
+ * @param out the output
+ * @throws IOException for any error
+ */
+ public void writeExternal(ObjectOutput out) throws IOException
+ {
+ super.writeExternal(out);
+ String name = getName();
+ out.writeBoolean(name != null);
+ if (name != null)
+ out.writeUTF(name);
+ }
+}
Added: projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/DeployersClientTestSuite.java
===================================================================
--- projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/DeployersClientTestSuite.java (rev 0)
+++ projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/DeployersClientTestSuite.java 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.test.deployers;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.deployers.deploymentfactory.DeploymentFactoryTestSuite;
+
+/**
+ * Deployers Client Test Suite.
+ *
+ * @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @version $Revision: 37459 $
+ */
+public class DeployersClientTestSuite extends TestSuite
+{
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Deployers Client Tests");
+
+ suite.addTest(DeploymentFactoryTestSuite.suite());
+
+ return suite;
+ }
+}
Added: projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.java
===================================================================
--- projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.java (rev 0)
+++ projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.java 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,446 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.test.deployers.deploymentfactory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.jboss.deployers.client.spi.Deployment;
+import org.jboss.deployers.client.spi.DeploymentFactory;
+import org.jboss.deployers.spi.attachments.Attachments;
+import org.jboss.deployers.spi.attachments.PredeterminedManagedObjectAttachments;
+import org.jboss.deployers.spi.structure.ClassPathEntry;
+import org.jboss.deployers.spi.structure.ContextInfo;
+import org.jboss.deployers.spi.structure.StructureMetaData;
+import org.jboss.test.BaseTestCase;
+
+/**
+ * AbstractDeploymentFactoryTest.
+ *
+ * @author <a href="adrian at jboss.org">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class AbstractDeploymentFactoryTest extends BaseTestCase
+{
+ public AbstractDeploymentFactoryTest(String name)
+ {
+ super(name);
+ }
+
+ protected static void assertDefault(ContextInfo contextInfo)
+ {
+ assertDefaultPath(contextInfo);
+ assertDefaultMetaDataPath(contextInfo);
+ assertDefaultClassPath(contextInfo.getClassPath());
+ }
+
+ protected static void assertDefaultPath(ContextInfo contextInfo)
+ {
+ assertEquals("", contextInfo.getPath());
+ }
+
+ protected static void assertDefaultNonPath(ContextInfo contextInfo)
+ {
+ assertDefaultMetaDataPath(contextInfo);
+ assertDefaultClassPath(contextInfo.getClassPath());
+ }
+
+ protected static void assertDefaultMetaDataPath(ContextInfo contextInfo)
+ {
+ assertNull(contextInfo.getMetaDataPath());
+ }
+
+ protected static void assertDefaultClassPath(List<ClassPathEntry> classPath)
+ {
+ assertNotNull(classPath);
+ assertEquals(1, classPath.size());
+ ClassPathEntry entry = classPath.get(0);
+ assertNotNull(entry);
+ assertEquals("", entry.getPath());
+ assertNull(entry.getSuffixes());
+ }
+
+ protected StructureMetaData assertStructureMetaData(PredeterminedManagedObjectAttachments attachments)
+ {
+ assertNotNull(attachments);
+ Attachments x = attachments.getPredeterminedManagedObjects();
+ assertNotNull(x);
+ StructureMetaData structure = x.getAttachment(StructureMetaData.class);
+ assertNotNull(structure);
+ return structure;
+ }
+
+ protected void assertContexts(PredeterminedManagedObjectAttachments attachments, ContextInfo... expected)
+ {
+ StructureMetaData structure = assertStructureMetaData(attachments);
+ assertContexts(structure, expected);
+ }
+
+ protected void assertContexts(StructureMetaData structure, ContextInfo... expected)
+ {
+ assertNotNull(structure);
+ List<ContextInfo> contexts = new ArrayList<ContextInfo>();
+ if (expected != null)
+ {
+ for (ContextInfo context : expected)
+ contexts.add(context);
+ }
+
+ assertEquals(contexts, structure.getContexts());
+ }
+
+ protected abstract DeploymentFactory createDeploymentFactory();
+
+ protected abstract Deployment createDeployment();
+
+ public void testCreateClassPathEntryPath()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ ClassPathEntry entry = factory.createClassPathEntry("path");
+ assertEquals("path", entry.getPath());
+ assertNull(entry.getSuffixes());
+ }
+
+ public void testCreateClassPathEntryPathErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ try
+ {
+ factory.createClassPathEntry(null);
+ fail("Should not be here!");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testCreateClassPathEntryPathAndSuffixes()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ ClassPathEntry entry = factory.createClassPathEntry("path", "suffixes");
+ assertEquals("path", entry.getPath());
+ assertEquals("suffixes", entry.getSuffixes());
+
+ entry = factory.createClassPathEntry("path", null);
+ assertEquals("path", entry.getPath());
+ assertNull(entry.getSuffixes());
+ }
+
+ public void testCreateClassPathEntryPathAndSuffixesErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ try
+ {
+ factory.createClassPathEntry(null, "suffixes");
+ fail("Should not be here!");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testCreateClassPathPath()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ List<ClassPathEntry> expected = Collections.singletonList(factory.createClassPathEntry("path"));
+ List<ClassPathEntry> classPath = factory.createClassPath("path");
+ assertEquals(expected, classPath);
+ }
+
+ public void testCreateClassPathPathErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ try
+ {
+ factory.createClassPath(null);
+ fail("Should not be here!");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testCreateClassPathPathAndSuffixes()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ List<ClassPathEntry> expected = Collections.singletonList(factory.createClassPathEntry("path", "suffixes"));
+ List<ClassPathEntry> classPath = factory.createClassPath("path", "suffixes");
+ assertEquals(expected, classPath);
+ }
+
+ public void testCreateClassPathPathAndSuffixesErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ try
+ {
+ factory.createClassPath(null, "suffixes");
+ fail("Should not be here!");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testAddContextPath()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ ContextInfo context = factory.addContext(deployment, "path");
+ assertEquals("path", context.getPath());
+ assertDefaultNonPath(context);
+
+ assertContexts(deployment, context);
+ }
+
+ public void testAddContextPathErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ try
+ {
+ factory.addContext(null, "path");
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ try
+ {
+ factory.addContext(deployment, null);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testAddContextPathAndClassPath()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
+ ContextInfo context = factory.addContext(deployment, "path", classPath);
+ assertEquals("path", context.getPath());
+ assertDefaultMetaDataPath(context);
+ assertEquals(classPath, context.getClassPath());
+
+ assertContexts(deployment, context);
+
+ deployment = createDeployment();
+ classPath = null;
+ context = factory.addContext(deployment, "path", classPath);
+ assertEquals("path", context.getPath());
+ assertDefaultMetaDataPath(context);
+ assertNull(context.getClassPath());
+
+ assertContexts(deployment, context);
+ }
+
+ public void testAddContextPathAndClassPathErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
+ try
+ {
+ factory.addContext(null, "path", classPath);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ try
+ {
+ factory.addContext(deployment, null, classPath);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testAddContextPathAndMetaDataAndClassPath()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
+ ContextInfo context = factory.addContext(deployment, "path", "metaDataPath", classPath);
+ assertEquals("path", context.getPath());
+ assertEquals("metaDataPath", context.getMetaDataPath());
+ assertEquals(classPath, context.getClassPath());
+
+ assertContexts(deployment, context);
+
+ classPath = null;
+ deployment = createDeployment();
+ context = factory.addContext(deployment, "path", "metaDataPath", classPath);
+ assertEquals("path", context.getPath());
+ assertEquals("metaDataPath", context.getMetaDataPath());
+ assertNull(context.getClassPath());
+
+ assertContexts(deployment, context);
+ }
+
+ public void testAddContextPathAndMetaDataPathAndAndClassPathErrors()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
+ try
+ {
+ factory.addContext(null, "path", "metaData", classPath);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+
+ try
+ {
+ factory.addContext(deployment, null, "metaData", classPath);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+
+ try
+ {
+ factory.addContext(deployment, "path", null, classPath);
+ fail("Should not be here");
+ }
+ catch (Exception e)
+ {
+ checkThrowable(IllegalArgumentException.class, e);
+ }
+ }
+
+ public void testAddContexts()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+ ContextInfo context1 = factory.addContext(deployment, "path1");
+ assertEquals("path1", context1.getPath());
+ assertDefaultNonPath(context1);
+
+ ContextInfo context2 = factory.addContext(deployment, "path2");
+ assertEquals("path2", context2.getPath());
+ assertDefaultNonPath(context1);
+
+ ContextInfo context3 = factory.addContext(deployment, "path3");
+ assertEquals("path3", context3.getPath());
+ assertDefaultNonPath(context1);
+
+ assertContexts(deployment, context1, context2, context3);
+ }
+
+ public void testAddContextsToContext()
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+
+ ContextInfo parent = factory.addContext(deployment, "parent");
+ assertEquals("parent", parent.getPath());
+ assertDefaultNonPath(parent);
+
+ ContextInfo context1 = factory.addContext(parent, "path1");
+ assertEquals("path1", context1.getPath());
+ assertDefaultNonPath(context1);
+
+ ContextInfo context2 = factory.addContext(parent, "path2");
+ assertEquals("path2", context2.getPath());
+ assertDefaultNonPath(context2);
+
+ ContextInfo context3 = factory.addContext(parent, "path3");
+ assertEquals("path3", context3.getPath());
+ assertDefaultNonPath(context3);
+
+ assertContexts(deployment, parent);
+ assertContexts(parent, context1, context2, context3);
+ }
+
+ public void testSerialization() throws Exception
+ {
+ DeploymentFactory factory = createDeploymentFactory();
+ Deployment deployment = createDeployment();
+
+ List<ClassPathEntry> classPath = factory.createClassPath("ClassPath");
+ ContextInfo context1 = factory.addContext(deployment, "path1", "metaDataPath", classPath);
+ assertEquals("path1", context1.getPath());
+ assertEquals("metaDataPath", context1.getMetaDataPath());
+ assertEquals(classPath, context1.getClassPath());
+
+ StructureMetaData structure = assertStructureMetaData(deployment);
+ assertContexts(structure, context1);
+
+ deployment = serializeDeserialize(deployment, Deployment.class);
+ structure = assertStructureMetaData(deployment);
+ assertContexts(structure, context1);
+
+ ContextInfo context2 = factory.addContext(deployment, "path2");
+ assertEquals("path2", context2.getPath());
+ assertDefaultNonPath(context2);
+ structure = assertStructureMetaData(deployment);
+ assertContexts(structure, context1, context2);
+
+ deployment = serializeDeserialize(deployment, Deployment.class);
+ structure = assertStructureMetaData(deployment);
+ assertContexts(structure, context1, context2);
+
+ ContextInfo testContext = structure.getContext("path2");
+
+ ContextInfo child1 = factory.addContext(testContext, "child1");
+ assertEquals("child1", child1.getPath());
+ assertDefaultNonPath(child1);
+
+ ContextInfo child2 = factory.addContext(testContext, "child2");
+ assertEquals("child2", child2.getPath());
+ assertDefaultNonPath(child2);
+
+ ContextInfo child3 = factory.addContext(testContext, "child3");
+ assertEquals("child3", child3.getPath());
+ assertDefaultNonPath(child3);
+
+ assertContexts(structure, context1, context2);
+ StructureMetaData childStructure = assertStructureMetaData(testContext);
+ assertContexts(childStructure, child1, child2, child3);
+
+ structure = serializeDeserialize(structure, StructureMetaData.class);
+ assertContexts(structure, context1, context2);
+ testContext = structure.getContext("path2");
+ assertEquals(context2, testContext);
+
+ childStructure = assertStructureMetaData(testContext);
+ assertContexts(childStructure, child1, child2, child3);
+ }
+}
Added: projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.java
===================================================================
--- projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.java (rev 0)
+++ projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.java 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,51 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.test.deployers.deploymentfactory;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+import org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase;
+
+/**
+ * DeploymentFactoryTestSuite.
+ *
+ * @author <a href="adrian at jboss.org">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DeploymentFactoryTestSuite extends TestSuite
+{
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Deployment Factory Tests");
+
+ suite.addTest(DeploymentFactoryUnitTestCase.suite());
+
+ return suite;
+ }
+}
Added: projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-client/src/tests/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.java 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,61 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.test.deployers.deploymentfactory.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.deployers.client.plugins.deployment.AbstractDeployment;
+import org.jboss.deployers.client.spi.Deployment;
+import org.jboss.deployers.client.spi.DeploymentFactory;
+import org.jboss.test.deployers.deploymentfactory.AbstractDeploymentFactoryTest;
+
+/**
+ * DeploymentFactoryUnitTestCase.
+ *
+ * @author <a href="adrian at jboss.org">Adrian Brock</a>
+ * @version $Revision: 1.1 $
+ */
+public class DeploymentFactoryUnitTestCase extends AbstractDeploymentFactoryTest
+{
+ public static Test suite()
+ {
+ return new TestSuite(DeploymentFactoryUnitTestCase.class);
+ }
+
+ public DeploymentFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ @Override
+ protected DeploymentFactory createDeploymentFactory()
+ {
+ return new DeploymentFactory();
+ }
+
+ @Override
+ protected Deployment createDeployment()
+ {
+ return new AbstractDeployment();
+ }
+}
Added: projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/classes-retro/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/deployers/client/plugins/deployment/AbstractDeployment.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/eclipse-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-jdk14.jar
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-jdk14.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-sources.jar
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-sources.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-tests.jar
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client-tests.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client.jar
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/jboss-deployers-client.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/surefire-reports/TEST-org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.xml
===================================================================
--- projects/microcontainer/trunk/deployers-client/target/surefire-reports/TEST-org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.xml (rev 0)
+++ projects/microcontainer/trunk/deployers-client/target/surefire-reports/TEST-org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.xml 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite errors="0" skipped="0" tests="17" time="0.175" failures="0" name="org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase">
+ <properties>
+ <property value="Java(TM) 2 Runtime Environment, Standard Edition" name="java.runtime.name"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre/lib/i386" name="sun.boot.library.path"/>
+ <property value="1.5.0_09-b03" name="java.vm.version"/>
+ <property value="Sun Microsystems Inc." name="java.vm.vendor"/>
+ <property value="http://java.sun.com/" name="java.vendor.url"/>
+ <property value=":" name="path.separator"/>
+ <property value="Java HotSpot(TM) Server VM" name="java.vm.name"/>
+ <property value="sun.io" name="file.encoding.pkg"/>
+ <property value="US" name="user.country"/>
+ <property value="unknown" name="sun.os.patch.level"/>
+ <property value="Java Virtual Machine Specification" name="java.vm.specification.name"/>
+ <property value="/home/ejort/microcontainer/deployers-client" name="user.dir"/>
+ <property value="1.5.0_09-b03" name="java.runtime.version"/>
+ <property value="sun.awt.X11GraphicsEnvironment" name="java.awt.graphicsenv"/>
+ <property value="/home/ejort/microcontainer/deployers-client" name="basedir"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre/lib/endorsed" name="java.endorsed.dirs"/>
+ <property value="i386" name="os.arch"/>
+ <property value="/tmp" name="java.io.tmpdir"/>
+ <property value="
+" name="line.separator"/>
+ <property value="Sun Microsystems Inc." name="java.vm.specification.vendor"/>
+ <property value="Linux" name="os.name"/>
+ <property value="UTF-8" name="sun.jnu.encoding"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre/lib/i386/server:/home/ejort/downloads/jdk1.5.0_09/jre/lib/i386:/home/ejort/downloads/jdk1.5.0_09/jre/../lib/i386" name="java.library.path"/>
+ <property value="Java Platform API Specification" name="java.specification.name"/>
+ <property value="49.0" name="java.class.version"/>
+ <property value="HotSpot Server Compiler" name="sun.management.compiler"/>
+ <property value="2.6.20-1.2952.fc6" name="os.version"/>
+ <property value="/home/ejort" name="user.home"/>
+ <property value="" name="user.timezone"/>
+ <property value="sun.print.PSPrinterJob" name="java.awt.printerjob"/>
+ <property value="UTF-8" name="file.encoding"/>
+ <property value="1.5" name="java.specification.version"/>
+ <property value="ejort" name="user.name"/>
+ <property value="/home/ejort/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/ejort/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar:/home/ejort/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/ejort/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/ejort/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/home/ejort/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/ejort/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/ejort/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar" name="java.class.path"/>
+ <property value="1.0" name="java.vm.specification.version"/>
+ <property value="32" name="sun.arch.data.model"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre" name="java.home"/>
+ <property value="Sun Microsystems Inc." name="java.specification.vendor"/>
+ <property value="en" name="user.language"/>
+ <property value="mixed mode" name="java.vm.info"/>
+ <property value="1.5.0_09" name="java.version"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre/lib/ext" name="java.ext.dirs"/>
+ <property value="/home/ejort/downloads/jdk1.5.0_09/jre/lib/rt.jar:/home/ejort/downloads/jdk1.5.0_09/jre/lib/i18n.jar:/home/ejort/downloads/jdk1.5.0_09/jre/lib/sunrsasign.jar:/home/ejort/downloads/jdk1.5.0_09/jre/lib/jsse.jar:/home/ejort/downloads/jdk1.5.0_09/jre/lib/jce.jar:/home/ejort/downloads/jdk1.5.0_09/jre/lib/charsets.jar:/home/ejort/downloads/jdk1.5.0_09/jre/classes" name="sun.boot.class.path"/>
+ <property value="Sun Microsystems Inc." name="java.vendor"/>
+ <property value="/home/ejort/.m2/repository" name="localRepository"/>
+ <property value="/" name="file.separator"/>
+ <property value="http://java.sun.com/cgi-bin/bugreport.cgi" name="java.vendor.url.bug"/>
+ <property value="little" name="sun.cpu.endian"/>
+ <property value="UnicodeLittle" name="sun.io.unicode.encoding"/>
+ <property value="gnome" name="sun.desktop"/>
+ <property value="" name="sun.cpu.isalist"/>
+ </properties>
+ <testcase time="0.04" name="testCreateClassPathEntryPath"/>
+ <testcase time="0.002" name="testCreateClassPathEntryPathErrors"/>
+ <testcase time="0.001" name="testCreateClassPathEntryPathAndSuffixes"/>
+ <testcase time="0.002" name="testCreateClassPathEntryPathAndSuffixesErrors"/>
+ <testcase time="0.002" name="testCreateClassPathPath"/>
+ <testcase time="0.002" name="testCreateClassPathPathErrors"/>
+ <testcase time="0.003" name="testCreateClassPathPathAndSuffixes"/>
+ <testcase time="0.001" name="testCreateClassPathPathAndSuffixesErrors"/>
+ <testcase time="0.013" name="testAddContextPath"/>
+ <testcase time="0.001" name="testAddContextPathErrors"/>
+ <testcase time="0.002" name="testAddContextPathAndClassPath"/>
+ <testcase time="0.001" name="testAddContextPathAndClassPathErrors"/>
+ <testcase time="0.001" name="testAddContextPathAndMetaDataAndClassPath"/>
+ <testcase time="0.001" name="testAddContextPathAndMetaDataPathAndAndClassPathErrors"/>
+ <testcase time="0.002" name="testAddContexts"/>
+ <testcase time="0.002" name="testAddContextsToContext"/>
+ <testcase time="0.076" name="testSerialization"/>
+</testsuite>
\ No newline at end of file
Added: projects/microcontainer/trunk/deployers-client/target/surefire-reports/org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.txt
===================================================================
--- projects/microcontainer/trunk/deployers-client/target/surefire-reports/org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.txt (rev 0)
+++ projects/microcontainer/trunk/deployers-client/target/surefire-reports/org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase.txt 2007-06-27 15:49:46 UTC (rev 63677)
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: org.jboss.test.deployers.deploymentfactory.test.DeploymentFactoryUnitTestCase
+-------------------------------------------------------------------------------
+Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.185 sec
Added: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/DeployersClientTestSuite.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/AbstractDeploymentFactoryTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/DeploymentFactoryTestSuite.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
===================================================================
(Binary files differ)
Property changes on: projects/microcontainer/trunk/deployers-client/target/test-classes/org/jboss/test/deployers/deploymentfactory/test/DeploymentFactoryUnitTestCase.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the jboss-cvs-commits
mailing list