@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); when(bridge.getProperty(eq(objectPropertyReference))).thenReturn("content"); assertEquals("content", lessObjectPropertyResourceReference.getContent("skin")); }
@Override public String getContent(String skin) throws LESSCompilerException { return (String) bridge.getProperty(objectPropertyReference); }
LESSObjectPropertyResourceReference implements LESSResourceReference { @Override public String getContent(String skin) throws LESSCompilerException { return (String) bridge.getProperty(objectPropertyReference); } }
LESSObjectPropertyResourceReference implements LESSResourceReference { @Override public String getContent(String skin) throws LESSCompilerException { return (String) bridge.getProperty(objectPropertyReference); } LESSObjectPropertyResourceReference(ObjectPropertyReference objectPropertyReference, 
            EntityReferenceSerializer<String> entityReferenceSerializer,
            DocumentAccessBridge bridge); }
LESSObjectPropertyResourceReference implements LESSResourceReference { @Override public String getContent(String skin) throws LESSCompilerException { return (String) bridge.getProperty(objectPropertyReference); } LESSObjectPropertyResourceReference(ObjectPropertyReference objectPropertyReference, 
            EntityReferenceSerializer<String> entityReferenceSerializer,
            DocumentAccessBridge bridge); @Override boolean equals(Object o); @Override int hashCode(); @Override String getContent(String skin); @Override String serialize(); }
LESSObjectPropertyResourceReference implements LESSResourceReference { @Override public String getContent(String skin) throws LESSCompilerException { return (String) bridge.getProperty(objectPropertyReference); } LESSObjectPropertyResourceReference(ObjectPropertyReference objectPropertyReference, 
            EntityReferenceSerializer<String> entityReferenceSerializer,
            DocumentAccessBridge bridge); @Override boolean equals(Object o); @Override int hashCode(); @Override String getContent(String skin); @Override String serialize();  }