Search in sources :

Example 1 with VarargPrimaryKey

use of gov.ca.cwds.data.persistence.cms.VarargPrimaryKey in project API by ca-cwds.

the class CmsDocumentBlobSegmentTest method testGetPrimaryKeyGood.

@Test
public void testGetPrimaryKeyGood() throws Exception {
    VarargPrimaryKey pk = new VarargPrimaryKey(docHandle, segmentSequence);
    CmsDocumentBlobSegment blob = new CmsDocumentBlobSegment(docHandle, segmentSequence, docBlob);
    assertThat(blob.getPrimaryKey().toString(), is(equalTo(pk.toString())));
}
Also used : CmsDocumentBlobSegment(gov.ca.cwds.data.persistence.cms.CmsDocumentBlobSegment) VarargPrimaryKey(gov.ca.cwds.data.persistence.cms.VarargPrimaryKey) Test(org.junit.Test)

Aggregations

CmsDocumentBlobSegment (gov.ca.cwds.data.persistence.cms.CmsDocumentBlobSegment)1 VarargPrimaryKey (gov.ca.cwds.data.persistence.cms.VarargPrimaryKey)1 Test (org.junit.Test)1