use of com.epam.pipeline.entity.utils.DefaultSystemParameter in project cloud-pipeline by epam.
the class UtilsManagerTest method testGetSystemParameters.
@Test
@Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Throwable.class)
public void testGetSystemParameters() throws IOException {
File parametersJson = context.getResource("classpath:templates/default_parameters.json").getFile();
Preference pref = SystemPreferences.LAUNCH_SYSTEM_PARAMETERS.toPreference();
pref.setValue(Files.readAllLines(parametersJson.toPath()).stream().collect(Collectors.joining()));
preferenceManager.update(Collections.singletonList(pref));
List<DefaultSystemParameter> params = utilsManager.getSystemParameters();
Assert.assertFalse(params.isEmpty());
}
Aggregations