Package org.jastacry.test
Class TestEntropy
- java.lang.Object
-
- org.jastacry.test.TestEntropy
-
public class TestEntropy extends java.lang.Object
Test of entropy.- Author:
- Kai Kretschmann
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONF1
Test configuration file, contains broad range of running layers.static java.lang.String
INPUTBYTEFILE
Test input binary file with all values.static java.lang.String
INPUTENCODED
Test input encoded file.static java.lang.String
INPUTFILE
Test input text file.static java.lang.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 java.lang.String CONF1
Test configuration file, contains broad range of running layers. used for "OK" tests.- See Also:
- Constant Field Values
-
INPUTFILE
public static final java.lang.String INPUTFILE
Test input text file.- See Also:
- Constant Field Values
-
INPUTBYTEFILE
public static final java.lang.String INPUTBYTEFILE
Test input binary file with all values.- See Also:
- Constant Field Values
-
INPUTREPEATFILE
public static final java.lang.String INPUTREPEATFILE
Test input binary file with one value.- See Also:
- Constant Field Values
-
INPUTENCODED
public static final java.lang.String INPUTENCODED
Test input encoded file.- See Also:
- Constant Field Values
-
-
Method Detail
-
setupData
@BeforeAll public static void setupData() throws java.net.MalformedURLException
The BeforeClass method.- Throws:
java.net.MalformedURLException
- in case of error.
-
setUp
@BeforeEach public void setUp() throws java.lang.Exception
Test Before method.- Throws:
java.lang.Exception
- in case of error
-
tearDown
@AfterEach public void tearDown() throws java.lang.Exception
Test After method.- Throws:
java.lang.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.
-
-