public class CRC32CDigestTest extends Object
Tests the correct calculation of CRCs by using the CRCR32C generator polynom.
| Modifier and Type | Field and Description |
|---|---|
protected org.jscsi.parser.digest.CRC32CDigest |
crc
Instance of the class, which is to be tested.
|
| Constructor and Description |
|---|
CRC32CDigestTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp()
Reset the CRC to its initial value after each successful calculation.
|
void |
testSlicingByFour1()
Tests the Slicing-by-4 algorithm for an integer array with TEST_CASE_1.
|
void |
testSlicingByFour2()
Tests the Slicing-by-4 algorithm for an integer array with TEST_CASE_2.
|
void |
testSlicingByFour3()
Tests the Slicing-by-4 algorithm for an integer array with TEST_CASE_3.
|
void |
testSlicingByFour4()
Tests the Slicing-by-4 algorithm for an integer array with TEST_CASE_4.
|
void |
testSlicingByFour5()
Tests the Slicing-by-4 algorithm for an integer array with TEST_CASE_5.
|
void |
testUpdate1()
Tests the incremental version of the Slicing-by-4 algorithm with
TEST_CASE_1.
|
void |
testUpdate2()
Tests the incremental version of the Slicing-by-4 algorithm with
TEST_CASE_2.
|
void |
testUpdate3()
Tests the incremental version of the Slicing-by-4 algorithm with
TEST_CASE_3.
|
void |
testUpdate4()
Tests the incremental version of the Slicing-by-4 algorithm with
TEST_CASE_4.
|
void |
testUpdate5()
Tests the incremental version of the Slicing-by-4 algorithm with
TEST_CASE_5.
|
protected org.jscsi.parser.digest.CRC32CDigest crc
public void setUp()
public void testSlicingByFour1()
public void testSlicingByFour2()
public void testSlicingByFour3()
public void testSlicingByFour4()
public void testSlicingByFour5()
public void testUpdate1()
public void testUpdate2()
public void testUpdate3()
public void testUpdate4()
public void testUpdate5()
Copyright © 2013 University of Konstanz, Distributed Systems Group. All Rights Reserved.