mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-27 03:27:56 +01:00
Fail on exception
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
9a13bafa5e
commit
0825bd5d85
@ -24,6 +24,7 @@ import java.util.UUID;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.fail;
|
||||
|
||||
/**
|
||||
* Ensures that packet can be written and read correctly.
|
||||
@ -69,7 +70,7 @@ public class PacketWriteReadTest {
|
||||
var createdPacket = readerConstructor.newInstance(reader);
|
||||
assertEquals(writeable, createdPacket);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
fail(writeable.toString(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user