Class TestEntropy


  • public class TestEntropy
    extends java.lang.Object
    Test of entropy.
    Author:
    Kai Kretschmann
    • 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
    • Constructor Detail

      • TestEntropy

        public TestEntropy()
    • 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.