[jboss-cvs] JBossAS SVN: r67232 - in projects/microcontainer/trunk: container/src/tests/org/jboss/test/metadata/retrieval/test and 5 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Nov 18 10:26:33 EST 2007
Author: alesj
Date: 2007-11-18 10:26:32 -0500 (Sun, 18 Nov 2007)
New Revision: 67232
Added:
projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/EmptyTestCase.java
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/DeployersMainTestSuite.java
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/support/
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerCheckCompleteTestCase.java
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerIncompleteDeploymentsTestCase.java
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerSingleDeploymentTestCase.java
projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/TerminateStructureTestCase.java
projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/file/test/FileMatcherTestCase.java
Modified:
projects/microcontainer/trunk/container/src/main/org/jboss/metadata/spi/retrieval/ValidTime.java
projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/RetrievalTestSuite.java
projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/DeployersImplTestSuite.java
projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/VFSStructureTestSuite.java
Log:
Missing tests - 187, 188, 218, FileMatcher, terminate structure deployer notion.
Modified: projects/microcontainer/trunk/container/src/main/org/jboss/metadata/spi/retrieval/ValidTime.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/metadata/spi/retrieval/ValidTime.java 2007-11-18 15:00:47 UTC (rev 67231)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/metadata/spi/retrieval/ValidTime.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -22,6 +22,7 @@
package org.jboss.metadata.spi.retrieval;
import java.util.concurrent.atomic.AtomicLong;
+import java.io.Serializable;
/**
* ValidTime.
@@ -29,7 +30,7 @@
* @author <a href="adrian at jboss.com">Adrian Brock</a>
* @version $Revision$
*/
-public class ValidTime
+public class ValidTime implements Serializable
{
/** The serialVersionUID */
private static final long serialVersionUID = 1075815265759870744L;
Added: projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/EmptyTestCase.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/EmptyTestCase.java (rev 0)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/EmptyTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,48 @@
+/*
+* 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.metadata.retrieval.test;
+
+import org.jboss.test.metadata.AbstractMetaDataTest;
+
+/**
+ * EmptyTestCase.
+ * Tests isEmpty and scope.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class EmptyTestCase extends AbstractMetaDataTest
+{
+ public EmptyTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testEmpty() throws Exception
+ {
+ // todo
+ }
+
+ public void testScopedRetrieval() throws Exception
+ {
+ // todo
+ }
+}
Modified: projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/RetrievalTestSuite.java
===================================================================
--- projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/RetrievalTestSuite.java 2007-11-18 15:00:47 UTC (rev 67231)
+++ projects/microcontainer/trunk/container/src/tests/org/jboss/test/metadata/retrieval/test/RetrievalTestSuite.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -46,7 +46,8 @@
suite.addTest(new TestSuite(SimpleUnitTestCase.class));
suite.addTest(new TestSuite(BasicUnitTestCase.class));
suite.addTest(new TestSuite(CummulativeUnitTestCase.class));
-
+ suite.addTest(new TestSuite(EmptyTestCase.class));
+
return suite;
}
}
Modified: projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/DeployersImplTestSuite.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/DeployersImplTestSuite.java 2007-11-18 15:00:47 UTC (rev 67231)
+++ projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/DeployersImplTestSuite.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -25,6 +25,7 @@
import org.jboss.test.deployers.deployer.DeployersDeployerTestSuite;
import org.jboss.test.deployers.managed.DeployersManagedTestSuite;
import org.jboss.test.deployers.scope.DeployersScopeTestSuite;
+import org.jboss.test.deployers.main.DeployersMainTestSuite;
import junit.framework.Test;
import junit.framework.TestSuite;
@@ -51,6 +52,7 @@
suite.addTest(DeployersManagedTestSuite.suite());
suite.addTest(DeployersClassLoadingTestSuite.suite());
suite.addTest(DeployersScopeTestSuite.suite());
+ suite.addTest(DeployersMainTestSuite.suite());
return suite;
}
Added: projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/DeployersMainTestSuite.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/DeployersMainTestSuite.java (rev 0)
+++ projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/DeployersMainTestSuite.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,53 @@
+/*
+* 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.main;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import junit.textui.TestRunner;
+import org.jboss.test.deployers.main.test.DeployerCheckCompleteTestCase;
+import org.jboss.test.deployers.main.test.DeployerSingleDeploymentTestCase;
+import org.jboss.test.deployers.main.test.DeployerIncompleteDeploymentsTestCase;
+
+/**
+ * Deployers Main Test Suite.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class DeployersMainTestSuite extends TestSuite
+{
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("Deployers Main Tests");
+
+ suite.addTest(DeployerSingleDeploymentTestCase.suite());
+ suite.addTest(DeployerCheckCompleteTestCase.suite());
+ suite.addTest(DeployerIncompleteDeploymentsTestCase.suite());
+
+ return suite;
+ }
+}
Added: projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerCheckCompleteTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerCheckCompleteTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerCheckCompleteTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,48 @@
+/*
+* 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.main.test;
+
+import org.jboss.test.deployers.AbstractDeployerTest;
+import junit.framework.Test;
+
+/**
+ * Check complete deployment test case.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class DeployerCheckCompleteTestCase extends AbstractDeployerTest
+{
+ public DeployerCheckCompleteTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(DeployerCheckCompleteTestCase.class);
+ }
+
+ public void testCheckComplete() throws Exception
+ {
+ // todo
+ }
+}
Added: projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerIncompleteDeploymentsTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerIncompleteDeploymentsTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerIncompleteDeploymentsTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,48 @@
+/*
+* 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.main.test;
+
+import org.jboss.test.deployers.AbstractDeployerTest;
+import junit.framework.Test;
+
+/**
+ * Incomplete deployments API test case.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class DeployerIncompleteDeploymentsTestCase extends AbstractDeployerTest
+{
+ public DeployerIncompleteDeploymentsTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(DeployerIncompleteDeploymentsTestCase.class);
+ }
+
+ public void testMessage() throws Exception
+ {
+ // todo
+ }
+}
Added: projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerSingleDeploymentTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerSingleDeploymentTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-impl/src/tests/org/jboss/test/deployers/main/test/DeployerSingleDeploymentTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,53 @@
+/*
+* 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.main.test;
+
+import org.jboss.test.deployers.AbstractDeployerTest;
+import junit.framework.Test;
+
+/**
+ * Single deployment API test case.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class DeployerSingleDeploymentTestCase extends AbstractDeployerTest
+{
+ public DeployerSingleDeploymentTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(DeployerSingleDeploymentTestCase.class);
+ }
+
+ public void testSingleDeployment() throws Exception
+ {
+ // todo
+ }
+
+ public void testThreadUsage() throws Exception
+ {
+ // todo
+ }
+}
Added: projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/TerminateStructureTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/TerminateStructureTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/TerminateStructureTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,54 @@
+/*
+* 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.vfs.structure;
+
+import org.jboss.deployers.vfs.spi.structure.VFSDeploymentContext;
+import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import junit.framework.Test;
+
+/**
+ * Terminate test case.
+ *
+ * @author <a href="mailto:ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TerminateStructureTestCase extends AbstractStructureTest
+{
+ public TerminateStructureTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(TerminateStructureTestCase.class);
+ }
+
+ public void testTerminate() throws Exception
+ {
+ // todo
+ }
+
+ protected VFSDeploymentContext determineStructure(VFSDeployment deployment) throws Exception
+ {
+ throw new UnsupportedOperationException("No use case.");
+ }
+}
Modified: projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/VFSStructureTestSuite.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/VFSStructureTestSuite.java 2007-11-18 15:00:47 UTC (rev 67231)
+++ projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/VFSStructureTestSuite.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -30,6 +30,7 @@
import org.jboss.test.deployers.vfs.structure.file.test.CombinedFileStructureUnitTestCase;
import org.jboss.test.deployers.vfs.structure.file.test.ConfiguredSuffixFileStructureUnitTestCase;
import org.jboss.test.deployers.vfs.structure.file.test.FileStructureUnitTestCase;
+import org.jboss.test.deployers.vfs.structure.file.test.FileMatcherTestCase;
import org.jboss.test.deployers.vfs.structure.jar.test.CombinedJARStructureUnitTestCase;
import org.jboss.test.deployers.vfs.structure.jar.test.ConfiguredSuffixJARStructureUnitTestCase;
import org.jboss.test.deployers.vfs.structure.jar.test.JARStructureUnitTestCase;
@@ -58,12 +59,14 @@
suite.addTest(WARStructureUnitTestCase.suite());
suite.addTest(ConfiguredSuffixFileStructureUnitTestCase.suite());
suite.addTest(FileStructureUnitTestCase.suite());
+ suite.addTest(FileMatcherTestCase.suite());
suite.addTest(DeclaredStructureUnitTestCase.suite());
suite.addTest(EARStructureUnitTestCase.suite());
suite.addTest(CombinedJARStructureUnitTestCase.suite());
suite.addTest(CombinedWARStructureUnitTestCase.suite());
suite.addTest(CombinedFileStructureUnitTestCase.suite());
-
+ suite.addTest(TerminateStructureTestCase.suite());
+
return suite;
}
}
Added: projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/file/test/FileMatcherTestCase.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/file/test/FileMatcherTestCase.java (rev 0)
+++ projects/microcontainer/trunk/deployers-vfs/src/tests/org/jboss/test/deployers/vfs/structure/file/test/FileMatcherTestCase.java 2007-11-18 15:26:32 UTC (rev 67232)
@@ -0,0 +1,49 @@
+/*
+* 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.vfs.structure.file.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.jboss.test.BaseTestCase;
+
+/**
+ * FileMatcherTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class FileMatcherTestCase extends BaseTestCase
+{
+ public static Test suite()
+ {
+ return new TestSuite(FileMatcherTestCase.class);
+ }
+
+ public FileMatcherTestCase(String name)
+ {
+ super(name);
+ }
+
+ public void testMatcher() throws Throwable
+ {
+ // todo
+ }
+}
More information about the jboss-cvs-commits
mailing list