use of io.jawg.osmcontributor.model.utils.OpeningMonth in project osm-contributor by jawg.
the class OpeningMonthValueParserTest method nonStop1.
@Test
public void nonStop1() {
OpeningMonth openingMonth = new OpeningMonth();
OpeningHours openingHours = new OpeningHours();
openingHours.setDayActivated(0, true);
openingHours.setDayActivated(1, true);
openingHours.setDayActivated(2, true);
openingHours.setDayActivated(3, true);
openingHours.setDayActivated(4, true);
openingHours.setDayActivated(5, true);
openingHours.setDayActivated(6, true);
openingMonth.addOpeningHours(openingHours);
openingHours.setFromTime(new LocalTime(23, 59));
openingHours.setToTime(new LocalTime(23, 58));
Assert.assertEquals(parser.toValue(openingMonth), "24/7");
}
Aggregations