forked from SteamWar/SteamWar
Fix AssertionUtils.SimpleAssertion.assertNoInitialize
This commit is contained in:
@@ -32,5 +32,5 @@ dependencies {
|
|||||||
|
|
||||||
testImplementation(project(":CommandFramework:CommandFrameworkBase", "default"))
|
testImplementation(project(":CommandFramework:CommandFrameworkBase", "default"))
|
||||||
|
|
||||||
testAnnotationProcessor(project(":CommandFramework:CommandFrameworkAnnotationProcessor", "default"))
|
// testAnnotationProcessor(project(":CommandFramework:CommandFrameworkAnnotationProcessor", "default"))
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,7 @@
|
|||||||
package de.steamwar;
|
package de.steamwar;
|
||||||
|
|
||||||
import de.steamwar.command.CommandFrameworkException;
|
import de.steamwar.command.CommandFrameworkException;
|
||||||
|
import de.steamwar.command.Handler;
|
||||||
import de.steamwar.command.impl.ExecutionIdentifier;
|
import de.steamwar.command.impl.ExecutionIdentifier;
|
||||||
import de.steamwar.command.impl.TestCommand;
|
import de.steamwar.command.impl.TestCommand;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
@@ -46,7 +47,7 @@ public class AssertionUtils {
|
|||||||
if (e.getCause() == null) {
|
if (e.getCause() == null) {
|
||||||
assertThat(e.getMessage(), is(message));
|
assertThat(e.getMessage(), is(message));
|
||||||
} else {
|
} else {
|
||||||
assertThat(e.getCause(), instanceOf(UnsupportedOperationException.class));
|
assertThat(e.getCause(), instanceOf(Handler.HandlerException.class));
|
||||||
assertThat(e.getCause().getMessage(), is(message));
|
assertThat(e.getCause().getMessage(), is(message));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user