diff --git a/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryForObjectCustom.java b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryForObjectCustom.java new file mode 100644 index 0000000000..714ce179bd --- /dev/null +++ b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryForObjectCustom.java @@ -0,0 +1,37 @@ +/* + * 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 . + */ + +package org.alfresco.opencmis.tck.tests.query; + +import org.apache.chemistry.opencmis.tck.tests.query.QueryForObject; + +/** + * Fix for MNT-14432 - skip deletion of test data + * + * @author Andreea Dragoi + * @since 4.2.5 + */ + +public class QueryForObjectCustom extends QueryForObject +{ + protected void deleteTestFolder() + { + // do nothing - skip deletion of test folder + } +} diff --git a/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryInFolderTestCustom.java b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryInFolderTestCustom.java new file mode 100644 index 0000000000..d0ead205b5 --- /dev/null +++ b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryInFolderTestCustom.java @@ -0,0 +1,37 @@ +/* + * 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 . + */ + +package org.alfresco.opencmis.tck.tests.query; + +import org.apache.chemistry.opencmis.tck.tests.query.QueryInFolderTest; + +/** + * Fix for MNT-14432 - skip deletion of test data + * + * @author Andreea Dragoi + * @since 4.2.5 + */ + +public class QueryInFolderTestCustom extends QueryInFolderTest +{ + protected void deleteTestFolder() + { + // do nothing - skip deletion of test folder + } +} diff --git a/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryLikeTestCustom.java b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryLikeTestCustom.java new file mode 100644 index 0000000000..7090c708ea --- /dev/null +++ b/source/test-java/org/alfresco/opencmis/tck/tests/query/QueryLikeTestCustom.java @@ -0,0 +1,37 @@ +/* + * 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 . + */ + +package org.alfresco.opencmis.tck.tests.query; + +import org.apache.chemistry.opencmis.tck.tests.query.QueryLikeTest; + +/** + * Fix for MNT-14432 - skip deletion of test data + * + * @author Andreea Dragoi + * @since 4.2.5 + */ + +public class QueryLikeTestCustom extends QueryLikeTest +{ + protected void deleteTestFolder() + { + // do nothing - skip deletion of test folder + } +} diff --git a/source/test-java/org/alfresco/rest/api/tests/AbstractEnterpriseOpenCMIS11TCKTest.java b/source/test-java/org/alfresco/rest/api/tests/AbstractEnterpriseOpenCMIS11TCKTest.java index 918e0628f5..158f9a6a2d 100644 --- a/source/test-java/org/alfresco/rest/api/tests/AbstractEnterpriseOpenCMIS11TCKTest.java +++ b/source/test-java/org/alfresco/rest/api/tests/AbstractEnterpriseOpenCMIS11TCKTest.java @@ -2,6 +2,9 @@ package org.alfresco.rest.api.tests; import java.util.Map; +import org.alfresco.opencmis.tck.tests.query.QueryForObjectCustom; +import org.alfresco.opencmis.tck.tests.query.QueryInFolderTestCustom; +import org.alfresco.opencmis.tck.tests.query.QueryLikeTestCustom; import org.apache.chemistry.opencmis.tck.impl.AbstractSessionTestGroup; import org.apache.chemistry.opencmis.tck.impl.JUnitHelper; import org.apache.chemistry.opencmis.tck.tests.basics.BasicsTestGroup; @@ -23,9 +26,6 @@ import org.apache.chemistry.opencmis.tck.tests.crud.SetAndDeleteContentTest; import org.apache.chemistry.opencmis.tck.tests.crud.UpdateSmokeTest; import org.apache.chemistry.opencmis.tck.tests.filing.FilingTestGroup; import org.apache.chemistry.opencmis.tck.tests.query.ContentChangesSmokeTest; -import org.apache.chemistry.opencmis.tck.tests.query.QueryForObject; -import org.apache.chemistry.opencmis.tck.tests.query.QueryInFolderTest; -import org.apache.chemistry.opencmis.tck.tests.query.QueryLikeTest; import org.apache.chemistry.opencmis.tck.tests.query.QuerySmokeTest; import org.apache.chemistry.opencmis.tck.tests.versioning.VersionDeleteTest; import org.apache.chemistry.opencmis.tck.tests.versioning.VersioningSmokeTest; @@ -138,9 +138,9 @@ public abstract class AbstractEnterpriseOpenCMIS11TCKTest extends AbstractEnterp addTest(new QuerySmokeTest()); // The test fails on Lucene see MNT-11223 // addTest(new QueryRootFolderTest()); - addTest(new QueryForObject()); - addTest(new QueryLikeTest()); - addTest(new QueryInFolderTest()); + addTest(new QueryForObjectCustom()); + addTest(new QueryLikeTestCustom()); + addTest(new QueryInFolderTestCustom()); addTest(new ContentChangesSmokeTest()); } } diff --git a/source/test-java/org/alfresco/rest/api/tests/TestEnterpriseAtomPubTCK.java b/source/test-java/org/alfresco/rest/api/tests/TestEnterpriseAtomPubTCK.java index 6740ff536a..88bf6c5edc 100644 --- a/source/test-java/org/alfresco/rest/api/tests/TestEnterpriseAtomPubTCK.java +++ b/source/test-java/org/alfresco/rest/api/tests/TestEnterpriseAtomPubTCK.java @@ -26,6 +26,9 @@ import java.util.Map; import org.alfresco.error.AlfrescoRuntimeException; import org.alfresco.model.ContentModel; import org.alfresco.opencmis.OpenCMISClientContext; +import org.alfresco.opencmis.tck.tests.query.QueryForObjectCustom; +import org.alfresco.opencmis.tck.tests.query.QueryInFolderTestCustom; +import org.alfresco.opencmis.tck.tests.query.QueryLikeTestCustom; import org.alfresco.repo.dictionary.DictionaryDAO; import org.alfresco.repo.dictionary.M2Aspect; import org.alfresco.repo.dictionary.M2Model; @@ -50,9 +53,6 @@ import org.apache.chemistry.opencmis.tck.tests.control.ControlTestGroup; import org.apache.chemistry.opencmis.tck.tests.crud.CRUDTestGroup; import org.apache.chemistry.opencmis.tck.tests.filing.FilingTestGroup; import org.apache.chemistry.opencmis.tck.tests.query.ContentChangesSmokeTest; -import org.apache.chemistry.opencmis.tck.tests.query.QueryForObject; -import org.apache.chemistry.opencmis.tck.tests.query.QueryInFolderTest; -import org.apache.chemistry.opencmis.tck.tests.query.QueryLikeTest; import org.apache.chemistry.opencmis.tck.tests.query.QuerySmokeTest; import org.apache.chemistry.opencmis.tck.tests.types.TypesTestGroup; import org.apache.chemistry.opencmis.tck.tests.versioning.CheckedOutTest; @@ -203,9 +203,9 @@ public class TestEnterpriseAtomPubTCK extends AbstractEnterpriseOpenCMIS10TCKTes addTest(new QuerySmokeTest()); // The test fails on Lucene see MNT-11223 // addTest(new QueryRootFolderTest()); - addTest(new QueryForObject()); - addTest(new QueryLikeTest()); - addTest(new QueryInFolderTest()); + addTest(new QueryForObjectCustom()); + addTest(new QueryLikeTestCustom()); + addTest(new QueryInFolderTestCustom()); addTest(new ContentChangesSmokeTest()); } } diff --git a/source/test-java/org/alfresco/rest/api/tests/TestPublicApiAtomPub10TCK.java b/source/test-java/org/alfresco/rest/api/tests/TestPublicApiAtomPub10TCK.java index 5e363f6d1a..8eebfc2ebe 100644 --- a/source/test-java/org/alfresco/rest/api/tests/TestPublicApiAtomPub10TCK.java +++ b/source/test-java/org/alfresco/rest/api/tests/TestPublicApiAtomPub10TCK.java @@ -5,6 +5,8 @@ import java.util.HashMap; import java.util.Map; import org.alfresco.opencmis.OpenCMISClientContext; +import org.alfresco.opencmis.tck.tests.query.QueryForObjectCustom; +import org.alfresco.opencmis.tck.tests.query.QueryLikeTestCustom; import org.alfresco.rest.api.tests.RepoService.TestNetwork; import org.apache.chemistry.opencmis.commons.enums.BindingType; import org.apache.chemistry.opencmis.tck.impl.AbstractSessionTestGroup; @@ -15,8 +17,6 @@ import org.apache.chemistry.opencmis.tck.tests.control.ControlTestGroup; import org.apache.chemistry.opencmis.tck.tests.crud.CRUDTestGroup; import org.apache.chemistry.opencmis.tck.tests.filing.FilingTestGroup; import org.apache.chemistry.opencmis.tck.tests.query.ContentChangesSmokeTest; -import org.apache.chemistry.opencmis.tck.tests.query.QueryForObject; -import org.apache.chemistry.opencmis.tck.tests.query.QueryLikeTest; import org.apache.chemistry.opencmis.tck.tests.versioning.CheckedOutTest; import org.apache.chemistry.opencmis.tck.tests.versioning.VersionDeleteTest; import org.apache.chemistry.opencmis.tck.tests.versioning.VersioningSmokeTest; @@ -131,8 +131,8 @@ public class TestPublicApiAtomPub10TCK extends AbstractEnterpriseOpenCMIS10TCKTe // addTest(new QuerySmokeTest()); // The test fails on Lucene see MNT-11223 // addTest(new QueryRootFolderTest()); - addTest(new QueryForObject()); - addTest(new QueryLikeTest()); + addTest(new QueryForObjectCustom()); + addTest(new QueryLikeTestCustom()); addTest(new ContentChangesSmokeTest()); } }