diff --git a/pom.xml b/pom.xml index 1baf652a9d..1088c8cdf3 100644 --- a/pom.xml +++ b/pom.xml @@ -257,41 +257,13 @@ - - - org.codehaus.mojo - sql-maven-plugin - - - wipe-database - process-test-resources - - execute - - - drop database if exists alfresco - - - - create-database - process-test-resources - - execute - - - create database alfresco - - - - - maven-dependency-plugin fetch-log4j-config - generate-resources + prepare-package unpack @@ -355,6 +327,20 @@ prepare-package + + + maven-surefire-plugin + + + default-test + + + + **/org/alfresco/web/AllUnitTestsSuite.java + + + + @@ -451,6 +437,61 @@ + + integration-tests + + false + + + + + + org.codehaus.mojo + sql-maven-plugin + + + wipe-database + process-test-resources + + execute + + + drop database if exists alfresco + + + + create-database + process-test-resources + + execute + + + create database alfresco + + + + + + maven-surefire-plugin + + + integration-tests + + test + + + + **/org/alfresco/web/app/servlet/DefaultRemoteUserMapperTest.java + **/org/alfresco/web/app/servlet/KerberosRemoteUserMapperTest.java + **/org/alfresco/web/forms/FormsTest.java + + + + + + + + m2e diff --git a/source/test-java/org/alfresco/web/AllUnitTestsSuite.java b/source/test-java/org/alfresco/web/AllUnitTestsSuite.java new file mode 100644 index 0000000000..c72c175d69 --- /dev/null +++ b/source/test-java/org/alfresco/web/AllUnitTestsSuite.java @@ -0,0 +1,35 @@ +package org.alfresco.web; + +import junit.framework.JUnit4TestAdapter; +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.alfresco.web.app.ResourceBundleWrapperTest; +import org.alfresco.web.app.servlet.AuthenticationFilterTest; +import org.alfresco.web.config.WebClientConfigTest; +import org.alfresco.web.forms.XMLUtilTest; +import org.alfresco.web.forms.xforms.Schema2XFormsTest; + +/** + * All Alfresco web client project UNIT test classes should be added to this test suite. + */ +public class AllUnitTestsSuite extends TestSuite +{ + /** + * Creates the test suite + * + * @return the test suite + */ + public static Test suite() + { + TestSuite suite = new TestSuite(); + + suite.addTest(new JUnit4TestAdapter(AuthenticationFilterTest.class)); + suite.addTestSuite(ResourceBundleWrapperTest.class); + suite.addTestSuite(WebClientConfigTest.class); + suite.addTestSuite(Schema2XFormsTest.class); + suite.addTestSuite(XMLUtilTest.class); + return suite; + } + +}