On 2016-02-25 12:42, Ancona Francesco wrote:
Hi,
I had run the same test changing only the  DocumentNodeStore type as in the 
following code:

final DocumentMK.Builder builder = new DocumentMK.Builder(); 
builder.setBlobStore(createFileSystemBlobStore());
final DocumentNodeStore ns = getMongoDocumentNodeStore(builder);

private DB db = new MongoClient("127.0.0.1", 27017).getDB("test2");
private DocumentNodeStore getMongoDocumentNodeStore(DocumentMK.Builder builder) 
{
                 DocumentNodeStore ns = null;
                 if (builder == null) {
                                ns = new DocumentMK.Builder().
                             setMongoDB(db).getNodeStore();
                 } else {
                     ns = builder.
                             setMongoDB(db).getNodeStore();
                 }
                 return ns;
}

With mongo i had run the test without errors.

Best regards

OK.

Questions:

1) Where do you get the datasource from?

2) Did you have a look at the OAK logs?

Other than that...:

In Oak, we have tons of JCR tests that pass on RDB with Postgres, so something that you do apparently is different from how it's done in our test setup.

You could either look at how the repo is constructed in the tests, or alternatively, try to change your code so that it can be run as unit test in Oak.

Best regards, Julian


Reply via email to