Package org.jastacry.layer
Class TestLayerAsciiTransport
- java.lang.Object
-
- org.jastacry.layer.TestLayerAsciiTransport
-
public class TestLayerAsciiTransport extends java.lang.Object
Test class for ascii transport format.- Author:
- Kai Kretschmann
-
-
Constructor Summary
Constructors Constructor Description TestLayerAsciiTransport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
setLogger()
The BeforeClass method.void
setUp()
The Before method.void
tearDown()
The After method.void
testDecStream()
Test method forAsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream)
.void
testDecStreamExceptionIn()
Test method forAsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream)
.void
testDecStreamExceptionOut()
Test method forAsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream)
.void
testEncStream()
Test method forAsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream)
.void
testEncStreamExceptionIn()
Test method forAsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream)
.void
testEncStreamExceptionOut()
Test method forAsciiTransportLayer.encStream(java.io.InputStream, java.io.OutputStream)
.void
testEquals()
Testcase equals.void
testEqualsSame()
Testcase equals.void
testHashcode()
Testcase hashcode.void
testNotEqualsNull()
Testcase equals.void
testNotEqualsWrongclass()
Testcase equals.void
testRun()
Test method forAsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream)
.void
testToString()
Test method forAbstractBasicLayer.toString()
.void
testUnsupported()
Testcase unsupported exception.
-
-
-
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 forAsciiTransportLayer.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 forAsciiTransportLayer.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 forAsciiTransportLayer.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 forAsciiTransportLayer.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 forAsciiTransportLayer.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 forAsciiTransportLayer.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 forAsciiTransportLayer.decStream(java.io.InputStream, java.io.OutputStream)
.
-
testToString
@Test public void testToString()
Test method forAbstractBasicLayer.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.
-
-