Class TestLayerAsciiTransport


  • public class TestLayerAsciiTransport
    extends java.lang.Object
    Test class for ascii transport format.
    Author:
    Kai Kretschmann
    • Constructor Detail

      • TestLayerAsciiTransport

        public TestLayerAsciiTransport()
    • 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
        The Before method.
        Throws:
        java.lang.Exception - in case of error.
      • tearDown

        @AfterEach
        public void tearDown()
                      throws java.lang.Exception
        The After method.
        Throws:
        java.lang.Exception - in case of error.
      • testEncStream

        @Test
        public void testEncStream()
                           throws org.jastacry.JastacryException,
                                  java.io.IOException
        Test method for AsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - i case of error
      • testEncStreamExceptionIn

        @Test
        public void testEncStreamExceptionIn()
                                      throws org.jastacry.JastacryException,
                                             java.io.IOException
        Test method for AsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - in case of error
      • testEncStreamExceptionOut

        @Test
        public void testEncStreamExceptionOut()
                                       throws org.jastacry.JastacryException,
                                              java.io.IOException
        Test method for AsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - i case of error
      • testDecStream

        @Test
        public void testDecStream()
                           throws org.jastacry.JastacryException,
                                  java.io.IOException
        Test method for AsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - in case of error
      • testDecStreamExceptionIn

        @Test
        public void testDecStreamExceptionIn()
                                      throws org.jastacry.JastacryException,
                                             java.io.IOException
        Test method for AsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - in case of error
      • testDecStreamExceptionOut

        @Test
        public void testDecStreamExceptionOut()
                                       throws org.jastacry.JastacryException,
                                              java.io.IOException
        Test method for AsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream) .
        Throws:
        org.jastacry.JastacryException - in case of error.
        java.io.IOException - in case of error
      • testRun

        @Test
        public void testRun()
        Test method for AsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream) .
      • testToString

        @Test
        public void testToString()
        Test method for AbstractBasicLayer.toString() .
      • testUnsupported

        @Test
        public void testUnsupported()
                             throws org.jastacry.JastacryException
        Testcase unsupported exception.
        Throws:
        org.jastacry.JastacryException - on error
      • testEquals

        @Test
        public void testEquals()
        Testcase equals.
      • testEqualsSame

        @Test
        public void testEqualsSame()
        Testcase equals.
      • testNotEqualsNull

        @Test
        public void testNotEqualsNull()
        Testcase equals.
      • testNotEqualsWrongclass

        @Test
        public void testNotEqualsWrongclass()
        Testcase equals.
      • testHashcode

        @Test
        public void testHashcode()
        Testcase hashcode.