Search in sources :

Example 6 with RawResourceFieldAccessor

use of io.crnk.core.engine.internal.information.resource.RawResourceFieldAccessor in project crnk-framework by crnk-project.

the class RawResourceFieldAccessorTest method writeNotSupported.

@Test(expected = UnsupportedOperationException.class)
public void writeNotSupported() {
    RawResourceFieldAccessor accessor = new RawResourceFieldAccessor("name", ResourceFieldType.ATTRIBUTE, String.class);
    Object value = "Doe";
    accessor.setValue(resource, value);
}
Also used : RawResourceFieldAccessor(io.crnk.core.engine.internal.information.resource.RawResourceFieldAccessor) Test(org.junit.Test)

Aggregations

RawResourceFieldAccessor (io.crnk.core.engine.internal.information.resource.RawResourceFieldAccessor)6 Test (org.junit.Test)6 ResourceIdentifier (io.crnk.core.engine.document.ResourceIdentifier)1