Class TestConfig


  • public class TestConfig
    extends java.lang.Object
    Test of Main function.
    Author:
    Kai Kretschmann
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONF_ISO
      Test configuration file, ISO encoded and for sure no BOM.
      static java.lang.String CONF_UTFBOM
      Test configuration file, UTF8 encoded with BOM.
      static java.lang.String CONF_UTFNOBOM
      Test configuration file, UTF8 encoded without BOM.
      static java.lang.String INPUTBYTEFILE
      Test input binary file.
      static java.lang.String INPUTENCODED
      Test input encoded file.
      static java.lang.String INPUTFILE
      Test input text file.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestConfig()  
    • Field Detail

      • CONF_UTFBOM

        public static final java.lang.String CONF_UTFBOM
        Test configuration file, UTF8 encoded with BOM.
        See Also:
        Constant Field Values
      • CONF_UTFNOBOM

        public static final java.lang.String CONF_UTFNOBOM
        Test configuration file, UTF8 encoded without BOM.
        See Also:
        Constant Field Values
      • CONF_ISO

        public static final java.lang.String CONF_ISO
        Test configuration file, ISO encoded and for sure no BOM.
        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.
        See Also:
        Constant Field Values
      • INPUTENCODED

        public static final java.lang.String INPUTENCODED
        Test input encoded file.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TestConfig

        public TestConfig()
    • Method Detail

      • setLogger

        @BeforeAll
        public static void setLogger()
                              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
      • testConfWithBom

        @Test
        public void testConfWithBom()
        Test method normal for Main function.
      • testConfWithoutBom

        @Test
        public void testConfWithoutBom()
        Test method normal for Main function.
      • testConfIso

        @Test
        public void testConfIso()
        Test method normal for Main function.