Mercurial > stress-tester
changeset 728:c3a2898241a0
NcDataHelperTest - testWriteVxxVLC - checks number of bytes written
author | Devel 1 |
---|---|
date | Mon, 04 Dec 2017 12:23:08 +0100 |
parents | 7bc4eb666b7f |
children | 11cdcfb2d190 |
files | stress-tester/src/test/java/com/passus/st/reader/nc/NcDataHelperTest.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/test/java/com/passus/st/reader/nc/NcDataHelperTest.java Fri Dec 01 14:25:20 2017 +0100 +++ b/stress-tester/src/test/java/com/passus/st/reader/nc/NcDataHelperTest.java Mon Dec 04 12:23:08 2017 +0100 @@ -74,7 +74,7 @@ @Test(dataProvider = "validIntVLC") public void testWriteIntVLC(byte[] expectedResult, int expectedBytes, int length) { byte[] result = new byte[expectedResult.length]; - helper.writeIntVLC(result, length); + assertEquals(expectedBytes, helper.writeIntVLC(result, length)); assertEquals(expectedResult, result); } @@ -103,7 +103,7 @@ @Test(dataProvider = "validLongVLC") public void testWriteLongVLC(byte[] expectedResult, int expectedBytes, long length) { byte[] result = new byte[expectedResult.length]; - helper.writeLongVLC(result, length); + assertEquals(expectedBytes, helper.writeLongVLC(result, length)); assertEquals(expectedResult, result); }