Ejemplo n.º 1
0
 @JsonIgnore
 public Period getWindowEnd(WindowName windowName) {
   MutablePeriod period = new MutablePeriod();
   for (MilestoneWindow window : windows) {
     period.add(window.getPeriod());
     if (window.getName().equals(windowName)) {
       break;
     }
   }
   return period.toPeriod();
 }
Ejemplo n.º 2
0
 public void testSetInto_Object() throws Exception {
   MutablePeriod m = new MutablePeriod(PeriodType.millis());
   NullConverter.INSTANCE.setInto(m, null, null);
   assertEquals(0L, m.getMillis());
 }