From 5871dabbe6c34e53b977e438c9645588bcda5de9 Mon Sep 17 00:00:00 2001 From: Tuna Aksoy Date: Thu, 6 Dec 2012 10:09:50 +0000 Subject: [PATCH] Added CapabilityServiceImplTest to the ServicesTestSuite git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@44407 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../test/ServicesTestSuite.java | 8 ++- .../CapabilityServiceImplTest.java} | 56 ++++++++++++++++++- 2 files changed, 59 insertions(+), 5 deletions(-) rename rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/{capabilities/CapabilityServiceTest.java => service/CapabilityServiceImplTest.java} (80%) diff --git a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/ServicesTestSuite.java b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/ServicesTestSuite.java index cd48d44c8a..08dbfc4399 100644 --- a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/ServicesTestSuite.java +++ b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/ServicesTestSuite.java @@ -21,6 +21,7 @@ package org.alfresco.module.org_alfresco_module_rm.test; import junit.framework.Test; import junit.framework.TestSuite; +import org.alfresco.module.org_alfresco_module_rm.test.service.CapabilityServiceImplTest; import org.alfresco.module.org_alfresco_module_rm.test.service.DataSetServiceImplTest; import org.alfresco.module.org_alfresco_module_rm.test.service.DispositionServiceImplTest; import org.alfresco.module.org_alfresco_module_rm.test.service.ExtendedSecurityServiceImplTest; @@ -37,17 +38,17 @@ import org.alfresco.module.org_alfresco_module_rm.test.service.VitalRecordServic /** * RM test suite - * + * * @author Roy Wetherall */ public class ServicesTestSuite extends TestSuite { /** * Creates the test suite - * + * * @return the test suite */ - public static Test suite() + public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(ExtendedSecurityServiceImplTest.class); @@ -64,6 +65,7 @@ public class ServicesTestSuite extends TestSuite suite.addTestSuite(DataSetServiceImplTest.class); suite.addTestSuite(FreezeServiceImplTest.class); suite.addTestSuite(RecordServiceImplTest.class); + suite.addTestSuite(CapabilityServiceImplTest.class); return suite; } } diff --git a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/capabilities/CapabilityServiceTest.java b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/service/CapabilityServiceImplTest.java similarity index 80% rename from rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/capabilities/CapabilityServiceTest.java rename to rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/service/CapabilityServiceImplTest.java index 66b3deb14c..6a65821f94 100644 --- a/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/capabilities/CapabilityServiceTest.java +++ b/rm-server/test/java/org/alfresco/module/org_alfresco_module_rm/test/service/CapabilityServiceImplTest.java @@ -16,7 +16,7 @@ * You should have received a copy of the GNU Lesser General Public License * along with Alfresco. If not, see . */ -package org.alfresco.module.org_alfresco_module_rm.test.capabilities; +package org.alfresco.module.org_alfresco_module_rm.test.service; import java.util.List; @@ -32,8 +32,60 @@ import org.alfresco.module.org_alfresco_module_rm.test.util.BaseRMTestCase; * @author Tuna Aksoy * @since 2.1 */ -public class CapabilityServiceTest extends BaseRMTestCase +public class CapabilityServiceImplTest extends BaseRMTestCase { + public void testGetCapability() throws Exception + { + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + // FIXME + return null; + } + }); + } + + public void testGetCapabilities() throws Exception + { + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + // FIXME + return null; + } + }); + } + + public void testGetCapabilityAccessState() throws Exception + { + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + // FIXME + return null; + } + }); + } + + public void testGetCapabilitiesAccessState() throws Exception + { + doTestInTransaction(new Test() + { + @Override + public Void run() throws Exception + { + // FIXME + return null; + } + }); + } + public void testGetAddRemoveGroups() throws Exception { doTestInTransaction(new Test()