@Test public void scheduled_annotatin_has_no_content_results_in_not_null_but_empty_type_and_definition() { SpringScheduleExtractor.SpringSchedule extracted = extractorToTest.extract(annotation); assertNotNull(extracted); assertEquals("", extracted.getScheduleDefinition()); assertEquals(ScheduleType.UNDEFINED, extracted.getScheduleType()); }
public SpringSchedule extract(Scheduled springScheduled) { SpringSchedule data = extractSimpleString(springScheduled); if (getValueExtractor().isSpringValue(data.scheduleDefinition)) { SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition); data.scheduleDefinition= extracted.toDescription(); data.scheduleKey=extracted.getKey(); data.scheduleDefaultValue=extracted.getDefaultValue(); } return data; }
SpringScheduleExtractor { public SpringSchedule extract(Scheduled springScheduled) { SpringSchedule data = extractSimpleString(springScheduled); if (getValueExtractor().isSpringValue(data.scheduleDefinition)) { SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition); data.scheduleDefinition= extracted.toDescription(); data.scheduleKey=extracted.getKey(); data.scheduleDefaultValue=extracted.getDefaultValue(); } return data; } }
SpringScheduleExtractor { public SpringSchedule extract(Scheduled springScheduled) { SpringSchedule data = extractSimpleString(springScheduled); if (getValueExtractor().isSpringValue(data.scheduleDefinition)) { SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition); data.scheduleDefinition= extracted.toDescription(); data.scheduleKey=extracted.getKey(); data.scheduleDefaultValue=extracted.getDefaultValue(); } return data; }  }
SpringScheduleExtractor { public SpringSchedule extract(Scheduled springScheduled) { SpringSchedule data = extractSimpleString(springScheduled); if (getValueExtractor().isSpringValue(data.scheduleDefinition)) { SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition); data.scheduleDefinition= extracted.toDescription(); data.scheduleKey=extracted.getKey(); data.scheduleDefaultValue=extracted.getDefaultValue(); } return data; }  SpringSchedule extract(Scheduled springScheduled); }
SpringScheduleExtractor { public SpringSchedule extract(Scheduled springScheduled) { SpringSchedule data = extractSimpleString(springScheduled); if (getValueExtractor().isSpringValue(data.scheduleDefinition)) { SpringValue extracted = getValueExtractor().extract(data.scheduleDefinition); data.scheduleDefinition= extracted.toDescription(); data.scheduleKey=extracted.getKey(); data.scheduleDefaultValue=extracted.getDefaultValue(); } return data; }  SpringSchedule extract(Scheduled springScheduled);  }