}
}
public void test052_get_attribute() {
try {
Chronicle ent = db.getChronicle("bt.fooent", true);
Attribute<String> attr = ent.getAttribute("foo property", true).typeCheck(String.class);
assertEquals("baz", attr.get());
assertEquals("this is baz", attr.getDescription(true));
assertEquals(null, attr.getDescription(false));
assertEquals("this is baz", attr.getProperty().getValueType().getValueDescriptions().get("baz"));
AttributeDefinition<String> def = ent.getSchema(true).getAttributeDefinition("foo property", true).typeCheck(String.class);
assertEquals("bar", def.getAttribute().get());
assertEquals("it's bar", def.getAttribute().getDescription(true));
assertEquals(null, def.getAttribute().getDescription(false));
} catch (Exception e) {
fail(e.getMessage());