use of nl.knaw.huygens.timbuctoo.model.Datable in project timbuctoo by HuygensING.
the class DatableTest method testGetLowerLimit.
@Test
public void testGetLowerLimit() {
Datable datable = new Datable("2013");
assertThat(datable.getLowerLimit(), equalTo(getStringAsObject("20130101")));
}
use of nl.knaw.huygens.timbuctoo.model.Datable in project timbuctoo by HuygensING.
the class DatableTest method testIsValidRangeWithUnknownPattern.
@Test
public void testIsValidRangeWithUnknownPattern() {
Datable rangeWithoutUnknown = new Datable("unknown");
assertThat(rangeWithoutUnknown.isValid(), is(false));
}
Aggregations