mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-15 20:51:34 +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 java.util.concurrent.ThreadLocalRandom;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
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.
|
* Ensures that packet can be written and read correctly.
|
||||||
@ -69,7 +70,7 @@ public class PacketWriteReadTest {
|
|||||||
var createdPacket = readerConstructor.newInstance(reader);
|
var createdPacket = readerConstructor.newInstance(reader);
|
||||||
assertEquals(writeable, createdPacket);
|
assertEquals(writeable, createdPacket);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
fail(writeable.toString(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user