[AB-xxx] adding tests for command management services

some code improvements
This commit is contained in:
Sheldan
2024-04-07 14:59:22 +02:00
parent 02b8ed2b5d
commit 250df57bd0
27 changed files with 777 additions and 38 deletions

View File

@@ -9,7 +9,6 @@ import java.util.List;
public interface CommandInServerManagementService {
ACommandInAServer createCommandInServer(ACommand command, AServer server);
ACommandInAServer createCommandInServer(ACommand command, AServer server, Long commandId);
boolean doesCommandExistInServer(ACommand command, AServer server);
ACommandInAServer getCommandForServer(ACommand command, AServer server);
void setCooldownForCommandInServer(ACommand command, AServer server, Duration duration);

View File

@@ -8,7 +8,6 @@ import java.util.List;
import java.util.Optional;
public interface CommandManagementService {
ACommand createCommand(String name, String moduleName, String featureName);
ACommand createCommand(String name, AModule moduleName, AFeature feature);
Optional<ACommand> findCommandByNameOptional(String name);
ACommand findCommandByName(String name);