Skip to content

Commit 1f0a78c

Browse files
committed
test: fix VelocityCommandBridgeImplTest isolation — add BeforeAll Log.install
1 parent e83e21d commit 1f0a78c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

velocity/src/test/java/dev/objz/commandbridge/velocity/api/VelocityCommandBridgeImplTest.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import dev.objz.commandbridge.velocity.net.session.ClientSession;
1717
import dev.objz.commandbridge.velocity.net.session.SessionHub;
1818
import dev.objz.commandbridge.velocity.util.PlayerTracker;
19+
import org.junit.jupiter.api.BeforeAll;
1920
import org.junit.jupiter.api.Test;
2021

2122
import java.lang.reflect.Method;
@@ -28,6 +29,14 @@
2829

2930
class VelocityCommandBridgeImplTest {
3031

32+
@BeforeAll
33+
static void installLog() {
34+
try {
35+
dev.objz.commandbridge.logging.Log.install(java.util.logging.Logger.getLogger("test"));
36+
} catch (IllegalStateException ignored) {
37+
}
38+
}
39+
3140
@Test
3241
void requirePlayerDropsSendWhenAbsent() {
3342
SessionHub sessions = new SessionHub();

0 commit comments

Comments
 (0)