mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2206 (Dynamic test suite configuration)
+review RM @rwetherall git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@104021 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,40 +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.module.org_alfresco_module_rm.capability.declarative.condition;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
|
||||
/**
|
||||
* capability.declarative.condition unit test suite
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
* @since 2.3
|
||||
*/
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses(
|
||||
{
|
||||
HoldCapabilityConditionUnitTest.class,
|
||||
FillingOnHoldContainerCapabilityConditionUnitTest.class,
|
||||
FrozenCapabilityConditionUnitTest.class
|
||||
})
|
||||
public class CapabilityDeclarativeConditionSuite
|
||||
{
|
||||
}
|
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2005-2015 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.module.org_alfresco_module_rm.classification;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
|
||||
/**
|
||||
* @author Neil Mc Erlean
|
||||
* @since 3.0
|
||||
*/
|
||||
@RunWith(Suite.class)
|
||||
@Suite.SuiteClasses(
|
||||
{
|
||||
ClassificationLevelConstraintUnitTest.class,
|
||||
ClassificationLevelManagerUnitTest.class,
|
||||
ClassificationReasonManagerUnitTest.class,
|
||||
ClassificationServiceDAOUnitTest.class,
|
||||
ClassificationServiceImplUnitTest.class,
|
||||
SecurityClearanceServiceImplUnitTest.class
|
||||
})
|
||||
public class ClassificationSuite
|
||||
{
|
||||
// Intentionally empty.
|
||||
}
|
@@ -32,7 +32,7 @@ import org.junit.Test;
|
||||
*
|
||||
* @author tpage
|
||||
*/
|
||||
public class ClearanceLevelManagerTest
|
||||
public class ClearanceLevelManagerUnitTest
|
||||
{
|
||||
static final ClassificationLevel TOP_SECRET = new ClassificationLevel("TS", "Top Secret Classification");
|
||||
static final ClassificationLevel SECRET = new ClassificationLevel("S", "Secret Classification");
|
@@ -1,39 +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.module.org_alfresco_module_rm.patch.v22;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
|
||||
/**
|
||||
* patch.v22 unit test suite
|
||||
*
|
||||
* @author Roy Wetherall
|
||||
* @since 2.3
|
||||
*/
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses(
|
||||
{
|
||||
RMv22RemoveInPlaceRolesFromAllPatchUnitTest.class,
|
||||
RMv22CapabilityPatchUnitTest.class
|
||||
})
|
||||
public class PatchV22Suite
|
||||
{
|
||||
}
|
@@ -46,7 +46,7 @@ import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||
* @author Tuna Aksoy
|
||||
* @since 2.3
|
||||
*/
|
||||
public class RecordedVersionConfigGetTest extends BaseRecordedVersionConfigTest
|
||||
public class RecordedVersionConfigGetUnitTest extends BaseRecordedVersionConfigTest
|
||||
{
|
||||
/** RecordedVersionConfigGet webscript instance */
|
||||
protected @InjectMocks RecordedVersionConfigGet webScript;
|
@@ -39,7 +39,7 @@ import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||
* @author Tuna Aksoy
|
||||
* @since 2.3
|
||||
*/
|
||||
public class RecordedVersionConfigPostTest extends BaseRecordedVersionConfigTest
|
||||
public class RecordedVersionConfigPostUnitTest extends BaseRecordedVersionConfigTest
|
||||
{
|
||||
/** RecordedVersionConfigPost webscript instance */
|
||||
protected @InjectMocks RecordedVersionConfigPost webScript;
|
@@ -46,7 +46,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
* @author Tuna Aksoy
|
||||
* @since 3.0
|
||||
*/
|
||||
public class ClassificationLevelsGetTest extends BaseWebScriptUnitTest
|
||||
public class ClassificationLevelsGetUnitTest extends BaseWebScriptUnitTest
|
||||
{
|
||||
/** Classpath location of ftl template for web script */
|
||||
private static final String WEBSCRIPT_TEMPLATE = WEBSCRIPT_ROOT_RM + "classification/classificationlevels.get.json.ftl";
|
@@ -50,7 +50,7 @@ import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||
* @author Tuna Aksoy
|
||||
* @since 3.0
|
||||
*/
|
||||
public class ClassifyContentPostTest extends BaseWebScriptUnitTest
|
||||
public class ClassifyContentPostUnitTest extends BaseWebScriptUnitTest
|
||||
{
|
||||
/** Classpath location of ftl template for web script */
|
||||
private static final String WEBSCRIPT_TEMPLATE = WEBSCRIPT_ROOT_RM + "classification/classifycontent.post.json.ftl";
|
@@ -46,7 +46,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
*
|
||||
* @author tpage
|
||||
*/
|
||||
public class ReasonsGetTest extends BaseWebScriptUnitTest
|
||||
public class ReasonsGetUnitTest extends BaseWebScriptUnitTest
|
||||
{
|
||||
/** Classpath location of ftl template for web script */
|
||||
private static final String WEBSCRIPT_TEMPLATE = WEBSCRIPT_ROOT_RM + "classification/reasons.get.json.ftl";
|
@@ -54,7 +54,7 @@ import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||
* @author Tuna Aksoy
|
||||
* @since 3.0
|
||||
*/
|
||||
public class UserSecurityClearanceGetTest extends BaseWebScriptUnitTest
|
||||
public class UserSecurityClearanceGetUnitTest extends BaseWebScriptUnitTest
|
||||
{
|
||||
/** Classpath location of ftl template for web script */
|
||||
private static final String WEBSCRIPT_TEMPLATE = WEBSCRIPT_ROOT_RM + "classification/usersecurityclearance.get.json.ftl";
|
@@ -23,7 +23,7 @@ import org.mockito.Spy;
|
||||
import org.springframework.extensions.webscripts.DeclarativeWebScript;
|
||||
import org.springframework.extensions.webscripts.WebScriptException;
|
||||
|
||||
public class UserSecurityClearancePutTest extends BaseWebScriptUnitTest
|
||||
public class UserSecurityClearancePutUnitTest extends BaseWebScriptUnitTest
|
||||
{
|
||||
/**
|
||||
* Classpath location of ftl template for web script
|
@@ -18,40 +18,9 @@
|
||||
*/
|
||||
package org.alfresco.module.org_alfresco_module_rm.test;
|
||||
|
||||
import org.alfresco.module.org_alfresco_module_rm.action.dm.DeclareAsVersionRecordActionUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.action.impl.FileReportActionUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.action.impl.UnlinkFromActionUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.bootstrap.BootstrapImporterModuleComponentUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.bootstrap.RecordContributorsGroupBootstrapComponentUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.capability.RMEntryVoterUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.capability.declarative.condition.CapabilityDeclarativeConditionSuite;
|
||||
import org.alfresco.module.org_alfresco_module_rm.capability.impl.EditNonRecordsMetadataCapabilityUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.classification.ClassificationSuite;
|
||||
import org.alfresco.module.org_alfresco_module_rm.forms.RecordsManagementTypeFormFilterUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.hold.HoldServiceImplUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.job.DispositionLifecycleJobExecuterUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator.FrozenEvaluatorUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.jscript.app.evaluator.TransferEvaluatorUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.model.compatibility.DictionaryBootstrapPostProcessorUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.patch.v22.PatchV22Suite;
|
||||
import org.alfresco.module.org_alfresco_module_rm.record.RecordMetadataBootstrapUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.record.RecordServiceImplUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.recorded.version.config.RecordedVersionConfigGetTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.recorded.version.config.RecordedVersionConfigPostTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.classification.ClassificationLevelsGetTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.classification.ClassifyContentPostTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.classification.ReasonsGetTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.classification.UserSecurityClearanceGetTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.classification.UserSecurityClearancePutTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.hold.HoldPostUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.hold.HoldPutUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.script.hold.HoldsGetUnitTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.test.util.ExceptionUtilsUsageExamplesTest;
|
||||
import org.alfresco.module.org_alfresco_module_rm.version.RecordableVersionServiceImplUnitTest;
|
||||
import org.alfresco.repo.action.parameter.DateParameterProcessorUnitTest;
|
||||
import org.junit.extensions.cpsuite.ClasspathSuite;
|
||||
import org.junit.extensions.cpsuite.ClasspathSuite.ClassnameFilters;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.Suite;
|
||||
import org.junit.runners.Suite.SuiteClasses;
|
||||
|
||||
/**
|
||||
* All unit test suite.
|
||||
@@ -59,61 +28,13 @@ import org.junit.runners.Suite.SuiteClasses;
|
||||
* @author Roy Wetherall
|
||||
* @since 2.2
|
||||
*/
|
||||
@RunWith(Suite.class)
|
||||
@SuiteClasses(
|
||||
{
|
||||
RecordMetadataBootstrapUnitTest.class,
|
||||
RecordsManagementTypeFormFilterUnitTest.class,
|
||||
DispositionLifecycleJobExecuterUnitTest.class,
|
||||
DictionaryBootstrapPostProcessorUnitTest.class,
|
||||
DateParameterProcessorUnitTest.class,
|
||||
RMEntryVoterUnitTest.class,
|
||||
|
||||
// services
|
||||
RecordServiceImplUnitTest.class,
|
||||
HoldServiceImplUnitTest.class,
|
||||
// FilePlanPermissionServiceImplUnitTest.class, // removed because test unreliable on Bamboo
|
||||
RecordableVersionServiceImplUnitTest.class,
|
||||
|
||||
// evaluators
|
||||
TransferEvaluatorUnitTest.class,
|
||||
FrozenEvaluatorUnitTest.class,
|
||||
|
||||
// capabilities
|
||||
EditNonRecordsMetadataCapabilityUnitTest.class,
|
||||
|
||||
// web scripts
|
||||
HoldsGetUnitTest.class,
|
||||
HoldPostUnitTest.class,
|
||||
HoldPutUnitTest.class,
|
||||
ReasonsGetTest.class,
|
||||
ClassificationLevelsGetTest.class,
|
||||
ClassifyContentPostTest.class,
|
||||
UserSecurityClearanceGetTest.class,
|
||||
UserSecurityClearancePutTest.class,
|
||||
|
||||
// action implementations
|
||||
FileReportActionUnitTest.class,
|
||||
UnlinkFromActionUnitTest.class,
|
||||
DeclareAsVersionRecordActionUnitTest.class,
|
||||
|
||||
// recorded version config
|
||||
RecordedVersionConfigGetTest.class,
|
||||
RecordedVersionConfigPostTest.class,
|
||||
|
||||
// bootstrap
|
||||
BootstrapImporterModuleComponentUnitTest.class,
|
||||
RecordContributorsGroupBootstrapComponentUnitTest.class,
|
||||
|
||||
// suites by package
|
||||
CapabilityDeclarativeConditionSuite.class,
|
||||
PatchV22Suite.class,
|
||||
ClassificationSuite.class,
|
||||
|
||||
// Utilities
|
||||
ExceptionUtilsUsageExamplesTest.class
|
||||
|
||||
@RunWith(ClasspathSuite.class)
|
||||
@ClassnameFilters({
|
||||
// Execute all tests classes ending with "UnitTest"
|
||||
".*UnitTest"
|
||||
// Put the test classes you want to exclude here
|
||||
,"!.*FilePlanPermissionServiceImplUnitTest"
|
||||
})
|
||||
public class AllUnitTestSuite
|
||||
{
|
||||
}
|
||||
}
|
@@ -33,7 +33,7 @@ import static org.junit.Assert.*;
|
||||
* @since 3.0
|
||||
* @author Neil Mc Erlean
|
||||
*/
|
||||
public class ExceptionUtilsUsageExamplesTest
|
||||
public class ExceptionUtilsUsageExamplesUnitTest
|
||||
{
|
||||
private String goodMethod() { return "hello"; }
|
||||
|
@@ -27,7 +27,7 @@ import org.junit.Test;
|
||||
*
|
||||
* @author tpage
|
||||
*/
|
||||
public class RMParameterCheckTest
|
||||
public class RMParameterCheckUnitTest
|
||||
{
|
||||
@Test
|
||||
public void checkNotBlank()
|
Reference in New Issue
Block a user