Nachbearbeitung: Konfigurationslade- und Parsefehler einheitlich
klassifiziert
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@ package de.gecheckt.pdf.umbenenner.bootstrap;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.in.cli.SchedulerBatchCommand;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation.InvalidStartConfigurationException;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.bootstrap.validation.StartConfigurationValidator;
|
||||
import de.gecheckt.pdf.umbenenner.adapter.out.configuration.ConfigurationLoadingException;
|
||||
import de.gecheckt.pdf.umbenenner.application.config.startup.StartConfiguration;
|
||||
import de.gecheckt.pdf.umbenenner.application.port.in.BatchRunOutcome;
|
||||
import de.gecheckt.pdf.umbenenner.application.port.in.BatchRunProcessingUseCase;
|
||||
@@ -81,7 +82,7 @@ class BootstrapRunnerTest {
|
||||
@Test
|
||||
void run_returnsOneOnConfigurationLoadingFailure() {
|
||||
ConfigurationPort failingConfigPort = () -> {
|
||||
throw new IllegalStateException("Simulated configuration loading failure");
|
||||
throw new ConfigurationLoadingException("Simulated configuration loading failure");
|
||||
};
|
||||
|
||||
BootstrapRunner runner = new BootstrapRunner(
|
||||
|
||||
Reference in New Issue
Block a user