use of org.xwiki.model.reference.ObjectPropertyReference in project xwiki-platform by xwiki.
the class LESSObjectPropertyResourceReferenceTest method getContent.
@Test
public void getContent() throws Exception {
ObjectPropertyReference objectPropertyReference = new ObjectPropertyReference("property", new ObjectReference("class", new DocumentReference("wiki", "Space", "Document")));
LESSObjectPropertyResourceReference lessObjectPropertyResourceReference = new LESSObjectPropertyResourceReference(objectPropertyReference, entityReferenceSerializer, bridge);
// Mock
when(bridge.getProperty(eq(objectPropertyReference))).thenReturn("content");
// Test
assertEquals("content", lessObjectPropertyResourceReference.getContent("skin"));
}
Aggregations