Fixing Tests
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib-couchbase@122621 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f9f9f69910
commit
f7eb0687a3
|
@ -37,6 +37,19 @@ public class PersistenceCouchBaseTest {
|
|||
Assert.assertEquals(0, r.compareTo(record));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testJsonNodeUsageRecordConversionsWithNestedMap() throws Exception {
|
||||
ScopeProvider.instance.set("/gcube/devNext");
|
||||
Record record = TestUsageRecord.createTestTaskUsageRecordAutomaticScope();
|
||||
logger.debug("UsageRecord : {}", record.toString());
|
||||
JsonNode node = PersistenceCouchBase.usageRecordToJsonNode(record);
|
||||
logger.debug("Node : {}", node.toString());
|
||||
Record r = PersistenceCouchBase.jsonNodeToUsageRecord(node);
|
||||
Assert.assertEquals(0, record.compareTo(r));
|
||||
Assert.assertEquals(0, r.compareTo(record));
|
||||
}
|
||||
|
||||
|
||||
public void testProxyWithTestConfiguration() throws Exception{
|
||||
// Production-Preproduction Nodes
|
||||
URL url = new URL("http://pc-frosini.isti.cnr.it");
|
||||
|
|
Reference in New Issue