AddSchemaInPreparations implements BaseUpgradeTaskTo_2_1_0_PE { @Override public void run() { LOGGER.info("Starting to add row metadata to preparations."); preparationDatasetRowUpdater.updatePreparations(fileSystemPreparationRepository); LOGGER.info("Row metadata added to preparations."); }  @Override void run(); @Override int getOrder(); @Override target getTarget();  }
@Test public void integrationTest() throws Exception { assertTrue(fileSystemPreparationRepository.list(Preparation.class).allMatch(p -> p.getRowMetadata() == null)); task.run(); assertTrue(fileSystemPreparationRepository.list(Preparation.class).allMatch(p -> p.getRowMetadata() != null)); }