Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Some tests against an Alfresco repository using the OpenCmis Java API

Notifications You must be signed in to change notification settings

springyweb/alfresco-cmis-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is simply a set of unit tests deisgned to run against an Alfresco > 3.3.x repository.

It was put together as a CMIS/OpenCmis/"Alfresco OpenCMIS Extension" learning exercise.

Note: These tests both create content and then search for it. The eventual consistency offered by the solr indexing subsystem is not suitable for this kind of test.

--Environment setup

#Install maven

Note: This has been tested with maven 3.0.2

#Ensure that the lucence subsystem is being used for indexing

Therefore ensure that you set lucene as the indexing subsystem before running these tests.  

To do this ensure thea the following property is set in alfresco-global.properties.

index.subsystem.name=lucene 

and not

index.subsystem.name=solr

#Configure the DateTime analyzer
Note: For the datetime tests to work follow the instructions for changing the lucene analyzer (http://wiki.alfresco.com/wiki/CMIS_Query_Language#Configuring_DateTime_resolution)

#Deploy the custom content model
Dynamically deploy the custom model from src/test/resources/model/cmis-test-model.xml (Follow http://wiki.alfresco.com/wiki/Dynamic_Models#Deploying_and_activating_a_custom_model)

----Running the tests ----

By default it expects Alfresco running locally on port 8080 with the default admin/admin credentials.
With the Alfresco server running run: 

mvn clean test

About

Some tests against an Alfresco repository using the OpenCmis Java API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages