Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7AB31E82 for ; Sun, 24 Apr 2011 11:35:22 +0000 (UTC) Received: (qmail 96193 invoked by uid 500); 24 Apr 2011 11:35:22 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 96153 invoked by uid 500); 24 Apr 2011 11:35:22 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 96145 invoked by uid 99); 24 Apr 2011 11:35:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2011 11:35:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Apr 2011 11:35:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D4F0C2388A39; Sun, 24 Apr 2011 11:34:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1096313 [1/2] - in /chemistry/opencmis/trunk: ./ chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/ chemistry-opencmis-client/chemistry-opencmis-cli... Date: Sun, 24 Apr 2011 11:34:49 -0000 To: commits@chemistry.apache.org From: sfermigier@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110424113450.D4F0C2388A39@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sfermigier Date: Sun Apr 24 11:34:48 2011 New Revision: 1096313 URL: http://svn.apache.org/viewvc?rev=1096313&view=rev Log: Clean up. Added: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java (contents, props changed) - copied, changed from r1096274, chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTst.java Removed: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTst.java Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AclMergeTest.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AtomPubTestBindingFactory.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadOnlyTests.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadWriteTests.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/Tools.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/webservices/WebServicesTestBindingFactory.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/CmisBindingHelper.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisService.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/ObjectInfoHandler.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/pom.xml chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/Converter.java chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclDocument.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ExceptionHelper.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/FolderTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/SessionFactory.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractBindingIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractReadOnlyAclCapabilityIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractSessionTest.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractTransientObjectIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractWriteObjectIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/FixtureData.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/atom/TransientObjectAtomPubIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/webservices/TransientObjectWebServicesIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/sample/AbstractSampleIT.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/runner/CmisTckAntTask.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/basics/SecurityTest.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/commander/Commander.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/commander/InfosCommand.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/commander/ListCommand.java chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/repository/ObjGenApp.java chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/ClientHelper.java chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/ActionPanel.java chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java chemistry/opencmis/trunk/pom.xml Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.java Sun Apr 24 11:34:48 2011 @@ -32,7 +32,7 @@ public abstract class AtomBase implement private final List fElements = new ArrayList(); - public AtomBase() { + protected AtomBase() { } public abstract String getType(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AclMergeTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AclMergeTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AclMergeTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AclMergeTest.java Sun Apr 24 11:34:48 2011 @@ -38,7 +38,7 @@ import org.apache.chemistry.opencmis.com */ public class AclMergeTest extends TestCase { - public void testIsACLMergeRequired() throws Exception { + public void testIsACLMergeRequired() { AtomPubService service = new AtomPubService(); assertFalse(service.publicIsACLMergeRequired(null, null)); @@ -47,7 +47,7 @@ public class AclMergeTest extends TestCa assertFalse(service.publicIsACLMergeRequired(new AccessControlListImpl(), new AccessControlListImpl())); } - public void testAclMerge() throws Exception { + public void testAclMerge() { AtomPubService service = new AtomPubService(); // original @@ -104,7 +104,7 @@ public class AclMergeTest extends TestCa /** * Creates an ACL structure from a Map. */ - private Acl createACL(Map aceData) { + private static Acl createACL(Map aceData) { AccessControlListImpl result = new AccessControlListImpl(); List aces = new ArrayList(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AtomPubTestBindingFactory.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AtomPubTestBindingFactory.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AtomPubTestBindingFactory.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/atompub/AtomPubTestBindingFactory.java Sun Apr 24 11:34:48 2011 @@ -30,6 +30,9 @@ import org.apache.chemistry.opencmis.com * */ public class AtomPubTestBindingFactory { + + private AtomPubTestBindingFactory() { + } public static CmisBinding createBinding(String atomPubUrl, String user, String password) { // gather parameters Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/cache/CacheTest.java Sun Apr 24 11:34:48 2011 @@ -36,7 +36,7 @@ public class CacheTest extends TestCase public static final String MAP_CACHE_LEVEL = "org.apache.chemistry.opencmis.client.bindings.cache.impl.MapCacheLevelImpl"; public static final String LRU_CACHE_LEVEL = "org.apache.chemistry.opencmis.client.bindings.cache.impl.LruCacheLevelImpl"; - public void testCache() throws Exception { + public void testCache() { Cache cache; cache = new CacheImpl(); @@ -81,7 +81,7 @@ public class CacheTest extends TestCase assertNull(valueObj); } - public void testCacheBadUsage() throws Exception { + public void testCacheBadUsage() { Cache cache; cache = new CacheImpl(); @@ -103,7 +103,7 @@ public class CacheTest extends TestCase assertNull(cache.get((String[]) null)); } - public void testCacheConfig() throws Exception { + public void testCacheConfig() { Cache cache; // empty config @@ -135,7 +135,7 @@ public class CacheTest extends TestCase } } - public void testMapCache() throws Exception { + public void testMapCache() { Cache cache; cache = new CacheImpl(); @@ -153,7 +153,7 @@ public class CacheTest extends TestCase } } - public void testURLCache() throws Exception { + public void testURLCache() { Cache cache; cache = new CacheImpl(); @@ -175,7 +175,7 @@ public class CacheTest extends TestCase } } - public void XtestFallback() throws Exception { + public void XtestFallback() { Cache cache; cache = new CacheImpl(); @@ -190,7 +190,7 @@ public class CacheTest extends TestCase assertEquals("value1", cache.get("key3")); } - public void testContentTypeCache() throws Exception { + public void testContentTypeCache() { ContentTypeCacheLevelImpl cl = new ContentTypeCacheLevelImpl(); cl.initialize(null); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadOnlyTests.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadOnlyTests.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadOnlyTests.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadOnlyTests.java Sun Apr 24 11:34:48 2011 @@ -65,7 +65,7 @@ public abstract class AbstractSimpleRead /** * Tests repository info. */ - public void testRepositoryInfo() throws Exception { + public void testRepositoryInfo() { if (!isEnabled(TEST_REPOSITORY_INFO)) { return; } @@ -83,7 +83,7 @@ public abstract class AbstractSimpleRead /** * Some type related tests. */ - public void testTypes() throws Exception { + public void testTypes() { if (!isEnabled(TEST_TYPES)) { return; } @@ -176,7 +176,7 @@ public abstract class AbstractSimpleRead /** * Navigation smoke test. */ - public void testNavigation() throws Exception { + public void testNavigation() { if (!isEnabled(TEST_NAVIGATION)) { return; } @@ -310,7 +310,7 @@ public abstract class AbstractSimpleRead /** * Query smoke test. */ - public void testQuery() throws Exception { + public void testQuery() { if (!isEnabled(TEST_QUERY)) { return; } @@ -338,7 +338,7 @@ public abstract class AbstractSimpleRead /** * Checked out smoke test. */ - public void testCheckedout() throws Exception { + public void testCheckedout() { if (!isEnabled(TEST_CHECKEDOUT)) { return; } @@ -363,7 +363,7 @@ public abstract class AbstractSimpleRead /** * Content changes smoke test. */ - public void testContentChanges() throws Exception { + public void testContentChanges() { if (!isEnabled(TEST_CONTENT_CHANGES)) { return; } @@ -394,7 +394,7 @@ public abstract class AbstractSimpleRead /** * Tests some of the read-only methods of the Object Service. */ - private void checkObject(String objectId) throws Exception { + private void checkObject(String objectId) { System.out.println("Checking object " + objectId + "..."); ObjectData object = getObject(objectId); @@ -487,7 +487,7 @@ public abstract class AbstractSimpleRead /** * Tests some of the read-only methods of the Versioning Service. */ - private void checkObjectVersions(String objectId) throws Exception { + private void checkObjectVersions(String objectId) { System.out.println("Checking versions of object " + objectId + "..."); String versionSeriesId = getVersionSeriesId(objectId); Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadWriteTests.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadWriteTests.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadWriteTests.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/AbstractSimpleReadWriteTests.java Sun Apr 24 11:34:48 2011 @@ -57,7 +57,7 @@ public abstract class AbstractSimpleRead /** * Tests folder creation. */ - public void testCreateFolder() throws Exception { + public void testCreateFolder() { if (!isEnabled(TEST_CREATE_FOLDER)) { return; } @@ -233,7 +233,7 @@ public abstract class AbstractSimpleRead /** * Tests property updates. */ - public void testUpdateProperties() throws Exception { + public void testUpdateProperties() { if (!isEnabled(TEST_UPDATE_PROPERTIES)) { return; } @@ -270,7 +270,7 @@ public abstract class AbstractSimpleRead /** * Tests delete tree. */ - public void testDeleteTree() throws Exception { + public void testDeleteTree() { if (!isEnabled(TEST_DELETE_TREE)) { return; } @@ -302,7 +302,7 @@ public abstract class AbstractSimpleRead /** * Tests move object. */ - public void testMoveObject() throws Exception { + public void testMoveObject() { if (!isEnabled(TEST_MOVE_OBJECT)) { return; } @@ -329,7 +329,7 @@ public abstract class AbstractSimpleRead /** * Tests copy object. */ - public void testCopyObject() throws Exception { + public void testCopyObject() { if (!isEnabled(TEST_COPY_OBJECT)) { return; } @@ -363,7 +363,7 @@ public abstract class AbstractSimpleRead /** * Test check-in/check-out. */ - public void testVersioning() throws Exception { + public void testVersioning() { if (!isEnabled(TEST_VERSIONING)) { return; } Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/Tools.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/Tools.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/Tools.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/framework/Tools.java Sun Apr 24 11:34:48 2011 @@ -31,6 +31,9 @@ import org.apache.chemistry.opencmis.com * */ public class Tools { + + private Tools() { + } public static void print(RepositoryInfo repositoryInfo) { if (repositoryInfo == null) { @@ -72,7 +75,6 @@ public class Tools { printTypes(container.getChildren(), level + 1); } - } public static void print(String title, List containerList) { Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/webservices/WebServicesTestBindingFactory.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/webservices/WebServicesTestBindingFactory.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/webservices/WebServicesTestBindingFactory.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/test/java/org/apache/chemistry/opencmis/client/bindings/webservices/WebServicesTestBindingFactory.java Sun Apr 24 11:34:48 2011 @@ -29,6 +29,9 @@ import org.apache.chemistry.opencmis.com * Web Services Binding Factory. */ public class WebServicesTestBindingFactory { + + private WebServicesTestBindingFactory() { + } public static CmisBinding createBinding(String url, String username, String password) { boolean isPrefix = true; Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/CmisBindingHelper.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/CmisBindingHelper.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/CmisBindingHelper.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/CmisBindingHelper.java Sun Apr 24 11:34:48 2011 @@ -30,6 +30,10 @@ import org.apache.chemistry.opencmis.com * Helper methods for binding handling. */ public class CmisBindingHelper { + + private CmisBindingHelper() { + } + /** * Creates a {@link CmisBinding} object. */ Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Sun Apr 24 11:34:48 2011 @@ -698,7 +698,7 @@ public class SessionImpl implements Sess String newId = getBinding().getObjectService().createFolder(getRepositoryId(), objectFactory.convertProperties(properties, null, CREATE_UPDATABILITY), - (folderId == null ? null : folderId.getId()), objectFactory.convertPolicies(policies), + folderId.getId(), objectFactory.convertPolicies(policies), objectFactory.convertAces(addAces), objectFactory.convertAces(removeAces), null); if (newId == null) { Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/repository/ObjectFactoryImpl.java Sun Apr 24 11:34:48 2011 @@ -502,8 +502,9 @@ public class ObjectFactoryImpl implement if (properties.containsKey(PropertyIds.OBJECT_ID)) { List objectIdList = properties.get(PropertyIds.OBJECT_ID); - if ((objectIdList != null) && (!objectIdList.isEmpty())) + if ((objectIdList != null) && (!objectIdList.isEmpty())) { objectId = objectIdList.get(0).toString(); + } } if ((objectData.getPolicyIds() != null) && (objectData.getPolicyIds().getPolicyIds() != null)) { Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/util/FileUtils.java Sun Apr 24 11:34:48 2011 @@ -50,6 +50,9 @@ import org.apache.chemistry.opencmis.com * A set of utility methods that simplify file and folder operations. */ public class FileUtils { + + private FileUtils() { + } /** * Gets an object by path or object id. Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/exceptions/CmisBaseException.java Sun Apr 24 11:34:48 2011 @@ -36,7 +36,7 @@ public abstract class CmisBaseException /** * Default constructor. */ - public CmisBaseException() { + protected CmisBaseException() { super(); } @@ -50,7 +50,7 @@ public abstract class CmisBaseException * @param cause * the cause */ - public CmisBaseException(String message, BigInteger code, Throwable cause) { + protected CmisBaseException(String message, BigInteger code, Throwable cause) { super(message, cause); this.code = code; } @@ -65,7 +65,7 @@ public abstract class CmisBaseException * @param cause * the cause */ - public CmisBaseException(String message, String errorContent, Throwable cause) { + protected CmisBaseException(String message, String errorContent, Throwable cause) { super(message, cause); this.errorContent = errorContent; } @@ -78,7 +78,7 @@ public abstract class CmisBaseException * @param code * error code */ - public CmisBaseException(String message, BigInteger code) { + protected CmisBaseException(String message, BigInteger code) { super(message); this.code = code; } @@ -93,7 +93,7 @@ public abstract class CmisBaseException * @param errorContent * error page content */ - public CmisBaseException(String message, BigInteger code, String errorContent) { + protected CmisBaseException(String message, BigInteger code, String errorContent) { super(message); this.code = code; this.errorContent = errorContent; @@ -107,7 +107,7 @@ public abstract class CmisBaseException * @param errorContent * error page content */ - public CmisBaseException(String message, String errorContent) { + protected CmisBaseException(String message, String errorContent) { super(message); this.errorContent = errorContent; } @@ -120,7 +120,7 @@ public abstract class CmisBaseException * @param cause * the cause */ - public CmisBaseException(String message, Throwable cause) { + protected CmisBaseException(String message, Throwable cause) { this(message, (BigInteger) null, cause); } @@ -130,7 +130,7 @@ public abstract class CmisBaseException * @param message * error message */ - public CmisBaseException(String message) { + protected CmisBaseException(String message) { this(message, (BigInteger) null); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisService.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisService.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisService.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisService.java Sun Apr 24 11:34:48 2011 @@ -1,4 +1,3 @@ -package org.apache.chemistry.opencmis.commons.server; /* * * Licensed to the Apache Software Foundation (ASF) under one @@ -19,6 +18,7 @@ package org.apache.chemistry.opencmis.co * under the License. * */ +package org.apache.chemistry.opencmis.commons.server; import java.util.List; Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/CmisServiceFactory.java Sun Apr 24 11:34:48 2011 @@ -1,4 +1,3 @@ -package org.apache.chemistry.opencmis.commons.server; /* * * Licensed to the Apache Software Foundation (ASF) under one @@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.co * under the License. * */ - +package org.apache.chemistry.opencmis.commons.server; import java.util.Map; Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/ObjectInfoHandler.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/ObjectInfoHandler.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/ObjectInfoHandler.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-api/src/main/java/org/apache/chemistry/opencmis/commons/server/ObjectInfoHandler.java Sun Apr 24 11:34:48 2011 @@ -1,4 +1,3 @@ -package org.apache.chemistry.opencmis.commons.server; /* * * Licensed to the Apache Software Foundation (ASF) under one @@ -19,11 +18,11 @@ package org.apache.chemistry.opencmis.co * under the License. * */ - +package org.apache.chemistry.opencmis.commons.server; public interface ObjectInfoHandler { - ObjectInfo getObjectInfo(String repositoryId, String objectId); + ObjectInfo getObjectInfo(String repositoryId, String objectId); - void addObjectInfo(ObjectInfo objectInfo); + void addObjectInfo(ObjectInfo objectInfo); } Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/pom.xml URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/pom.xml?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/pom.xml (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/pom.xml Sun Apr 24 11:34:48 2011 @@ -31,6 +31,20 @@ ../../ + + + ${project.groupId} + chemistry-opencmis-commons-api + ${project.version} + + + com.sun.xml.ws + jaxws-rt + 2.1.7 + compile + + + @@ -97,20 +111,6 @@ - - - ${project.groupId} - chemistry-opencmis-commons-api - ${project.version} - - - com.sun.xml.ws - jaxws-rt - 2.1.7 - compile - - - maven-repository.dev.java.net Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/Converter.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/Converter.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/Converter.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/Converter.java Sun Apr 24 11:34:48 2011 @@ -2268,8 +2268,9 @@ public final class Converter { * Converts an access control list object. */ public static Acl convert(CmisACLType acl) { - if (acl == null) + if (acl == null) { return null; + } Acl result = convert(acl.getACL(), acl.isExact()); Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/MimeTypes.java Sun Apr 24 11:34:48 2011 @@ -27,6 +27,9 @@ public class MimeTypes { private static final Map EXT2MIME = new HashMap(); private static final Map MIME2EXT = new HashMap(); + + private MimeTypes() { + } static { // extension to MIME type Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclDocument.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclDocument.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclDocument.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/atompub/AclDocument.java Sun Apr 24 11:34:48 2011 @@ -23,7 +23,6 @@ import static org.apache.chemistry.openc import java.io.OutputStream; import javax.xml.bind.JAXBException; -import javax.xml.stream.XMLStreamException; import org.apache.chemistry.opencmis.commons.data.Acl; import org.apache.chemistry.opencmis.commons.impl.JaxBHelper; @@ -31,9 +30,8 @@ import org.apache.chemistry.opencmis.com /** * ACL document. - * + * * @author Florian Müller - * */ public class AclDocument { Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/CmisBrowserBindingServlet.java Sun Apr 24 11:34:48 2011 @@ -18,6 +18,9 @@ */ package org.apache.chemistry.opencmis.server.impl.browser; +import static org.apache.chemistry.opencmis.server.impl.browser.BrowserBindingUtils.*; +import static org.apache.chemistry.opencmis.server.shared.Dispatcher.METHOD_GET; +import static org.apache.chemistry.opencmis.server.shared.Dispatcher.METHOD_POST; import static org.apache.chemistry.opencmis.server.shared.HttpUtils.getStringParameter; import java.io.IOException; @@ -90,39 +93,39 @@ public class CmisBrowserBindingServlet e rootDispatcher = new Dispatcher(); try { - repositoryDispatcher.addResource("", Dispatcher.METHOD_GET, RepositoryService.class, "getRepositoryInfo"); - repositoryDispatcher.addResource(BrowserBindingUtils.SELECTOR_LAST_RESULT, Dispatcher.METHOD_GET, + repositoryDispatcher.addResource("", METHOD_GET, RepositoryService.class, "getRepositoryInfo"); + repositoryDispatcher.addResource(SELECTOR_LAST_RESULT, METHOD_GET, RepositoryService.class, "getLastResult"); - repositoryDispatcher.addResource(BrowserBindingUtils.SELECTOR_TYPE_CHILDREN, Dispatcher.METHOD_GET, + repositoryDispatcher.addResource(SELECTOR_TYPE_CHILDREN, METHOD_GET, RepositoryService.class, "getTypeChildren"); - repositoryDispatcher.addResource(BrowserBindingUtils.SELECTOR_TYPE_DESCENDANTS, Dispatcher.METHOD_GET, + repositoryDispatcher.addResource(SELECTOR_TYPE_DESCENDANTS, METHOD_GET, RepositoryService.class, "getTypeDescendants"); - repositoryDispatcher.addResource(BrowserBindingUtils.SELECTOR_TYPE_DEFINITION, Dispatcher.METHOD_GET, + repositoryDispatcher.addResource(SELECTOR_TYPE_DEFINITION, METHOD_GET, RepositoryService.class, "getTypeDefintion"); - repositoryDispatcher.addResource(BrowserBindingUtils.SELECTOR_QUERY, Dispatcher.METHOD_GET, + repositoryDispatcher.addResource(SELECTOR_QUERY, METHOD_GET, DiscoveryService.class, "query"); - repositoryDispatcher.addResource(BrowserBindingUtils.CMISACTION_QUERY, Dispatcher.METHOD_POST, + repositoryDispatcher.addResource(CMISACTION_QUERY, METHOD_POST, DiscoveryService.class, "query"); - repositoryDispatcher.addResource(BrowserBindingUtils.CMISACTION_CREATEDOCUMENT, Dispatcher.METHOD_POST, + repositoryDispatcher.addResource(CMISACTION_CREATEDOCUMENT, METHOD_POST, ObjectService.class, "createDocument"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_OBJECT, Dispatcher.METHOD_GET, ObjectService.class, + rootDispatcher.addResource(SELECTOR_OBJECT, METHOD_GET, ObjectService.class, "getObject"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_CONTENT, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_CONTENT, METHOD_GET, ObjectService.class, "getContentStream"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_CHILDREN, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_CHILDREN, METHOD_GET, NavigationService.class, "getChildren"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_DESCENDANTS, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_DESCENDANTS, METHOD_GET, NavigationService.class, "getDescendants"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_FOLDER_TREE, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_FOLDER_TREE, METHOD_GET, NavigationService.class, "getFolderTree"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_PARENTS, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_PARENTS, METHOD_GET, NavigationService.class, "getObjectParents"); - rootDispatcher.addResource(BrowserBindingUtils.SELECTOR_VERSIONS, Dispatcher.METHOD_GET, + rootDispatcher.addResource(SELECTOR_VERSIONS, METHOD_GET, VersioningService.class, "getAllVersions"); - rootDispatcher.addResource(BrowserBindingUtils.CMISACTION_CREATEDOCUMENT, Dispatcher.METHOD_POST, + rootDispatcher.addResource(CMISACTION_CREATEDOCUMENT, METHOD_POST, ObjectService.class, "createDocument"); - rootDispatcher.addResource(BrowserBindingUtils.CMISACTION_CREATEFOLDER, Dispatcher.METHOD_POST, + rootDispatcher.addResource(CMISACTION_CREATEFOLDER, METHOD_POST, ObjectService.class, "createFolder"); } catch (NoSuchMethodException e) { LOG.error("Cannot initialize dispatcher!", e); @@ -199,7 +202,7 @@ public class CmisBrowserBindingServlet e String repositoryId = pathFragments[0]; boolean methodFound = false; - if (Dispatcher.METHOD_GET.equals(method)) { + if (METHOD_GET.equals(method)) { String selector = HttpUtils.getStringParameter(request, BrowserBindingUtils.PARAM_SELECTOR); String objectId = getStringParameter(request, Constants.PARAM_OBJECT_ID); @@ -222,24 +225,24 @@ public class CmisBrowserBindingServlet e .get(BrowserBindingUtils.CONTEXT_BASETYPE_ID)); switch (basetype) { case CMIS_DOCUMENT: - selector = BrowserBindingUtils.SELECTOR_CONTENT; + selector = SELECTOR_CONTENT; break; case CMIS_FOLDER: - selector = BrowserBindingUtils.SELECTOR_CHILDREN; + selector = SELECTOR_CHILDREN; break; default: - selector = BrowserBindingUtils.SELECTOR_OBJECT; + selector = SELECTOR_OBJECT; break; } } catch (Exception e) { - selector = BrowserBindingUtils.SELECTOR_OBJECT; + selector = SELECTOR_OBJECT; } } methodFound = rootDispatcher.dispatch(selector, method, context, service, repositoryId, request, response); } - } else if (Dispatcher.METHOD_POST.equals(method)) { + } else if (METHOD_POST.equals(method)) { POSTHttpServletRequestWrapper postRequest = new POSTHttpServletRequestWrapper(request); String cmisaction = HttpUtils.getStringParameter(postRequest, BrowserBindingUtils.CONTROL_CMISACTION); Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ExceptionHelper.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ExceptionHelper.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ExceptionHelper.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ExceptionHelper.java Sun Apr 24 11:34:48 2011 @@ -38,6 +38,9 @@ public class ExceptionHelper { sendStackTrace = System.getProperty(STACK_TRACE_PROPERTY) == null; } + private ExceptionHelper() { + } + /** * Returns the stack trace as string. */ Copied: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java (from r1096274, chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTst.java) URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java?p2=chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java&p1=chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTst.java&r1=1096274&r2=1096313&rev=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTst.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java Sun Apr 24 11:34:48 2011 @@ -1,4 +1,3 @@ -package org.apache.chemistry.opencmis.inmemory; /* * * Licensed to the Apache Software Foundation (ASF) under one @@ -19,7 +18,7 @@ package org.apache.chemistry.opencmis.in * under the License. * */ - +package org.apache.chemistry.opencmis.inmemory; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @@ -63,8 +62,10 @@ import org.apache.chemistry.opencmis.inm import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -public class AbstractServiceTst /* extends TestCase */{ - private static final Log LOG = LogFactory.getLog(AbstractServiceTst.class); +public class AbstractServiceTest /* extends TestCase */{ + + private static final Log LOG = LogFactory.getLog(AbstractServiceTest.class); + protected static final String REPOSITORY_ID = "UnitTestRepository"; protected BindingsObjectFactory fFactory = new BindingsObjectFactoryImpl(); protected String fRootFolderId; @@ -78,7 +79,7 @@ public class AbstractServiceTst /* exten protected DummyCallContext fTestCallContext; private String fTypeCreatorClassName; - public AbstractServiceTst() { + public AbstractServiceTest() { // The in-memory server unit tests can either be run directly against // the // service implementation or against a clocal binding interface. The Propchange: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/AbstractServiceTest.java ------------------------------------------------------------------------------ svn:eol-style = native Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/DiscoveryServiceTest.java Sun Apr 24 11:34:48 2011 @@ -33,7 +33,7 @@ import org.apache.commons.logging.LogFac import org.junit.Before; import org.junit.Test; -public class DiscoveryServiceTest extends AbstractServiceTst { +public class DiscoveryServiceTest extends AbstractServiceTest { private static final Log log = LogFactory.getLog(DiscoveryServiceTest.class); private static final String TEST_FOLDER_TYPE_ID = ObjectServiceTest.TEST_FOLDER_TYPE_ID; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/FolderTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/FolderTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/FolderTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/FolderTest.java Sun Apr 24 11:34:48 2011 @@ -36,10 +36,9 @@ import org.junit.Test; * @author Jens */ -/* - * Some test directly against the in-memory folder object +/** + * Some test directly against the in-memory folder object. */ - public class FolderTest extends TestCase { private ObjectStore fStore; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/MultiFilingTest.java Sun Apr 24 11:34:48 2011 @@ -46,7 +46,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; -public class MultiFilingTest extends AbstractServiceTst { +public class MultiFilingTest extends AbstractServiceTest { private static final Log LOG = LogFactory.getLog(MultiFilingTest.class); private static final String DOCUMENT_TYPE_ID = UnitTestTypeSystemCreator.COMPLEX_TYPE; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/NavigationServiceTest.java Sun Apr 24 11:34:48 2011 @@ -46,7 +46,7 @@ import org.junit.Test; /** * @author Jens */ -public class NavigationServiceTest extends AbstractServiceTst { +public class NavigationServiceTest extends AbstractServiceTest { private static final Log log = LogFactory.getLog(NavigationServiceTest.class); private static final int NUM_ROOT_FOLDERS = 10; private String fLevel1FolderId; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectCreator.java Sun Apr 24 11:34:48 2011 @@ -128,11 +128,7 @@ public class ObjectCreator { } /** - * Compare two streams and return true if they are equal - * - * @param csd1 - * @param csd2 - * @return + * Compare two streams and return true if they are equal. */ public boolean verifyContent(ContentStream csd1, ContentStream csd2) { if (!csd1.getFileName().equals(csd2.getFileName())) Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/ObjectServiceTest.java Sun Apr 24 11:34:48 2011 @@ -74,7 +74,7 @@ import org.junit.Test; * @author Jens */ -public class ObjectServiceTest extends AbstractServiceTst { +public class ObjectServiceTest extends AbstractServiceTest { private static final Log log = LogFactory.getLog(ObjectServiceTest.class); public static final String TEST_FOLDER_TYPE_ID = "MyFolderType"; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/RepositoryServiceTest.java Sun Apr 24 11:34:48 2011 @@ -71,7 +71,7 @@ import org.junit.Test; /** * @author Jens */ -public class RepositoryServiceTest extends AbstractServiceTst { +public class RepositoryServiceTest extends AbstractServiceTest { // private CmisProvider fProvider; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/TypeValidationTest.java Sun Apr 24 11:34:48 2011 @@ -59,6 +59,7 @@ import org.junit.Test; * @author Jens */ public class TypeValidationTest extends TestCase { + private static final String MY_DOC_TYPE = "MyDocType1"; private static final String STRING_DOC_TYPE = "StringDocType"; private static final String STRING_PROP_TYPE = "StringProp"; @@ -74,16 +75,6 @@ public class TypeValidationTest extends private static final String STRING_PROP_TYPE_SUB = "StringPropSub"; private static final BindingsObjectFactory FACTORY = new BindingsObjectFactoryImpl(); - @Before - protected void setUp() throws Exception { - super.setUp(); - } - - @After - protected void tearDown() throws Exception { - super.tearDown(); - } - private List> createPropertiesWithNameAndTypeId(String typeId) { List> properties = new ArrayList>(); properties.add(FACTORY.createPropertyIdData(PropertyIds.NAME, "Document_1")); Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/VersioningTest.java Sun Apr 24 11:34:48 2011 @@ -60,7 +60,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; -public class VersioningTest extends AbstractServiceTst { +public class VersioningTest extends AbstractServiceTest { private static final Log log = LogFactory.getLog(ObjectServiceTest.class); private static final String PROP_VALUE = "Mickey Mouse"; private static final String PROP_VALUE_NEW = "Donald Duck"; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/test/java/org/apache/chemistry/opencmis/inmemory/query/EvalQueryTest.java Sun Apr 24 11:34:48 2011 @@ -33,7 +33,7 @@ import org.apache.chemistry.opencmis.com import org.apache.chemistry.opencmis.commons.data.ObjectData; import org.apache.chemistry.opencmis.commons.data.ObjectList; import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships; -import org.apache.chemistry.opencmis.inmemory.AbstractServiceTst; +import org.apache.chemistry.opencmis.inmemory.AbstractServiceTest; import org.apache.chemistry.opencmis.inmemory.UnitTestTypeSystemCreator; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -41,7 +41,7 @@ import org.junit.After; import org.junit.Before; import org.junit.Test; -public class EvalQueryTest extends AbstractServiceTst { +public class EvalQueryTest extends AbstractServiceTest { private static final Log log = LogFactory.getLog(EvalQueryTest.class); private QueryTestDataCreator dataCreator; Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-jcr/src/test/java/org/apache/chemistry/opencmis/jcr/query/QueryTranslatorTest.java Sun Apr 24 11:34:48 2011 @@ -92,7 +92,6 @@ public class QueryTranslatorTest { queryTranslator.translateToXPath( "select * from cmis:document where NOT (cmis:isLatestVersion>'foo' OR cmis:name< 1.0)")); - assertEquals( "/jcr:root//element(*,jcr:document)[(@jcr:name = 'foo' or @jcr:objectId = 'baz' and @jcr:createdBy = 'bar')]", queryTranslator.translateToXPath( Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/SessionFactory.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/SessionFactory.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/SessionFactory.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/SessionFactory.java Sun Apr 24 11:34:48 2011 @@ -30,9 +30,8 @@ import org.apache.chemistry.opencmis.com /** * Session factory for integration tests. - * + * * @author Florian Müller - * */ public class SessionFactory { @@ -46,6 +45,9 @@ public class SessionFactory { private static final String ATOMPUB_PATH = "/opencmis/atom"; private static final String WEBSERVICES_PATH = "/opencmis/services/"; + private SessionFactory() { + } + /** * Returns the repository id of the test repository. */ Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractBindingIT.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractBindingIT.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractBindingIT.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractBindingIT.java Sun Apr 24 11:34:48 2011 @@ -98,7 +98,7 @@ public abstract class AbstractBindingIT /** * Creates a folder that will be used by all read-write tests. */ - private void createTestFolder() { + private static void createTestFolder() { // System.out.println("Creating test folder..."); // get root folder id Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractReadOnlyAclCapabilityIT.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractReadOnlyAclCapabilityIT.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractReadOnlyAclCapabilityIT.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractReadOnlyAclCapabilityIT.java Sun Apr 24 11:34:48 2011 @@ -36,7 +36,7 @@ public abstract class AbstractReadOnlyAc private AclCapabilities aclCapabilities = null; @Before - public void setup() throws Exception { + public void setup() { RepositoryInfo r = this.session.getRepositoryInfo(); // capabilities RepositoryCapabilities repcap = r.getCapabilities(); Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractSessionTest.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractSessionTest.java?rev=1096313&r1=1096312&r2=1096313&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractSessionTest.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/AbstractSessionTest.java Sun Apr 24 11:34:48 2011 @@ -95,14 +95,14 @@ public abstract class AbstractSessionTes */ protected Fixture fixture = null; - public AbstractSessionTest() { + protected AbstractSessionTest() { this.fixture = new Fixture(); this.initFixture(this.fixture); this.fixture.init(); } @Before - public void setUp() throws Exception { + public void setUp() { SessionFactory factory = this.fixture.getSessionFactory(); this.session = factory.createSession(this.fixture.getParamter()); this.fixture.setUpTestData(this.session); @@ -111,7 +111,7 @@ public abstract class AbstractSessionTes } @After - public void tearDown() throws Exception { + public void tearDown() { this.fixture.teardownTestData(this.session); }