Package org.jastacry.test
Class TestEntropy
- java.lang.Object
-
- org.jastacry.test.TestEntropy
-
public class TestEntropy extends Object
Test of entropy.- Author:
- Kai Kretschmann
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONF1
Test configuration file, contains broad range of running layers.static String
INPUTBYTEFILE
Test input binary file with all values.static String
INPUTENCODED
Test input encoded file.static String
INPUTFILE
Test input text file.static String
INPUTREPEATFILE
Test input binary file with one value.
-
Constructor Summary
Constructors Constructor Description TestEntropy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
Test Before method.static void
setupData()
The BeforeClass method.void
tearDown()
Test After method.void
testEntropyBytes()
Test method mixed byte array.void
testEntropyMainEncode()
Test method encode call for Main function.void
testEntropyNonzero()
Test method mixed string.void
testEntropyStringEqualsBytes()
Test method mixed byte array.void
testEntropyZero()
Test method plain string.
-
-
-
Field Detail
-
CONF1
public static final String CONF1
Test configuration file, contains broad range of running layers. used for "OK" tests.- See Also:
- Constant Field Values
-
INPUTFILE
public static final String INPUTFILE
Test input text file.- See Also:
- Constant Field Values
-
INPUTBYTEFILE
public static final String INPUTBYTEFILE
Test input binary file with all values.- See Also:
- Constant Field Values
-
INPUTREPEATFILE
public static final String INPUTREPEATFILE
Test input binary file with one value.- See Also:
- Constant Field Values
-
INPUTENCODED
public static final String INPUTENCODED
Test input encoded file.- See Also:
- Constant Field Values
-
-
Method Detail
-
setupData
@BeforeAll public static void setupData() throws MalformedURLException
The BeforeClass method.- Throws:
MalformedURLException
- in case of error.
-
setUp
@BeforeEach public void setUp() throws Exception
Test Before method.- Throws:
Exception
- in case of error
-
tearDown
@AfterEach public void tearDown() throws Exception
Test After method.- Throws:
Exception
- in case of error
-
testEntropyZero
@Test public void testEntropyZero()
Test method plain string.
-
testEntropyNonzero
@Test public void testEntropyNonzero()
Test method mixed string.
-
testEntropyBytes
@Test public void testEntropyBytes()
Test method mixed byte array.
-
testEntropyStringEqualsBytes
@Test public void testEntropyStringEqualsBytes()
Test method mixed byte array.
-
testEntropyMainEncode
@Test public void testEntropyMainEncode()
Test method encode call for Main function.
-
-