mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
ScriptChunkTest: Add an EqualsVerifier test for ScriptChunk.
This commit is contained in:
parent
e2e763bd33
commit
30b3435649
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,7 @@ import static org.junit.Assert.assertTrue;
|
|||
|
||||
import java.util.Random;
|
||||
|
||||
import nl.jqno.equalsverifier.EqualsVerifier;
|
||||
import org.junit.Test;
|
||||
|
||||
import com.google.common.primitives.Bytes;
|
||||
|
@ -35,6 +36,13 @@ public class ScriptChunkTest {
|
|||
|
||||
private static final Random RANDOM = new Random(42);
|
||||
|
||||
@Test
|
||||
public void equalsContract() {
|
||||
EqualsVerifier.forClass(ScriptChunk.class)
|
||||
.usingGetClass()
|
||||
.verify();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testShortestPossibleDataPush() {
|
||||
assertTrue("empty push", new ScriptBuilder().data(new byte[0]).build().getChunks().get(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue