test_class.declarator: cleaner
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private PreparationCleaner cleaner;
test_class.type: PreparationCleaner
test_class.var_name: cleaner
test_class.declarator: repository
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PreparationRepository repository;
test_class.type: PreparationRepository
test_class.var_name: repository
test_class.declarator: marker
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private StepMarker marker;
test_class.type: StepMarker
test_class.var_name: marker
test_class.file: dataprep-maintenance/src/test/java/org/talend/dataprep/maintenance/preparation/PreparationCleanerTest.java
test_class.identifier: PreparationCleanerTest
test_class.superclass: extends BaseMaintenanceTest
test_case.body: @Test
      public void shouldInterruptWhenMarkerAsksForInterruption() {
          // given
          cleaner.setMarkers(Collections.singletonList(marker));
          when(marker.mark(any(), any(UUID.class))).thenReturn(StepMarker.Result.INTERRUPTED);
  
          // when
          cleaner.execute();
  
          // then
          verify(repository, never()).remove(refEq(Step.class), any(Expression.class));
      }
test_case.class_method_signature: PreparationCleanerTest.shouldInterruptWhenMarkerAsksForInterruption()
test_case.full_signature: @Test public void shouldInterruptWhenMarkerAsksForInterruption()
test_case.identifier: shouldInterruptWhenMarkerAsksForInterruption
test_case.invocations: setMarkers singletonList thenReturn when mark any any execute remove verify never refEq any
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldInterruptWhenMarkerAsksForInterruption()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(PreparationCleaner.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(PreparationCleaner.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: MARKER = "marker"
focal_class.modifier: private static final
focal_class.original_string: private static final String MARKER = "marker";
focal_class.type: String
focal_class.var_name: MARKER
focal_class.declarator: repository
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private PreparationRepository repository;
focal_class.type: PreparationRepository
focal_class.var_name: repository
focal_class.declarator: securityProxy
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityProxy securityProxy;
focal_class.type: SecurityProxy
focal_class.var_name: securityProxy
focal_class.declarator: markers = new ArrayList<>()
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private List<StepMarker> markers = new ArrayList<>();
focal_class.type: List<StepMarker>
focal_class.var_name: markers
focal_class.declarator: forAll
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private ForAll forAll;
focal_class.type: ForAll
focal_class.var_name: forAll
focal_class.file: dataprep-maintenance/src/main/java/org/talend/dataprep/maintenance/preparation/PreparationCleaner.java
focal_class.identifier: PreparationCleaner
focal_class.interfaces: implements MaintenanceTaskProcess
focal_class.class_method_signature: PreparationCleaner.performTask()
focal_class.full_signature: @Override public void performTask()
focal_class.identifier: performTask
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void performTask()
focal_class.class_method_signature: PreparationCleaner.condition()
focal_class.full_signature: @Override public Supplier<Boolean> condition()
focal_class.identifier: condition
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Supplier<Boolean>
focal_class.signature: Supplier<Boolean> condition()
focal_class.class_method_signature: PreparationCleaner.getFrequency()
focal_class.full_signature: @Override public ScheduleFrequency getFrequency()
focal_class.identifier: getFrequency
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ScheduleFrequency
focal_class.signature: ScheduleFrequency getFrequency()
focal_class.class_method_signature: PreparationCleaner.removeCurrentOrphanSteps()
focal_class.full_signature: private void removeCurrentOrphanSteps()
focal_class.identifier: removeCurrentOrphanSteps
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void removeCurrentOrphanSteps()
focal_class.class_method_signature: PreparationCleaner.setMarkers(List<StepMarker> markers)
focal_class.full_signature: public void setMarkers(List<StepMarker> markers)
focal_class.identifier: setMarkers
focal_class.modifiers: public
focal_class.parameters: (List<StepMarker> markers)
focal_class.return: void
focal_class.signature: void setMarkers(List<StepMarker> markers)
focal_method.body: public void setMarkers(List<StepMarker> markers) {
          this.markers = markers;
      }
focal_method.class_method_signature: PreparationCleaner.setMarkers(List<StepMarker> markers)
focal_method.full_signature: public void setMarkers(List<StepMarker> markers)
focal_method.identifier: setMarkers
focal_method.modifiers: public
focal_method.parameters: (List<StepMarker> markers)
focal_method.return: void
focal_method.signature: void setMarkers(List<StepMarker> markers)