test_class.declarator: repository
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private PreparationRepository repository;
test_class.type: PreparationRepository
test_class.var_name: repository
test_class.declarator: versionService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private VersionService versionService;
test_class.type: VersionService
test_class.var_name: versionService
test_class.declarator: preparationUtils
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private PreparationUtils preparationUtils;
test_class.type: PreparationUtils
test_class.var_name: preparationUtils
test_class.file: dataprep-backend-service/src/test/java/org/talend/dataprep/api/preparation/PreparationUtilsTest.java
test_class.identifier: PreparationUtilsTest
test_class.superclass: extends ServiceBaseTest
test_case.body: @Test
      public void should_list_steps_history_from_root() {
          // given
          final List<Action> actions = getSimpleAction("uppercase", "column_name", "lastname");
          final PreparationActions newContent1 = PreparationActions.ROOT_ACTIONS.append(actions);
          final PreparationActions newContent2 = newContent1.append(actions);
  
          final String version = versionService.version().getVersionId();
          final Step step1 = new Step(Step.ROOT_STEP.id(), newContent1.id(), version);
          final Step step2 = new Step(step1.id(), newContent2.id(), version);
  
          repository.add(newContent1);
          repository.add(newContent2);
          repository.add(step1);
          repository.add(step2);
  
          // when
          List<Step> steps = preparationUtils.listSteps(step1.id(), repository);
  
          // then
          assertThat(steps, hasItem(Step.ROOT_STEP));
          assertThat(steps, hasItem(step1));
          assertThat(steps, not(hasItem(step2)));
  
          // when
          steps = preparationUtils.listSteps(step2.id(), repository);
  
          // then
          assertThat(steps, hasItem(Step.ROOT_STEP));
          assertThat(steps, hasItem(step1));
          assertThat(steps, hasItem(step2));
      }
test_case.class_method_signature: PreparationUtilsTest.should_list_steps_history_from_root()
test_case.full_signature: @Test public void should_list_steps_history_from_root()
test_case.identifier: should_list_steps_history_from_root
test_case.invocations: getSimpleAction append append getVersionId version id id id id add add add add listSteps id assertThat hasItem assertThat hasItem assertThat not hasItem listSteps id assertThat hasItem assertThat hasItem assertThat hasItem
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_list_steps_history_from_root()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(PreparationUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(PreparationUtils.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: dataprep-backend-service/src/main/java/org/talend/dataprep/api/preparation/PreparationUtils.java
focal_class.identifier: PreparationUtils
focal_class.class_method_signature: PreparationUtils.prettyPrint(PreparationRepository repository, String stepId, OutputStream out)
focal_class.full_signature: private static void prettyPrint(PreparationRepository repository, String stepId, OutputStream out)
focal_class.identifier: prettyPrint
focal_class.modifiers: private static
focal_class.parameters: (PreparationRepository repository, String stepId, OutputStream out)
focal_class.return: void
focal_class.signature: void prettyPrint(PreparationRepository repository, String stepId, OutputStream out)
focal_class.class_method_signature: PreparationUtils.prettyPrint(PreparationActions blob, OutputStream out)
focal_class.full_signature: private static void prettyPrint(PreparationActions blob, OutputStream out)
focal_class.identifier: prettyPrint
focal_class.modifiers: private static
focal_class.parameters: (PreparationActions blob, OutputStream out)
focal_class.return: void
focal_class.signature: void prettyPrint(PreparationActions blob, OutputStream out)
focal_class.class_method_signature: PreparationUtils.prettyPrint(PreparationRepository repository, Preparation preparation, OutputStream out)
focal_class.full_signature: public static void prettyPrint(PreparationRepository repository, Preparation preparation, OutputStream out)
focal_class.identifier: prettyPrint
focal_class.modifiers: public static
focal_class.parameters: (PreparationRepository repository, Preparation preparation, OutputStream out)
focal_class.return: void
focal_class.signature: void prettyPrint(PreparationRepository repository, Preparation preparation, OutputStream out)
focal_class.class_method_signature: PreparationUtils.scatter(Identifiable source)
focal_class.full_signature: public static Collection<Identifiable> scatter(Identifiable source)
focal_class.identifier: scatter
focal_class.modifiers: public static
focal_class.parameters: (Identifiable source)
focal_class.return: Collection<Identifiable>
focal_class.signature: Collection<Identifiable> scatter(Identifiable source)
focal_class.class_method_signature: PreparationUtils.walk(Object object, Predicate<Object> callback)
focal_class.full_signature: private static void walk(Object object, Predicate<Object> callback)
focal_class.identifier: walk
focal_class.modifiers: private static
focal_class.parameters: (Object object, Predicate<Object> callback)
focal_class.return: void
focal_class.signature: void walk(Object object, Predicate<Object> callback)
focal_class.class_method_signature: PreparationUtils.__listSteps(final List<Step> steps, final String limit, final Step step,
              final PreparationRepository repository)
focal_class.full_signature: private void __listSteps(final List<Step> steps, final String limit, final Step step,
              final PreparationRepository repository)
focal_class.identifier: __listSteps
focal_class.modifiers: private
focal_class.parameters: (final List<Step> steps, final String limit, final Step step,
              final PreparationRepository repository)
focal_class.return: void
focal_class.signature: void __listSteps(final List<Step> steps, final String limit, final Step step,
              final PreparationRepository repository)
focal_class.class_method_signature: PreparationUtils.listStepsIds(final String stepId, final PreparationRepository repository)
focal_class.full_signature: public List<String> listStepsIds(final String stepId, final PreparationRepository repository)
focal_class.identifier: listStepsIds
focal_class.modifiers: public
focal_class.parameters: (final String stepId, final PreparationRepository repository)
focal_class.return: List<String>
focal_class.signature: List<String> listStepsIds(final String stepId, final PreparationRepository repository)
focal_class.class_method_signature: PreparationUtils.listStepsIds(final String stepId, final String limit, final PreparationRepository repository)
focal_class.full_signature: public List<String> listStepsIds(final String stepId, final String limit, final PreparationRepository repository)
focal_class.identifier: listStepsIds
focal_class.modifiers: public
focal_class.parameters: (final String stepId, final String limit, final PreparationRepository repository)
focal_class.return: List<String>
focal_class.signature: List<String> listStepsIds(final String stepId, final String limit, final PreparationRepository repository)
focal_class.class_method_signature: PreparationUtils.listSteps(String headStepId, PreparationRepository repository)
focal_class.full_signature: public List<Step> listSteps(String headStepId, PreparationRepository repository)
focal_class.identifier: listSteps
focal_class.modifiers: public
focal_class.parameters: (String headStepId, PreparationRepository repository)
focal_class.return: List<Step>
focal_class.signature: List<Step> listSteps(String headStepId, PreparationRepository repository)
focal_class.class_method_signature: PreparationUtils.listSteps(final Step step, final String limit, final PreparationRepository repository)
focal_class.full_signature: public List<Step> listSteps(final Step step, final String limit, final PreparationRepository repository)
focal_class.identifier: listSteps
focal_class.modifiers: public
focal_class.parameters: (final Step step, final String limit, final PreparationRepository repository)
focal_class.return: List<Step>
focal_class.signature: List<Step> listSteps(final Step step, final String limit, final PreparationRepository repository)
focal_class.class_method_signature: PreparationUtils.getPreparationIdForStepRowMetadata(final List<String> stepRowMetadataUpdated,
              final PreparationRepository repository)
focal_class.full_signature: public static List<String> getPreparationIdForStepRowMetadata(final List<String> stepRowMetadataUpdated,
              final PreparationRepository repository)
focal_class.identifier: getPreparationIdForStepRowMetadata
focal_class.modifiers: public static
focal_class.parameters: (final List<String> stepRowMetadataUpdated,
              final PreparationRepository repository)
focal_class.return: List<String>
focal_class.signature: List<String> getPreparationIdForStepRowMetadata(final List<String> stepRowMetadataUpdated,
              final PreparationRepository repository)
focal_method.body: public List<Step> listSteps(String headStepId, PreparationRepository repository) {
          return listSteps(repository.get(headStepId, Step.class), Step.ROOT_STEP.getId(), repository);
      }
focal_method.class_method_signature: PreparationUtils.listSteps(String headStepId, PreparationRepository repository)
focal_method.full_signature: public List<Step> listSteps(String headStepId, PreparationRepository repository)
focal_method.identifier: listSteps
focal_method.invocations: listSteps get getId
focal_method.modifiers: public
focal_method.parameters: (String headStepId, PreparationRepository repository)
focal_method.return: List<Step>
focal_method.signature: List<Step> listSteps(String headStepId, PreparationRepository repository)