chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1235671 [2/3] - in /chemistry/opencmis/trunk: chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/browser/ chemistry-opencmis-client/chemistry-opencmis-client-binding...
Date Wed, 25 Jan 2012 07:58:27 GMT
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/VersioningService.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/VersioningService.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/VersioningService.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/VersioningService.java Wed Jan 25 07:58:25 2012
@@ -83,7 +83,7 @@ public class VersioningService {
 
         // return object
         TypeCache typeCache = new TypeCache(repositoryId, service);
-        JSONObject jsonObject = JSONConverter.convert(object, typeCache);
+        JSONObject jsonObject = JSONConverter.convert(object, typeCache, false);
 
         // set headers
         String location = compileUrl(compileBaseUrl(request, repositoryId), RESOURCE_CONTENT, object.getId());
@@ -141,7 +141,7 @@ public class VersioningService {
         }
 
         // return object
-        JSONObject jsonObject = JSONConverter.convert(object, typeCache);
+        JSONObject jsonObject = JSONConverter.convert(object, typeCache, false);
 
         String location = compileUrl(compileBaseUrl(request, repositoryId), RESOURCE_CONTENT, object.getId());
 
@@ -173,7 +173,7 @@ public class VersioningService {
         TypeCache typeCache = new TypeCache(repositoryId, service);
         JSONArray jsonVersions = new JSONArray();
         for (ObjectData version : versions) {
-            jsonVersions.add(JSONConverter.convert(version, typeCache));
+            jsonVersions.add(JSONConverter.convert(version, typeCache, false));
         }
 
         response.setStatus(HttpServletResponse.SC_OK);

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createdocument.html
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createdocument.html?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createdocument.html (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createdocument.html Wed Jan 25 07:58:25 2012
@@ -69,7 +69,7 @@ function createDocumentCallback() {
         document.getElementById('info').innerHTML = 'Transaction: ' + lastTransaction
 
         var script1 = document.createElement("script");
-        script1.setAttribute("src", repositoryUrl + "?selector=lastResult&clientToken=showNewDocumentId&transaction="+lastTransaction);
+        script1.setAttribute("src", repositoryUrl + "?cmisselector=lastResult&clientToken=showNewDocumentId&transaction="+lastTransaction);
         script1.setAttribute("type","text/javascript");                
         document.body.appendChild(script1);
     }
@@ -110,7 +110,7 @@ function showNewDocumentId(result) {
 </tr>
 <tr>
     <td>File name:</td>
-    <td><input name="filename" type="text" size="30" maxlength="30" value=""> (if left blank the orignal file name is used)</td>
+    <td><input name="filename" type="text" size="30" maxlength="30" value=""> (if left blank the original file name is used)</td>
 </tr>
 <tr>
     <td>Content type:</td>

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createfolder.html
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createfolder.html?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createfolder.html (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/createfolder.html Wed Jan 25 07:58:25 2012
@@ -68,7 +68,7 @@ function createFolderCallback() {
         document.getElementById('info').innerHTML = 'Transaction: ' + lastTransaction
 
         var script1 = document.createElement("script");
-        script1.setAttribute("src", repositoryUrl + "?selector=lastResult&clientToken=showNewFolderId&transaction="+lastTransaction);
+        script1.setAttribute("src", repositoryUrl + "?cmisselector=lastResult&clientToken=showNewFolderId&transaction="+lastTransaction);
         script1.setAttribute("type","text/javascript");                
         document.body.appendChild(script1);
     }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/demo.html
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/demo.html?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/demo.html (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/demo.html Wed Jan 25 07:58:25 2012
@@ -64,17 +64,17 @@ function printRepositoryInfos(infos) {
     document.getElementById('queryForm').action = repositoryUrl;
 	
     var script1 = document.createElement("script");        
-    script1.setAttribute("src", rootFolderUrl + rootFolder + "?selector=object&clientToken=printObject");
+    script1.setAttribute("src", rootFolderUrl + rootFolder + "?cmisselector=object&clientToken=printObject");
     script1.setAttribute("type","text/javascript");                
     document.body.appendChild(script1);
 
     var script2 = document.createElement("script");        
-    script2.setAttribute("src", rootFolderUrl + rootFolder + "?selector=children&clientToken=printChildren");
+    script2.setAttribute("src", rootFolderUrl + rootFolder + "?cmisselector=children&clientToken=printChildren");
     script2.setAttribute("type","text/javascript");                
     document.body.appendChild(script2);
 
     var script3 = document.createElement("script");        
-    script3.setAttribute("src", repositoryUrl + "?selector=typeChildren&clientToken=printTypes");
+    script3.setAttribute("src", repositoryUrl + "?cmisselector=typeChildren&clientToken=printTypes");
     script3.setAttribute("type","text/javascript");                
     document.body.appendChild(script3);
 }
@@ -141,7 +141,7 @@ function printChildren(children) {
 
             if(object.properties["cmis:contentStreamMimeType"]) {           	 
                 mimetype = object.properties["cmis:contentStreamMimeType"].value;
-                link = encodeURI(rootFolderUrl + '?objectId=' + id + '&selector=content');
+                link = encodeURI(rootFolderUrl + '?objectId=' + id + '&cmisselector=content');
             } else {
             	mimetype = "";
             	link = "";
@@ -187,7 +187,7 @@ function printTypes(types) {
 
 function reloadChildren() {
     var reloadScript = document.createElement("script");        
-    reloadScript.setAttribute("src", rootFolderUrl + rootFolder + "?selector=children&clientToken=printChildren");
+    reloadScript.setAttribute("src", rootFolderUrl + rootFolder + "?cmisselector=children&clientToken=printChildren");
     reloadScript.setAttribute("type","text/javascript");                
     document.body.appendChild(reloadScript);
 }

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/index.html
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/index.html?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/index.html (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web/index.html Wed Jan 25 07:58:25 2012
@@ -44,13 +44,13 @@
 </tr>
 <tr>
 <td>Object Data (object id 100 [root folder])</td>
-<td><a href="../browser/A1/root?objectId=100&selector=object">browser/A1/root?objectId=100&selector=object</a></td>
-<td><a href="../browser/A1/root/?&selector=object">browser/A1/root/?selector=object</a></td>
+<td><a href="../browser/A1/root?objectId=100&cmisselector=object">browser/A1/root?objectId=100&cmisselector=object</a></td>
+<td><a href="../browser/A1/root/?&cmisselector=object">browser/A1/root/?cmisselector=object</a></td>
 </tr>
 <tr>
 <td>Object Data (object id 133 [document in root folder])</td>
-<td><a href="../browser/A1/root?objectId=133&selector=object">browser/A1/root?objectId=133&selector=object</a></td>
-<td><a href="../browser/A1/root/My_Document-0-1?selector=object">browser/A1/root/My_Document-0-1?selector=object</a></td>
+<td><a href="../browser/A1/root?objectId=133&cmisselector=object">browser/A1/root?objectId=133&cmisselector=object</a></td>
+<td><a href="../browser/A1/root/My_Document-0-1?cmisselector=object">browser/A1/root/My_Document-0-1?cmisselector=object</a></td>
 </tr>
 <tr>
 <td>Content (object id 133 [document in root folder])</td>

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-inmemory/src/main/java/org/apache/chemistry/opencmis/inmemory/server/InMemoryObjectServiceImpl.java Wed Jan 25 07:58:25 2012
@@ -593,55 +593,57 @@ public class InMemoryObjectServiceImpl e
         boolean hasUpdatedName = false;
         boolean hasUpdatedOtherProps = false;
 
-        for (String key : properties.getProperties().keySet()) {
-            if (key.equals(PropertyIds.NAME))
-            {
-                continue; // ignore here
-            }
-
-            PropertyData<?> value = properties.getProperties().get(key);
-            PropertyDefinition<?> propDef = typeDef.getPropertyDefinitions().get(key);
-            if (value.getValues() == null || value.getFirstValue() == null) {
-                // delete property
-                // check if a required a property
-                if (propDef.isRequired()) {
-                    throw new CmisConstraintException(
-                            "updateProperties failed, following property can't be deleted, because it is required: "
-                                    + key);
-                }
-                oldProperties.remove(key);
-                hasUpdatedOtherProps = true;
-            } else {
-                if (propDef.getUpdatability().equals(Updatability.WHENCHECKEDOUT)) {
-                    if (!isCheckedOut)
-                        throw new CmisUpdateConflictException(
-                                "updateProperties failed, following property can't be updated, because it is not checked-out: "
-                                        + key);
-                } else if (!propDef.getUpdatability().equals(Updatability.READWRITE)) {
-                    throw new CmisConstraintException(
-                            "updateProperties failed, following property can't be updated, because it is not writable: "
-                                    + key);
-                }
-                oldProperties.put(key, value);
-                hasUpdatedOtherProps = true;
-            }
-        }
-
-        // get name from properties and perform special rename to check if
-        // path already exists
-        PropertyData<?> pd = properties.getProperties().get(PropertyIds.NAME);
-        if (pd != null && so instanceof Filing) {
-            String newName = (String) pd.getFirstValue();
-            List<Folder> parents = ((Filing) so).getParents(user);
-            if (so instanceof Folder && parents.isEmpty()) {
-                throw new CmisConstraintException("updateProperties failed, you cannot rename the root folder");
-            }
-            if (newName == null || newName.equals("")) {
-                throw new CmisConstraintException("updateProperties failed, name must not be empty.");
-            }
-
-            so.rename((String) pd.getFirstValue()); // note: this does persist
-            hasUpdatedName = true;
+        if(properties != null) {
+        	for (String key : properties.getProperties().keySet()) {
+        		if (key.equals(PropertyIds.NAME))
+        		{
+        			continue; // ignore here
+        		}
+
+        		PropertyData<?> value = properties.getProperties().get(key);
+        		PropertyDefinition<?> propDef = typeDef.getPropertyDefinitions().get(key);
+        		if (value.getValues() == null || value.getFirstValue() == null) {
+        			// delete property
+        			// check if a required a property
+        			if (propDef.isRequired()) {
+        				throw new CmisConstraintException(
+        						"updateProperties failed, following property can't be deleted, because it is required: "
+        								+ key);
+        			}
+        			oldProperties.remove(key);
+        			hasUpdatedOtherProps = true;
+        		} else {
+        			if (propDef.getUpdatability().equals(Updatability.WHENCHECKEDOUT)) {
+        				if (!isCheckedOut)
+        					throw new CmisUpdateConflictException(
+        							"updateProperties failed, following property can't be updated, because it is not checked-out: "
+        									+ key);
+        			} else if (!propDef.getUpdatability().equals(Updatability.READWRITE)) {
+        				throw new CmisConstraintException(
+        						"updateProperties failed, following property can't be updated, because it is not writable: "
+        								+ key);
+        			}
+        			oldProperties.put(key, value);
+        			hasUpdatedOtherProps = true;
+        		}
+        	}
+
+        	// get name from properties and perform special rename to check if
+        	// path already exists
+        	PropertyData<?> pd = properties.getProperties().get(PropertyIds.NAME);
+        	if (pd != null && so instanceof Filing) {
+        		String newName = (String) pd.getFirstValue();
+        		List<Folder> parents = ((Filing) so).getParents(user);
+        		if (so instanceof Folder && parents.isEmpty()) {
+        			throw new CmisConstraintException("updateProperties failed, you cannot rename the root folder");
+        		}
+        		if (newName == null || newName.equals("")) {
+        			throw new CmisConstraintException("updateProperties failed, name must not be empty.");
+        		}
+
+        		so.rename((String) pd.getFirstValue()); // note: this does persist
+        		hasUpdatedName = true;
+        	}
         }
 
         if (hasUpdatedOtherProps) {

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeValidator.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeValidator.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeValidator.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-support/src/main/java/org/apache/chemistry/opencmis/server/support/TypeValidator.java Wed Jan 25 07:58:25 2012
@@ -249,29 +249,32 @@ public class TypeValidator {
 
         List<String> propDefsRequired = getMandatoryPropDefs(typeDef.getPropertyDefinitions());
 
-        for (PropertyData<?> prop : properties.getProperties().values()) {
-            String propertyId = prop.getId();
-            BaseTypeId baseTypeId = typeDef.getBaseTypeId();
-
-            // check that all mandatory attributes are present
-            if (checkMandatory && propDefsRequired.contains(propertyId)) {
-                propDefsRequired.remove(propertyId);
-            }
-
-            if (isSystemProperty(baseTypeId, propertyId))
-             {
-                continue; // ignore system properties for validation
-            }
-
-            // Check if all properties are known in the type
-            if (!typeContainsProperty(typeDef, propertyId)) {
-                throw new CmisConstraintException("Unknown property " + propertyId + " in type " + typeDef.getId());
-            }
-
-            // check all type specific constraints:
-            PropertyDefinition<T> propDef = getPropertyDefinition(typeDef, propertyId);
-            PropertyValidator<T> validator = createPropertyValidator(propDef);
-            validator.validate(propDef, (PropertyData<T>) prop);
+        if(properties != null) {
+			for (PropertyData<?> prop : properties.getProperties().values()) {
+				String propertyId = prop.getId();
+				BaseTypeId baseTypeId = typeDef.getBaseTypeId();
+
+				// check that all mandatory attributes are present
+				if (checkMandatory && propDefsRequired.contains(propertyId)) {
+					propDefsRequired.remove(propertyId);
+				}
+
+				if (isSystemProperty(baseTypeId, propertyId)) {
+					continue; // ignore system properties for validation
+				}
+
+				// Check if all properties are known in the type
+				if (!typeContainsProperty(typeDef, propertyId)) {
+					throw new CmisConstraintException("Unknown property "
+							+ propertyId + " in type " + typeDef.getId());
+				}
+
+				// check all type specific constraints:
+				PropertyDefinition<T> propDef = getPropertyDefinition(typeDef,
+						propertyId);
+				PropertyValidator<T> validator = createPropertyValidator(propDef);
+				validator.validate(propDef, (PropertyData<T>) prop);
+			}
         }
 
         if (checkMandatory && !propDefsRequired.isEmpty()) {

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=1235671&r1=1235670&r2=1235671&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 Wed Jan 25 07:58:25 2012
@@ -30,123 +30,159 @@ import org.apache.chemistry.opencmis.com
 
 /**
  * Session factory for integration tests.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
  */
 public class SessionFactory {
 
-    private static final String HOST = "localhost";
-    private static final int PORT = 19080;
+  private static final String HOST = "localhost";
+  private static final int PORT = 19080;
 
-    private static final String REPOSITORY_ID = "test";
-    private static final String USER = "test";
-    private static final String PASSWORD = "test";
-
-    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.
-     */
-    public static String getRepositoryId() {
-        return REPOSITORY_ID;
-    }
-
-    /**
-     * Returns the user that is logged in.
-     */
-    public static String getUsername() {
-        return USER;
-    }
-
-    /**
-     * Creates a new Session object that uses the AtomPub binding.
-     */
-    public static Session createAtomPubSession() {
-        String url = "http://" + HOST + ":" + PORT + ATOMPUB_PATH;
-
-        Map<String, String> parameters = new HashMap<String, String>();
-
-        parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
-
-        parameters.put(SessionParameter.ATOMPUB_URL, url);
-        parameters.put(SessionParameter.REPOSITORY_ID, getRepositoryId());
-
-        parameters.put(SessionParameter.USER, USER);
-        parameters.put(SessionParameter.PASSWORD, PASSWORD);
-
-        return SessionFactoryImpl.newInstance().createSession(parameters);
-    }
-
-    /**
-     * Creates a new Session object that uses the Web Services binding.
-     */
-    public static Session createWebServicesSession() {
-        String url = "http://" + HOST + ":" + PORT + WEBSERVICES_PATH;
-
-        Map<String, String> parameters = new HashMap<String, String>();
-
-        parameters.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());
-
-        parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "RepositoryService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "NavigationService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "ObjectService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "VersioningService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "DiscoveryService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url + "RelationshipService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url + "MultiFilingService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "PolicyService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "ACLService?wsdl");
-
-        parameters.put(SessionParameter.REPOSITORY_ID, getRepositoryId());
-        parameters.put(SessionParameter.USER, USER);
-        parameters.put(SessionParameter.PASSWORD, PASSWORD);
-
-        return SessionFactoryImpl.newInstance().createSession(parameters);
-    }
-
-    /**
-     * Creates a new CmisProvider object that uses the AtomPub binding. For
-     * low-level tests only!
-     */
-    public static CmisBinding createAtomPubBinding() {
-        String url = "http://" + HOST + ":" + PORT + ATOMPUB_PATH;
-
-        Map<String, String> parameters = new HashMap<String, String>();
-
-        parameters.put(SessionParameter.USER, USER);
-        parameters.put(SessionParameter.PASSWORD, PASSWORD);
-
-        parameters.put(SessionParameter.ATOMPUB_URL, url);
-
-        return CmisBindingFactory.newInstance().createCmisAtomPubBinding(parameters);
-    }
-
-    /**
-     * Creates a new CmisProvider object that uses the Web Services binding. For
-     * low-level tests only!
-     */
-    public static CmisBinding createWebServicesBinding() {
-        String url = "http://" + HOST + ":" + PORT + WEBSERVICES_PATH;
-
-        Map<String, String> parameters = new HashMap<String, String>();
-
-        parameters.put(SessionParameter.USER, USER);
-        parameters.put(SessionParameter.PASSWORD, PASSWORD);
-
-        parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "RepositoryService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "NavigationService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "ObjectService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "VersioningService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "DiscoveryService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url + "RelationshipService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url + "MultiFilingService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "PolicyService?wsdl");
-        parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "ACLService?wsdl");
+  private static final String REPOSITORY_ID = "test";
+  private static final String USER = "test";
+  private static final String PASSWORD = "test";
+
+  private static final String ATOMPUB_PATH = "/opencmis/atom";
+  private static final String WEBSERVICES_PATH = "/opencmis/services/";
+  private static final String BROWSER_PATH = "/opencmis/browser";
+
+  private SessionFactory() {
+  }
+
+  /**
+   * Returns the repository id of the test repository.
+   */
+  public static String getRepositoryId() {
+    return REPOSITORY_ID;
+  }
+
+  /**
+   * Returns the user that is logged in.
+   */
+  public static String getUsername() {
+    return USER;
+  }
+
+  /**
+   * Creates a new Session object that uses the AtomPub binding.
+   */
+  public static Session createAtomPubSession() {
+    String url = "http://" + HOST + ":" + PORT + ATOMPUB_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
+
+    parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
+
+    parameters.put(SessionParameter.ATOMPUB_URL, url);
+    parameters.put(SessionParameter.REPOSITORY_ID, getRepositoryId());
+
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    return SessionFactoryImpl.newInstance().createSession(parameters);
+  }
+
+  /**
+   * Creates a new Session object that uses the Web Services binding.
+   */
+  public static Session createWebServicesSession() {
+    String url = "http://" + HOST + ":" + PORT + WEBSERVICES_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
+
+    parameters.put(SessionParameter.BINDING_TYPE, BindingType.WEBSERVICES.value());
+
+    parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "RepositoryService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "NavigationService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "ObjectService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "VersioningService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "DiscoveryService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url
+        + "RelationshipService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url
+        + "MultiFilingService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "PolicyService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "ACLService?wsdl");
+
+    parameters.put(SessionParameter.REPOSITORY_ID, getRepositoryId());
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    return SessionFactoryImpl.newInstance().createSession(parameters);
+  }
+
+  /**
+   * Creates a new Session object that uses the Browser binding.
+   */
+  public static Session createBrowserSession() {
+    String url = "http://" + HOST + ":" + PORT + BROWSER_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
+
+    parameters.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());
+
+    parameters.put(SessionParameter.BROWSER_URL, url);
+    parameters.put(SessionParameter.REPOSITORY_ID, getRepositoryId());
+
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    return SessionFactoryImpl.newInstance().createSession(parameters);
+  }
+
+  /**
+   * Creates a new CmisBinding object that uses the AtomPub binding. For low-level tests only!
+   */
+  public static CmisBinding createAtomPubBinding() {
+    String url = "http://" + HOST + ":" + PORT + ATOMPUB_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
+
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    parameters.put(SessionParameter.ATOMPUB_URL, url);
+
+    return CmisBindingFactory.newInstance().createCmisAtomPubBinding(parameters);
+  }
+
+  /**
+   * Creates a new CmisBinding object that uses the Web Services binding. For low-level tests only!
+   */
+  public static CmisBinding createWebServicesBinding() {
+    String url = "http://" + HOST + ":" + PORT + WEBSERVICES_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
+
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    parameters.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, url + "RepositoryService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, url + "NavigationService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, url + "ObjectService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, url + "VersioningService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, url + "DiscoveryService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, url
+        + "RelationshipService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, url
+        + "MultiFilingService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, url + "PolicyService?wsdl");
+    parameters.put(SessionParameter.WEBSERVICES_ACL_SERVICE, url + "ACLService?wsdl");
+
+    return CmisBindingFactory.newInstance().createCmisWebServicesBinding(parameters);
+  }
+
+  /**
+   * Creates a new CmisBinding object that uses the AtomPub binding. For low-level tests only!
+   */
+  public static CmisBinding createBrowserBinding() {
+    String url = "http://" + HOST + ":" + PORT + BROWSER_PATH;
+
+    Map<String, String> parameters = new HashMap<String, String>();
 
-        return CmisBindingFactory.newInstance().createCmisWebServicesBinding(parameters);
-    }
+    parameters.put(SessionParameter.USER, USER);
+    parameters.put(SessionParameter.PASSWORD, PASSWORD);
+
+    parameters.put(SessionParameter.BROWSER_URL, url);
+
+    return CmisBindingFactory.newInstance().createCmisBrowserBinding(parameters);
+  }
 }
\ No newline at end of file

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=1235671&r1=1235670&r2=1235671&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 Wed Jan 25 07:58:25 2012
@@ -36,9 +36,6 @@ import org.junit.BeforeClass;
 /**
  * Base class for binding layer tests. It makes sure that the provider object is
  * only created once and that there is a test folder.
- *
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- *
  */
 public abstract class AbstractBindingIT {
     public static String FOLDER_TYPE = "cmis:folder";

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractSimpleBindingIT.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/AbstractSimpleBindingIT.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractSimpleBindingIT.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AbstractSimpleBindingIT.java Wed Jan 25 07:58:25 2012
@@ -40,9 +40,6 @@ import org.junit.Test;
  * Really simple binding layer test. It just contains a few smoke tests to make
  * sure that the provider layer is working properly in the integration test
  * environment.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public abstract class AbstractSimpleBindingIT extends AbstractBindingIT {
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AtomPubSimpleBindingIT.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/AtomPubSimpleBindingIT.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AtomPubSimpleBindingIT.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/AtomPubSimpleBindingIT.java Wed Jan 25 07:58:25 2012
@@ -23,9 +23,6 @@ import org.apache.chemistry.opencmis.fit
 
 /**
  * AtomPub Provider layer test.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class AtomPubSimpleBindingIT extends AbstractSimpleBindingIT {
 

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/BrowserSimpleBindingIT.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/BrowserSimpleBindingIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/BrowserSimpleBindingIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/BrowserSimpleBindingIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.bindings;
+
+import org.apache.chemistry.opencmis.commons.spi.CmisBinding;
+import org.apache.chemistry.opencmis.fit.SessionFactory;
+
+/**
+ * Browser Binding layer test.
+ */
+public class BrowserSimpleBindingIT extends AbstractSimpleBindingIT {
+
+    @Override
+    protected CmisBinding createBinding() {
+        return SessionFactory.createBrowserBinding();
+    }
+
+    @Override
+    protected String getRepositoryId() {
+        return SessionFactory.getRepositoryId();
+    }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/BrowserSimpleBindingIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/WebServicesSimpleBindingIT.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/WebServicesSimpleBindingIT.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/WebServicesSimpleBindingIT.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/bindings/WebServicesSimpleBindingIT.java Wed Jan 25 07:58:25 2012
@@ -23,9 +23,6 @@ import org.apache.chemistry.opencmis.fit
 
 /**
  * Web Services Provider layer test.
- * 
- * @author <a href="mailto:fmueller@opentext.com">Florian M&uuml;ller</a>
- * 
  */
 public class WebServicesSimpleBindingIT extends AbstractSimpleBindingIT {
 

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/Fixture.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/Fixture.java?rev=1235671&r1=1235670&r2=1235671&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/Fixture.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/Fixture.java Wed Jan 25 07:58:25 2012
@@ -34,164 +34,171 @@ import org.apache.commons.logging.LogFac
 import org.junit.runners.model.FrameworkMethod;
 
 /**
- * Definition of unit environment for running test cases. Default implementation
- * supports InMemory binding of OpenCMIS which can be used for stand alone test
- * cases. Within test unit suite it is possible to overwrite the fixture.
+ * Definition of unit environment for running test cases. Default implementation supports InMemory
+ * binding of OpenCMIS which can be used for stand alone test cases. Within test unit suite it is
+ * possible to overwrite the fixture.
  * 
  */
 public class Fixture {
 
-    private String connectionPath = Fixture.CONNECTION_ATOM_PATH;
-    private static final String CONNECTION_ATOM_PATH = "/inmemory.atom.properties";
-    private static final String CONNECTION_WS_PATH = "/inmemory.ws.properties";
-    public static final String SESSION_FACTORY = "org.apache.chemistry.opencmis.fit.runtime.session.factory";
-    public static final String TEST_ROOT_FOLDER_ID = "org.apache.chemistry.opencmis.fit.runtime.root.folder.id";
-
-    private static final Log log = LogFactory.getLog(Fixture.class);
-
-    /*
-     * general
-     */
-    public static String TEST_ROOT_FOLDER_NAME = "fit_" + UUID.randomUUID().toString();
-
-    /*
-     * test data setup
-     */
-    private final FixtureSetup testData = new FixtureSetup(this);
-
-    /**
-     * @return session parameter
-     */
-    public Map<String, String> getParamter() {
-        return parameter;
-    }
-
-    /**
-     * Overwriting default session parameter.
-     * 
-     * @param paramter
-     */
-    public void setParamter(Map<String, String> paramter) {
-        FixtureData.changeValues(paramter);
-        this.parameter = paramter;
-    }
-
-    /**
-     * session parameter.
-     */
-    private Map<String, String> parameter = null;
-
-    /**
-     * Overwriting default session factory.
-     * 
-     * @param factory
-     */
-    public void setSessionFactory(SessionFactory factory) {
-        this.factory = factory;
-    }
-
-    /**
-     * @return factory
-     */
-    public SessionFactory getSessionFactory() {
-        return this.factory;
-    }
-
-    /**
-     * factory
-     */
-    private SessionFactory factory = null;
-
-    public Fixture() {
-    }
-
-    public void init() {
-        /* get optional path from system properties */
-        Properties properties = null;
-        Map<String, String> sessionParameter = null;
-        SessionFactory factory = null;
-        String factoryClassName = null;
-        try {
-            // get settings
-            InputStream in = Fixture.class.getResourceAsStream(this.connectionPath);
-            properties = new Properties();
-            properties.load(in);
-
-            /* convert to map, filter empty values */
-            sessionParameter = new Hashtable<String, String>();
-            for (Entry<Object, Object> se : properties.entrySet()) {
-                String key = (String) se.getKey();
-                String value = ((String) se.getValue()).trim();
-                if (value != null && !"".equalsIgnoreCase(value)) {
-                    sessionParameter.put(key, value);
-                }
-            }
-            this.setParamter(sessionParameter);
-
-            /* load factory class */
-            factoryClassName = sessionParameter.get(Fixture.SESSION_FACTORY);
-            if (factoryClassName != null && !"".equalsIgnoreCase(factoryClassName)) {
-                Class<?> clazz = Class.forName(factoryClassName);
-                factory = (SessionFactory) clazz.newInstance();
-            } else {
-                /* default */
-                factory = SessionFactoryImpl.newInstance();
-            }
-            this.setSessionFactory(factory);
-        } catch (Exception e) {
-            Fixture.log.error(factoryClassName, e);
-            throw new CmisRuntimeException(factoryClassName, e);
-        }
-    }
-
-    public void setUpTestData(Session session) {
-        this.testData.setup();
-    }
-
-    public void teardownTestData(Session session) {
-        this.testData.teardown();
-    }
-
-    private static boolean isHeaderLogged = false;
-
-    public static void logHeader() {
-        if (!Fixture.isHeaderLogged) {
-            /*
-             * log header only once
-             */
-            Fixture.log.info("---------------------------------------------------------------");
-            Fixture.log.info("--- OpenCMIS FIT Test Suite -----------------------------------");
-            Fixture.log.info("---------------------------------------------------------------");
-
-            Fixture.isHeaderLogged = true;
+  private String connectionPath = Fixture.CONNECTION_ATOM_PATH;
+  private static final String CONNECTION_ATOM_PATH = "/inmemory.atom.properties";
+  private static final String CONNECTION_WS_PATH = "/inmemory.ws.properties";
+  private static final String CONNECTION_BROWSER_PATH = "/inmemory.browser.properties";
+  public static final String SESSION_FACTORY = "org.apache.chemistry.opencmis.fit.runtime.session.factory";
+  public static final String TEST_ROOT_FOLDER_ID = "org.apache.chemistry.opencmis.fit.runtime.root.folder.id";
+
+  private static final Log log = LogFactory.getLog(Fixture.class);
+
+  /*
+   * general
+   */
+  public static String TEST_ROOT_FOLDER_NAME = "fit_" + UUID.randomUUID().toString();
+
+  /*
+   * test data setup
+   */
+  private final FixtureSetup testData = new FixtureSetup(this);
+
+  /**
+   * @return session parameter
+   */
+  public Map<String, String> getParamter() {
+    return parameter;
+  }
+
+  /**
+   * Overwriting default session parameter.
+   * 
+   * @param paramter
+   */
+  public void setParamter(Map<String, String> paramter) {
+    FixtureData.changeValues(paramter);
+    this.parameter = paramter;
+  }
+
+  /**
+   * session parameter.
+   */
+  private Map<String, String> parameter = null;
+
+  /**
+   * Overwriting default session factory.
+   * 
+   * @param factory
+   */
+  public void setSessionFactory(SessionFactory factory) {
+    this.factory = factory;
+  }
+
+  /**
+   * @return factory
+   */
+  public SessionFactory getSessionFactory() {
+    return this.factory;
+  }
+
+  /**
+   * factory
+   */
+  private SessionFactory factory = null;
+
+  public Fixture() {
+  }
+
+  public void init() {
+    /* get optional path from system properties */
+    Properties properties = null;
+    Map<String, String> sessionParameter = null;
+    SessionFactory factory = null;
+    String factoryClassName = null;
+    try {
+      // get settings
+      InputStream in = Fixture.class.getResourceAsStream(this.connectionPath);
+      properties = new Properties();
+      properties.load(in);
+
+      /* convert to map, filter empty values */
+      sessionParameter = new Hashtable<String, String>();
+      for (Entry<Object, Object> se : properties.entrySet()) {
+        String key = (String) se.getKey();
+        String value = ((String) se.getValue()).trim();
+        if (value != null && !"".equalsIgnoreCase(value)) {
+          sessionParameter.put(key, value);
         }
-    }
-
-    public <T> void logTestClassContext(Class<T> c, FrameworkMethod method) {
-        Log l = LogFactory.getLog(c);
-        l.info("---------------------------------------------------------------");
-        l.info("test class:         " + c.getName());
-        l.info("test method:        " + method.getName());
-        l.info("session factory:    " + this.getSessionFactory().getClass());
-        l.info("test root id:       " + this.getTestRootId());
-//        l.info("session parameter:  " + this.getParamter());
-        l.info("---------------------------------------------------------------");
-    }
+      }
+      this.setParamter(sessionParameter);
 
-    public void enableAtomPub() {
-        this.connectionPath = Fixture.CONNECTION_ATOM_PATH;
-    }
-
-    public void enableWebServices() {
-        this.connectionPath = Fixture.CONNECTION_WS_PATH;
-    }
-
-    public String getTestRootId() {
-        return this.testData.getTestRootId();
-    }
-
-    public void setConnectionPath(String path) {
-        this.connectionPath = path;
-    }
+      /* load factory class */
+      factoryClassName = sessionParameter.get(Fixture.SESSION_FACTORY);
+      if (factoryClassName != null && !"".equalsIgnoreCase(factoryClassName)) {
+        Class<?> clazz = Class.forName(factoryClassName);
+        factory = (SessionFactory) clazz.newInstance();
+      }
+      else {
+        /* default */
+        factory = SessionFactoryImpl.newInstance();
+      }
+      this.setSessionFactory(factory);
+    }
+    catch (Exception e) {
+      Fixture.log.error(factoryClassName, e);
+      throw new CmisRuntimeException(factoryClassName, e);
+    }
+  }
+
+  public void setUpTestData(Session session) {
+    this.testData.setup();
+  }
+
+  public void teardownTestData(Session session) {
+    this.testData.teardown();
+  }
+
+  private static boolean isHeaderLogged = false;
+
+  public static void logHeader() {
+    if (!Fixture.isHeaderLogged) {
+      /*
+       * log header only once
+       */
+      Fixture.log.info("---------------------------------------------------------------");
+      Fixture.log.info("--- OpenCMIS FIT Test Suite -----------------------------------");
+      Fixture.log.info("---------------------------------------------------------------");
+
+      Fixture.isHeaderLogged = true;
+    }
+  }
+
+  public <T> void logTestClassContext(Class<T> c, FrameworkMethod method) {
+    Log l = LogFactory.getLog(c);
+    l.info("---------------------------------------------------------------");
+    l.info("test class:         " + c.getName());
+    l.info("test method:        " + method.getName());
+    l.info("session factory:    " + this.getSessionFactory().getClass());
+    l.info("test root id:       " + this.getTestRootId());
+    // l.info("session parameter:  " + this.getParamter());
+    l.info("---------------------------------------------------------------");
+  }
+
+  public void enableAtomPub() {
+    this.connectionPath = Fixture.CONNECTION_ATOM_PATH;
+  }
+
+  public void enableWebServices() {
+    this.connectionPath = Fixture.CONNECTION_WS_PATH;
+  }
+
+  public void enableBrowser() {
+    this.connectionPath = Fixture.CONNECTION_BROWSER_PATH;
+  }
+
+  public String getTestRootId() {
+    return this.testData.getTestRootId();
+  }
+
+  public void setConnectionPath(String path) {
+    this.connectionPath = path;
+  }
 
 }

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyAclCapabilityBrowserIT.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/browser/ReadOnlyAclCapabilityBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyAclCapabilityBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyAclCapabilityBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyAclCapabilityIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class ReadOnlyAclCapabilityBrowserIT extends AbstractReadOnlyAclCapabilityIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyAclCapabilityBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyContentStreamBrowserIT.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/browser/ReadOnlyContentStreamBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyContentStreamBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyContentStreamBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyContentStreamIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class ReadOnlyContentStreamBrowserIT extends AbstractReadOnlyContentStreamIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyContentStreamBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyDiscoverBrowserIT.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/browser/ReadOnlyDiscoverBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyDiscoverBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyDiscoverBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyDiscoverIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class ReadOnlyDiscoverBrowserIT extends AbstractReadOnlyDiscoverIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyDiscoverBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyNavigationBrowserIT.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/browser/ReadOnlyNavigationBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyNavigationBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyNavigationBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyNavigationIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class ReadOnlyNavigationBrowserIT extends AbstractReadOnlyNavigationIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyNavigationBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyObjectBrowserIT.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/browser/ReadOnlyObjectBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyObjectBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyObjectBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyObjectIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+/**
+ * Readonly tests on files and documents
+ */
+public class ReadOnlyObjectBrowserIT extends AbstractReadOnlyObjectIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyObjectBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyRepositoryInfoBrowserIT.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/browser/ReadOnlyRepositoryInfoBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyRepositoryInfoBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyRepositoryInfoBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyRepositoryInfoIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+/**
+ * Testing folder and files.
+ */
+public class ReadOnlyRepositoryInfoBrowserIT extends AbstractReadOnlyRepositoryInfoIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyRepositoryInfoBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlySessionBrowserIT.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/browser/ReadOnlySessionBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlySessionBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlySessionBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlySessionIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+/**
+ * Testing session
+ */
+public class ReadOnlySessionBrowserIT extends AbstractReadOnlySessionIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlySessionBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyTypeBrowserIT.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/browser/ReadOnlyTypeBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyTypeBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyTypeBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractReadOnlyTypeIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class ReadOnlyTypeBrowserIT extends AbstractReadOnlyTypeIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/ReadOnlyTypeBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/TransientObjectBrowserIT.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/browser/TransientObjectBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/TransientObjectBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/TransientObjectBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractTransientObjectIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class TransientObjectBrowserIT extends AbstractTransientObjectIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/TransientObjectBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteAclBrowserIT.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/browser/WriteAclBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteAclBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteAclBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteAclT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+import org.junit.Ignore;
+
+@Ignore
+public class WriteAclBrowserIT extends AbstractWriteAclT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    this.fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteAclBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectBrowserIT.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/browser/WriteObjectBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteObjectIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class WriteObjectBrowserIT extends AbstractWriteObjectIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectCopyBrowserIT.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/browser/WriteObjectCopyBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectCopyBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectCopyBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteObjectCopyIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class WriteObjectCopyBrowserIT extends AbstractWriteObjectCopyIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectCopyBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectMoveBrowserIT.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/browser/WriteObjectMoveBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectMoveBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectMoveBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteObjectMoveIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class WriteObjectMoveBrowserIT extends AbstractWriteObjectMoveIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectMoveBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectRelationBrowserIT.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/browser/WriteObjectRelationBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectRelationBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectRelationBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteObjectRelationIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+import org.junit.Ignore;
+
+// relations not yet supported
+@Ignore
+public class WriteObjectRelationBrowserIT extends AbstractWriteObjectRelationIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectRelationBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectVersionBrowserIT.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/browser/WriteObjectVersionBrowserIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectVersionBrowserIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectVersionBrowserIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.browser;
+
+import org.apache.chemistry.opencmis.fit.runtime.AbstractWriteObjectVersionIT;
+import org.apache.chemistry.opencmis.fit.runtime.Fixture;
+
+public class WriteObjectVersionBrowserIT extends AbstractWriteObjectVersionIT {
+
+  @Override
+  public void initFixture(Fixture fixture) {
+    fixture.enableBrowser();
+  }
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/browser/WriteObjectVersionBrowserIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/extensions/BrowserSampleIT.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/extensions/BrowserSampleIT.java?rev=1235671&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/extensions/BrowserSampleIT.java (added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/extensions/BrowserSampleIT.java Wed Jan 25 07:58:25 2012
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.chemistry.opencmis.fit.runtime.extensions;
+
+import org.apache.chemistry.opencmis.client.api.Session;
+import org.apache.chemistry.opencmis.fit.SessionFactory;
+
+/**
+ * Browser binding extension test.
+ */
+public class BrowserSampleIT extends AbstractExtensionTestIT {
+
+    @Override
+    protected Session createSession() {
+        return SessionFactory.createBrowserSession();
+    }
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-fit/src/test/java/org/apache/chemistry/opencmis/fit/runtime/extensions/BrowserSampleIT.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message