Package org.jastacry.test
Class TestMain
- java.lang.Object
-
- org.jastacry.test.TestMain
-
public class TestMain extends java.lang.Object
Test of Main function.- 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
CONF2
Test configuration file, contains unknown tag for tests.static java.lang.String
CONF3
Test configuration file, contains no layer at all.static java.lang.String
CONF4
Test configuration file, contains two layers.static java.lang.String
CONF5
Test configuration file, contains only one layers.static java.lang.String
CONF6
Test configuration file, contains interactive password macro.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 TestMain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
setLogger()
The BeforeClass method.void
setUp()
Test Before method.void
tearDown()
Test After method.void
testMainBase64EncDec()
Test method normal for Main function including base64 encoding.void
testMainBase64EncDecTexttwice()
Test method normal for Main function including base64 encoding.void
testMainBinaryEncDec()
Test method binary data for Main function.void
testMainDecode()
Test method decode call for Main function.void
testMainEncDec()
Test method normal for Main function.void
testMainEncode()
Test method encode call for Main function.void
testMainHelp()
Test method help for Main function.void
testMainMissingArgs()
Test method missing parameters for Main function.void
testMainMissingConfigFile()
Test method missing config file for Main function.void
testMainMissingInputFile()
Test method missing input file for Main function.void
testMainMissingParams()
Test method missing parameters for Main function.void
testMainNoargs()
Test method no parameters error for Main function.void
testMainNolayer()
Test method no layer for Main function.void
testMainOnelayer()
Test method one layer for Main function.void
testMainPassword()
Test method two layer for Main function.void
testMainShortDecode()
Test method decode call for Main function.void
testMainShortEncode()
Test method short encode call for Main function.void
testMainStaticHelp()
Test method help for Main function via static main.void
testMainStaticNoargs()
Test method no parameters error for Main function via static main.void
testMainStaticTwolayer()
Test method two layer for Main function.void
testMainTwolayer()
Test method two layer for Main function.void
testMainUnknownargs()
Test method unknown parameters error for Main function.void
testMainUnknownLayer()
Test method unknown layer for Main function.
-
-
-
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
-
CONF2
public static final java.lang.String CONF2
Test configuration file, contains unknown tag for tests.- See Also:
- Constant Field Values
-
CONF3
public static final java.lang.String CONF3
Test configuration file, contains no layer at all.- See Also:
- Constant Field Values
-
CONF4
public static final java.lang.String CONF4
Test configuration file, contains two layers.- See Also:
- Constant Field Values
-
CONF5
public static final java.lang.String CONF5
Test configuration file, contains only one layers.- See Also:
- Constant Field Values
-
CONF6
public static final java.lang.String CONF6
Test configuration file, contains interactive password macro.- 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
-
-
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
-
testMainStaticHelp
@Test public void testMainStaticHelp()
Test method help for Main function via static main.
-
testMainStaticNoargs
@Test public void testMainStaticNoargs()
Test method no parameters error for Main function via static main.
-
testMainStaticTwolayer
@Test public void testMainStaticTwolayer()
Test method two layer for Main function.
-
testMainHelp
@Test public void testMainHelp()
Test method help for Main function.
-
testMainNoargs
@Test public void testMainNoargs()
Test method no parameters error for Main function.
-
testMainUnknownargs
@Test public void testMainUnknownargs()
Test method unknown parameters error for Main function.
-
testMainMissingArgs
@Test public void testMainMissingArgs()
Test method missing parameters for Main function.
-
testMainMissingParams
@Test public void testMainMissingParams()
Test method missing parameters for Main function.
-
testMainEncode
@Test public void testMainEncode()
Test method encode call for Main function.
-
testMainDecode
@Test public void testMainDecode()
Test method decode call for Main function.
-
testMainShortEncode
@Test public void testMainShortEncode()
Test method short encode call for Main function.
-
testMainShortDecode
@Test public void testMainShortDecode()
Test method decode call for Main function.
-
testMainUnknownLayer
@Test public void testMainUnknownLayer()
Test method unknown layer for Main function.
-
testMainOnelayer
@Test public void testMainOnelayer()
Test method one layer for Main function.
-
testMainTwolayer
@Test public void testMainTwolayer()
Test method two layer for Main function.
-
testMainPassword
@Test public void testMainPassword()
Test method two layer for Main function.
-
testMainNolayer
@Test public void testMainNolayer()
Test method no layer for Main function.
-
testMainMissingInputFile
@Test public void testMainMissingInputFile()
Test method missing input file for Main function.
-
testMainMissingConfigFile
@Test public void testMainMissingConfigFile()
Test method missing config file for Main function.
-
testMainEncDec
@Test public void testMainEncDec()
Test method normal for Main function.
-
testMainBase64EncDec
@Test public void testMainBase64EncDec()
Test method normal for Main function including base64 encoding.
-
testMainBase64EncDecTexttwice
@Test public void testMainBase64EncDecTexttwice()
Test method normal for Main function including base64 encoding.
-
testMainBinaryEncDec
@Test public void testMainBinaryEncDec()
Test method binary data for Main function.
-
-