Package org.jastacry.test
Class TestEntropy
- java.lang.Object
-
- org.jastacry.test.TestEntropy
-
public class TestEntropy extends java.lang.ObjectTest of entropy.- Author:
- Kai Kretschmann
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONF1Test configuration file, contains broad range of running layers.static java.lang.StringINPUTBYTEFILETest input binary file with all values.static java.lang.StringINPUTENCODEDTest input encoded file.static java.lang.StringINPUTFILETest input text file.static java.lang.StringINPUTREPEATFILETest 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 voidsetUp()Test Before method.static voidsetupData()The BeforeClass method.voidtearDown()Test After method.voidtestEntropyBytes()Test method mixed byte array.voidtestEntropyMainEncode()Test method encode call for Main function.voidtestEntropyNonzero()Test method mixed string.voidtestEntropyStringEqualsBytes()Test method mixed byte array.voidtestEntropyZero()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.MalformedURLExceptionThe BeforeClass method.- Throws:
java.net.MalformedURLException- in case of error.
-
setUp
@BeforeEach public void setUp() throws java.lang.ExceptionTest Before method.- Throws:
java.lang.Exception- in case of error
-
tearDown
@AfterEach public void tearDown() throws java.lang.ExceptionTest 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.
-
-