101112131415161718
@RunWith(JUnit4.class) public class ValueTest { @Test public void testLongConversion() { for (long i = 0; i < 10000; i++) { Value value = new Value(new Long(i)); assertEquals(i, value.toLong().longValue()); } }
141516171819202122
public AuditEntity() { super(NAME); } public String getAnalyzedBy () { Value value = get(ANALYZED_BY); return value != null ? Value.toString(get(ANALYZED_BY)) : null; }