Feature #3805: Document lock in ruby & java oca

This commit is contained in:
Carlos Martín committed 2015-05-12 12:53:01 +02:00
1 parent 9f21f40272
commit da8ccbb0f1
5 files changed
+93 -3

No files matched your search

+15
View File
@@ -145,4 +145,19 @@ public class DocumentTest
assertTrue( !foundA );
assertTrue( foundB );
}
@Test
public void lock()
{
res = objA.lock("doctest");
assertTrue( res.getErrorMessage(), !res.isError() );
assertTrue( res.getMessage(), res.getBooleanMessage() == true );
res = objA.lock("doctest");
assertTrue( res.getErrorMessage(), !res.isError() );
assertTrue( res.getMessage(), res.getBooleanMessage() == false );
res = objA.unlock("doctest");
assertTrue( res.getErrorMessage(), !res.isError() );
}
}