Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

61361: BDE-180 Refactored the system tests to use the maven tomcat plugin, self-contained alf_data/database and tests running in parallel.
   Removed duplicate freemarker jar.  Now uses the one defined in the repo project
   add JCL for Slf4j
   Fixed failing JmxScriptTest by ensuring that "quick" files are loaded from the classpath
   Changed the unpacking of upstream resources to the "prepare-package" phase
   BDE-249 Separate unit tests in a test suite on their own
      Moved the thor unit tests into their own suite
      Moved the enterprise remote-api unit tests into their own suite
      Moved the enterprise repository unit tests into their own suite
      Moved the webclient unit tests into their own suite
      Moved the wdr unit tests into their own suite
      Moved the repository unit tests into their own suite
      Moved the remote-api unit tests into their own suite
   Change null to "" for freemarker template
   Moved META-INF/services so they get added to the jar
   Speeding up the wcmquickstart client tests, reducing the thread.sleeps().
   Fixed failing date/time tests, remove a redundant test and corrected an import
   Added a h2 profile for running against a h2 database


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-02-12 15:23:04 +00:00
parent 72a3ae93d4
commit b5298918ba
7 changed files with 138 additions and 236 deletions

32
pom.xml
View File

@@ -324,6 +324,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>1.5.11</version>
</dependency>
<dependency>
<groupId>org.beanshell</groupId>
<artifactId>bsh</artifactId>
@@ -832,7 +837,7 @@
<profile>
<id>integration-tests</id>
<activation>
<activeByDefault>true</activeByDefault>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
@@ -867,7 +872,12 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<!-- Default configuration, specifying which tests to pass -->
<executions>
<execution>
<id>integration-tests</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<forkMode>always</forkMode>
<enableAssertions>false</enableAssertions> <!-- Failed assertion in AVMServiceTest.testDiffOrder() -->
@@ -875,6 +885,8 @@
<include>**/org/alfresco/Repository*TestSuite.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
@@ -925,7 +937,23 @@
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<!-- There's also surefire configuration in the integration-tests profile -->
<configuration>
<includes>
<include>**/org/alfresco/AllUnitTestsSuite.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->

View File

@@ -0,0 +1,97 @@
package org.alfresco;
import junit.framework.JUnit4TestAdapter;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* All Repository 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();
unitTests(suite);
return suite;
}
static void unitTests(TestSuite suite)
{
suite.addTestSuite(org.alfresco.cmis.PropertyFilterTest.class);
suite.addTestSuite(org.alfresco.encryption.EncryptorTest.class);
suite.addTestSuite(org.alfresco.encryption.KeyStoreKeyProviderTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.filesys.config.ServerConfigurationBeanTest.class));
suite.addTestSuite(org.alfresco.filesys.repo.CIFSContentComparatorTest.class);
suite.addTestSuite(org.alfresco.filesys.repo.rules.ShuffleTest.class);
suite.addTestSuite(org.alfresco.repo.admin.Log4JHierarchyInitTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.cache.DefaultCacheFactoryTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.cache.DefaultSimpleCacheTest.class));
suite.addTestSuite(org.alfresco.repo.cache.lookup.EntityLookupCacheTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.calendar.CalendarHelpersTest.class));
suite.addTestSuite(org.alfresco.repo.dictionary.RepoDictionaryDAOTest.class);
suite.addTestSuite(org.alfresco.repo.forms.processor.node.FieldProcessorTest.class);
suite.addTestSuite(org.alfresco.repo.forms.processor.workflow.TaskFormProcessorTest.class);
suite.addTestSuite(org.alfresco.repo.forms.processor.workflow.WorkflowFormProcessorTest.class);
suite.addTestSuite(org.alfresco.repo.invitation.site.InviteSenderTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.LockUtilsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.mem.LockStoreImplTest.class));
suite.addTestSuite(org.alfresco.repo.module.ModuleDetailsImplTest.class);
suite.addTestSuite(org.alfresco.repo.module.tool.ModuleManagementToolTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.module.tool.WarHelperImplTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.nodelocator.NodeLocatorServiceImplTest.class));
suite.addTestSuite(org.alfresco.repo.policy.MTPolicyComponentTest.class);
suite.addTestSuite(org.alfresco.repo.policy.PolicyComponentTest.class);
suite.addTestSuite(org.alfresco.repo.rendition.RenditionNodeManagerTest.class);
suite.addTestSuite(org.alfresco.repo.rendition.RenditionServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.replication.ReplicationServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.service.StoreRedirectorProxyFactoryTest.class);
suite.addTestSuite(org.alfresco.repo.site.RoleComparatorImplTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.thumbnail.ThumbnailServiceImplParameterTest.class));
suite.addTestSuite(org.alfresco.repo.transfer.ContentChunkerImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.HttpClientTransmitterImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.manifest.TransferManifestTest.class);
suite.addTestSuite(org.alfresco.repo.urlshortening.BitlyUrlShortenerTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.calendar.CalendarRecurrenceHelperTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.calendar.CalendarTimezoneHelperTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TemporalSourceOptionsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TransformationOptionLimitsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TransformationOptionPairTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.tools.RenameUserTest.class));
suite.addTestSuite(org.alfresco.util.DynamicallySizedThreadPoolExecutorTest.class);
suite.addTestSuite(org.alfresco.util.FileNameValidatorTest.class);
suite.addTestSuite(org.alfresco.util.JSONtoFmModelTest.class);
suite.addTestSuite(org.alfresco.util.ModelUtilTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.PropertyMapTest.class));
suite.addTestSuite(org.alfresco.util.ValueProtectingMapTest.class);
suite.addTestSuite(org.alfresco.util.json.ExceptionJsonSerializerTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DbObjectXMLTransformerTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DbPropertyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DefaultComparisonUtilsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DifferenceTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.MultiFileDumperTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.RedundantDbObjectTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.SchemaComparatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.SchemaToXMLTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.ValidatingVisitorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.ValidationResultTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.XMLToSchemaTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.ColumnTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.ForeignKeyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.IndexTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.PrimaryKeyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.SchemaTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.SequenceTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.TableTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.IndexColumnsValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.NameValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.SchemaVersionValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.TypeNameOnlyValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.TemporaryMockOverrideTest.class));
}
}

View File

@@ -47,7 +47,6 @@ public class Repository01TestSuite extends TestSuite
static void tests1(TestSuite suite)
{
suite.addTestSuite(org.alfresco.RepositoryStartStopTest.class);
suite.addTestSuite(org.alfresco.cmis.PropertyFilterTest.class);
}
static void tests2(TestSuite suite)
@@ -62,11 +61,7 @@ public class Repository01TestSuite extends TestSuite
static void tests3(TestSuite suite) // tests="76" time="82.566"
{
suite.addTestSuite(org.alfresco.email.server.EmailServiceImplTest.class);
suite.addTestSuite(org.alfresco.encryption.EncryptorTest.class);
suite.addTestSuite(org.alfresco.encryption.KeyStoreKeyProviderTest.class);
suite.addTestSuite(org.alfresco.filesys.FTPServerTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.filesys.config.ServerConfigurationBeanTest.class));
suite.addTestSuite(org.alfresco.filesys.repo.CIFSContentComparatorTest.class);
suite.addTestSuite(org.alfresco.filesys.repo.CifsIntegrationTest.class);
suite.addTestSuite(org.alfresco.filesys.repo.ContentDiskDriverTest.class);
}
@@ -78,7 +73,6 @@ public class Repository01TestSuite extends TestSuite
static void tests5(TestSuite suite) // tests="19" time="12.852"
{
suite.addTestSuite(org.alfresco.filesys.repo.rules.ShuffleTest.class);
suite.addTestSuite(org.alfresco.jcr.importer.ImportTest.class);
suite.addTestSuite(org.alfresco.jcr.item.Alf1791Test.class);
suite.addTestSuite(org.alfresco.jcr.item.ItemTest.class);
@@ -111,7 +105,6 @@ public class Repository01TestSuite extends TestSuite
{
suite.addTestSuite(org.alfresco.repo.activities.ActivityServiceImplTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.activities.feed.FeedNotifierTest.class));
suite.addTestSuite(org.alfresco.repo.admin.Log4JHierarchyInitTest.class);
suite.addTestSuite(org.alfresco.repo.admin.RepoAdminServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.admin.patch.PatchTest.class);
suite.addTestSuite(org.alfresco.repo.admin.registry.RegistryServiceImplTest.class);
@@ -138,10 +131,6 @@ public class Repository01TestSuite extends TestSuite
static void tests14(TestSuite suite)
{
suite.addTestSuite(org.alfresco.repo.cache.CacheTest.class); // errors if joined with previous tests
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.cache.DefaultCacheFactoryTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.cache.DefaultSimpleCacheTest.class));
suite.addTestSuite(org.alfresco.repo.cache.lookup.EntityLookupCacheTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.calendar.CalendarHelpersTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.calendar.CalendarServiceImplTest.class)); // Can only be run once as "CalendarTestNewTestSite is already in use"
suite.addTestSuite(org.alfresco.repo.coci.CheckOutCheckInServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.configuration.ConfigurableServiceImplTest.class);
@@ -182,7 +171,6 @@ public class Repository01TestSuite extends TestSuite
suite.addTestSuite(org.alfresco.repo.descriptor.DescriptorServiceTest.class);
suite.addTestSuite(org.alfresco.repo.dictionary.DictionaryModelTypeTest.class);
suite.addTestSuite(org.alfresco.repo.dictionary.DictionaryRepositoryBootstrapTest.class);
suite.addTestSuite(org.alfresco.repo.dictionary.RepoDictionaryDAOTest.class);
suite.addTestSuite(org.alfresco.repo.dictionary.types.period.PeriodTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.discussion.DiscussionServiceImplTest.class));
}
@@ -203,17 +191,6 @@ public class Repository01TestSuite extends TestSuite
{
suite.addTestSuite(org.alfresco.repo.forms.FormServiceImplTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.forms.processor.action.ActionFormProcessorTest.class));
suite.addTestSuite(org.alfresco.repo.forms.processor.node.FieldProcessorTest.class);
}
static void tests25(TestSuite suite) // tests="37" time="102.54" - 1 failure SOMETIMES (even if TaskFormProcessorTest is on its own)
{
suite.addTestSuite(org.alfresco.repo.forms.processor.workflow.TaskFormProcessorTest.class);
}
static void tests26(TestSuite suite)
{
suite.addTestSuite(org.alfresco.repo.forms.processor.workflow.WorkflowFormProcessorTest.class);
}
static void tests27(TestSuite suite) //
@@ -230,7 +207,6 @@ public class Repository01TestSuite extends TestSuite
suite.addTestSuite(org.alfresco.repo.importer.FileImporterTest.class);
suite.addTestSuite(org.alfresco.repo.importer.ImporterComponentTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.invitation.InvitationCleanupTest.class));
suite.addTestSuite(org.alfresco.repo.invitation.site.InviteSenderTest.class);
}
static void tests29(TestSuite suite) // tests="12" time="93.965"
@@ -247,8 +223,6 @@ public class Repository01TestSuite extends TestSuite
suite.addTestSuite(org.alfresco.repo.lock.JobLockServiceTest.class);
suite.addTestSuite(org.alfresco.repo.lock.LockBehaviourImplTest.class);
suite.addTestSuite(org.alfresco.repo.lock.LockServiceImplTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.LockUtilsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.mem.LockStoreImplTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.mem.LockStoreImplTxTest.class)); // failed on bamboo
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.lock.mem.LockableAspectInterceptorTest.class));
suite.addTestSuite(org.alfresco.repo.management.JmxDumpUtilTest.class);
@@ -263,9 +237,6 @@ public class Repository01TestSuite extends TestSuite
{
suite.addTestSuite(org.alfresco.repo.module.ComponentsTest.class);
suite.addTestSuite(org.alfresco.repo.module.ModuleComponentHelperTest.class);
suite.addTestSuite(org.alfresco.repo.module.ModuleDetailsImplTest.class);
suite.addTestSuite(org.alfresco.repo.module.tool.ModuleManagementToolTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.module.tool.WarHelperImplTest.class));
suite.addTestSuite(org.alfresco.repo.node.ConcurrentNodeServiceSearchTest.class);
suite.addTestSuite(org.alfresco.repo.node.ConcurrentNodeServiceTest.class); // was null
suite.addTestSuite(org.alfresco.repo.node.FullNodeServiceTest.class);
@@ -306,13 +277,9 @@ public class Repository01TestSuite extends TestSuite
static void tests38(TestSuite suite)
{
suite.addTestSuite(org.alfresco.repo.node.integrity.IncompleteNodeTaggerTest.class);
suite.addTestSuite(org.alfresco.repo.node.integrity.IntegrityEventTest.class);
suite.addTestSuite(org.alfresco.repo.node.integrity.IntegrityTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.nodelocator.NodeLocatorServiceImplTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.oauth1.OAuth1CredentialsStoreServiceTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.oauth2.OAuth2CredentialsStoreServiceTest.class));
suite.addTestSuite(org.alfresco.repo.policy.MTPolicyComponentTest.class);
suite.addTestSuite(org.alfresco.repo.policy.PolicyComponentTest.class);
suite.addTestSuite(org.alfresco.repo.policy.PolicyComponentTransactionTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.preference.PreferenceServiceImplTest.class));
}
@@ -328,8 +295,6 @@ public class Repository01TestSuite extends TestSuite
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.rating.RatingServiceIntegrationTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.remotecredentials.RemoteCredentialsServicesTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.rendition.MultiUserRenditionTest.class));
suite.addTestSuite(org.alfresco.repo.rendition.RenditionNodeManagerTest.class);
suite.addTestSuite(org.alfresco.repo.rendition.RenditionServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.rendition.RenditionServiceIntegrationTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.rendition.RenditionServicePermissionsTest.class));
}
@@ -344,7 +309,6 @@ public class Repository01TestSuite extends TestSuite
{
suite.addTestSuite(org.alfresco.repo.rendition.executer.XSLTFunctionsTest.class); // fails if with previous tests
suite.addTestSuite(org.alfresco.repo.rendition.executer.XSLTRenderingEngineTest.class);
suite.addTestSuite(org.alfresco.repo.replication.ReplicationServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.replication.ReplicationServiceIntegrationTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.rule.MiscellaneousRulesTest.class));
}
@@ -384,8 +348,6 @@ public class Repository01TestSuite extends TestSuite
static void tests49(TestSuite suite) // Not sure this break is needed
{
suite.addTestSuite(org.alfresco.repo.service.StoreRedirectorProxyFactoryTest.class);
suite.addTestSuite(org.alfresco.repo.site.RoleComparatorImplTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.site.SiteServiceImplMoreTest.class));
suite.addTestSuite(org.alfresco.repo.site.SiteServiceImplTest.class);
}
@@ -429,15 +391,12 @@ public class Repository01TestSuite extends TestSuite
{
suite.addTestSuite(org.alfresco.repo.tenant.MultiTNodeServiceInterceptorTest.class);
suite.addTestSuite(org.alfresco.repo.template.XSLTProcessorTest.class); // Moved, was before MultiTDemoTest
suite.addTest(new JUnit4TestAdapter(org.alfresco.repo.thumbnail.ThumbnailServiceImplParameterTest.class));
suite.addTestSuite(org.alfresco.repo.thumbnail.ThumbnailServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.thumbnail.conditions.NodeEligibleForRethumbnailingEvaluatorTest.class);
suite.addTestSuite(org.alfresco.repo.transaction.AlfrescoTransactionSupportTest.class);
suite.addTestSuite(org.alfresco.repo.transaction.RetryingTransactionHelperTest.class);
suite.addTestSuite(org.alfresco.repo.transaction.TransactionAwareSingletonTest.class);
suite.addTestSuite(org.alfresco.repo.transaction.TransactionServiceImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.ContentChunkerImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.HttpClientTransmitterImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.NodeCrawlerTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.RepoTransferReceiverImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.TransferServiceCallbackTest.class);
@@ -445,9 +404,7 @@ public class Repository01TestSuite extends TestSuite
suite.addTestSuite(org.alfresco.repo.transfer.TransferServiceToBeRefactoredTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.TransferVersionCheckerImplTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.manifest.ManifestIntegrationTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.manifest.TransferManifestTest.class);
suite.addTestSuite(org.alfresco.repo.transfer.script.ScriptTransferServiceTest.class);
suite.addTestSuite(org.alfresco.repo.urlshortening.BitlyUrlShortenerTest.class);
}
static void tests58(TestSuite suite)
@@ -470,53 +427,13 @@ public class Repository01TestSuite extends TestSuite
suite.addTest(org.alfresco.repo.workflow.WorkflowTestSuite.suite());
}
static void tests62(TestSuite suite)
{
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.calendar.CalendarRecurrenceHelperTest.class));
}
static void tests63(TestSuite suite) // tests="187" time="364.334"
{
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.calendar.CalendarTimezoneHelperTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TemporalSourceOptionsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TransformationOptionLimitsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.service.cmr.repository.TransformationOptionPairTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.tools.RenameUserTest.class));
suite.addTestSuite(org.alfresco.util.DynamicallySizedThreadPoolExecutorTest.class);
suite.addTestSuite(org.alfresco.util.FileNameValidatorTest.class);
suite.addTestSuite(org.alfresco.util.JSONtoFmModelTest.class);
suite.addTestSuite(org.alfresco.util.ModelUtilTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.PropertyMapTest.class));
suite.addTestSuite(org.alfresco.util.ValueProtectingMapTest.class);
suite.addTestSuite(org.alfresco.util.json.ExceptionJsonSerializerTest.class);
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DbObjectXMLTransformerTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DbPropertyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DbToXMLTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DefaultComparisonUtilsTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.DifferenceTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.ExportDbTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.MultiFileDumperTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.RedundantDbObjectTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.SchemaComparatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.SchemaReferenceFileTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.SchemaToXMLTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.ValidatingVisitorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.ValidationResultTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.XMLToSchemaTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.ColumnTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.ForeignKeyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.IndexTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.PrimaryKeyTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.SchemaTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.SequenceTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.model.TableTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.IndexColumnsValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.NameValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.SchemaVersionValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.schemacomp.validator.TypeNameOnlyValidatorTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.AlfrescoPersonTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.ApplicationContextInitTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.TemporaryMockOverrideTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.TemporaryNodesTest.class));
suite.addTest(new JUnit4TestAdapter(org.alfresco.util.test.junitrules.TemporarySitesTest.class));
}

View File

@@ -1,37 +0,0 @@
/*
* Copyright (C) 2005-2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at your option) any later version.
*
* Alfresco 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 Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* See {@link RepositoryMisc01TestSuite}
*
* @Author Alan Davis
*/
public class Repository25TestSuite extends TestSuite
{
public static Test suite()
{
TestSuite suite = new TestSuite();
Repository01TestSuite.tests25(suite);
return suite;
}
}

View File

@@ -1,37 +0,0 @@
/*
* Copyright (C) 2005-2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at your option) any later version.
*
* Alfresco 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 Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* See {@link RepositoryMisc01TestSuite}
*
* @Author Alan Davis
*/
public class Repository26TestSuite extends TestSuite
{
public static Test suite()
{
TestSuite suite = new TestSuite();
Repository01TestSuite.tests26(suite);
return suite;
}
}

View File

@@ -1,37 +0,0 @@
/*
* Copyright (C) 2005-2014 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco 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 3 of the License, or
* (at your option) any later version.
*
* Alfresco 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 Alfresco. If not, see <http://www.gnu.org/licenses/>.
*/
package org.alfresco;
import junit.framework.Test;
import junit.framework.TestSuite;
/**
* See {@link RepositoryMisc01TestSuite}
*
* @Author Alan Davis
*/
public class Repository62TestSuite extends TestSuite
{
public static Test suite()
{
TestSuite suite = new TestSuite();
Repository01TestSuite.tests62(suite);
return suite;
}
}

View File

@@ -21,7 +21,6 @@ package org.alfresco.util.test.junitrules;
import java.io.File;
import java.io.Serializable;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -326,7 +325,7 @@ public class TemporaryNodes extends ExternalResource
nodeService.addAspect(result, ContentModel.ASPECT_VERSIONABLE, null);
}
File quickFile = loadQuickFile(getQuickResource(mimetype));
File quickFile = AbstractContentTransformerTest.loadNamedQuickTestFile(getQuickResource(mimetype));
ContentService contentService = appContextRule.getApplicationContext().getBean("contentService", ContentService.class);
ContentWriter writer = contentService.getWriter(result, ContentModel.PROP_CONTENT, true);
@@ -370,7 +369,7 @@ public class TemporaryNodes extends ExternalResource
{
final NodeRef result = createNode(quickFileName, parentNode, ContentModel.TYPE_CONTENT);
File quickFile = loadQuickFile(quickFileName);
File quickFile = AbstractContentTransformerTest.loadNamedQuickTestFile(quickFileName);
ContentService contentService = appContextRule.getApplicationContext().getBean("contentService", ContentService.class);
ContentWriter writer = contentService.getWriter(result, ContentModel.PROP_CONTENT, true);
@@ -421,32 +420,4 @@ public class TemporaryNodes extends ExternalResource
return "quick." + extension;
}
/**
* Gets the resource name for the named Alfresco 'quick file'.
*
* @param quickFileName e.g. "quickGEO.jpg"
* @return the resource path e.g. "quick/quickGEO.jpg"
*/
private String getNamedQuickResource(String quickFileName)
{
return "quick/" + quickFileName;
}
private File loadQuickFile(String quickfile)
{
final String quickResource = getNamedQuickResource(quickfile);
URL url = AbstractContentTransformerTest.class.getClassLoader().getResource(quickResource);
if (url == null)
{
throw new UnsupportedOperationException("No 'quick' file for file: " + quickResource);
}
File file = new File(url.getFile());
if (!file.exists())
{
throw new UnsupportedOperationException("No 'quick' file for file: " + quickResource);
}
return file;
}
}