M1 Vollständiger Grundstand mit Build, Konfiguration, Tests und Smoke-Tests
This commit is contained in:
42
pdf-umbenenner-adapter-in-cli/pom.xml
Normal file
42
pdf-umbenenner-adapter-in-cli/pom.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>de.gecheckt</groupId>
|
||||
<artifactId>pdf-umbenenner-parent</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<artifactId>pdf-umbenenner-adapter-in-cli</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<!-- Internal dependencies -->
|
||||
<dependency>
|
||||
<groupId>de.gecheckt</groupId>
|
||||
<artifactId>pdf-umbenenner-application</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>de.gecheckt</groupId>
|
||||
<artifactId>pdf-umbenenner-domain</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Test dependencies -->
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -0,0 +1 @@
|
||||
# Keep directory
|
||||
@@ -0,0 +1,34 @@
|
||||
package de.gecheckt.pdf.umbenenner.adapter.inbound.cli;
|
||||
|
||||
import de.gecheckt.pdf.umbenenner.application.port.in.RunBatchProcessingUseCase;
|
||||
|
||||
/**
|
||||
* CLI command adapter for batch processing scheduling.
|
||||
* <p>
|
||||
* This class acts as the technical entry point that delegates to the application layer.
|
||||
* AP-003 Implementation: Minimal no-op command to validate the call chain from CLI to Application.
|
||||
*/
|
||||
public class SchedulerBatchCommand {
|
||||
|
||||
private final RunBatchProcessingUseCase useCase;
|
||||
|
||||
/**
|
||||
* Creates a new SchedulerBatchCommand with the given use case.
|
||||
*
|
||||
* @param useCase the batch processing use case to delegate to
|
||||
*/
|
||||
public SchedulerBatchCommand(RunBatchProcessingUseCase useCase) {
|
||||
this.useCase = useCase;
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes the batch processing command.
|
||||
* <p>
|
||||
* AP-003: Delegates to the use case without any additional logic.
|
||||
*
|
||||
* @return true if execution succeeded, false otherwise
|
||||
*/
|
||||
public boolean run() {
|
||||
return useCase.execute();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* CLI adapter for inbound commands.
|
||||
* This package contains the technical entry points that delegate to application use cases.
|
||||
* <p>
|
||||
* AP-003: Contains minimal command classes for validating the startup path.
|
||||
*/
|
||||
package de.gecheckt.pdf.umbenenner.adapter.inbound.cli;
|
||||
1
pdf-umbenenner-adapter-in-cli/src/test/java/.gitkeep
Normal file
1
pdf-umbenenner-adapter-in-cli/src/test/java/.gitkeep
Normal file
@@ -0,0 +1 @@
|
||||
# Keep directory
|
||||
@@ -0,0 +1 @@
|
||||
# Keep directory
|
||||
Reference in New Issue
Block a user