Fix AssertionUtils.SimpleAssertion.assertNoInitialize

This commit is contained in:
2025-11-23 21:20:08 +01:00
parent ef61cf455d
commit e9d814bc95
2 changed files with 3 additions and 2 deletions
@@ -32,5 +32,5 @@ dependencies {
testImplementation(project(":CommandFramework:CommandFrameworkBase", "default"))
testAnnotationProcessor(project(":CommandFramework:CommandFrameworkAnnotationProcessor", "default"))
// testAnnotationProcessor(project(":CommandFramework:CommandFrameworkAnnotationProcessor", "default"))
}
@@ -20,6 +20,7 @@
package de.steamwar;
import de.steamwar.command.CommandFrameworkException;
import de.steamwar.command.Handler;
import de.steamwar.command.impl.ExecutionIdentifier;
import de.steamwar.command.impl.TestCommand;
import lombok.AllArgsConstructor;
@@ -46,7 +47,7 @@ public class AssertionUtils {
if (e.getCause() == null) {
assertThat(e.getMessage(), is(message));
} else {
assertThat(e.getCause(), instanceOf(UnsupportedOperationException.class));
assertThat(e.getCause(), instanceOf(Handler.HandlerException.class));
assertThat(e.getCause().getMessage(), is(message));
}
} catch (Exception e) {