| javax.crypto.CipherInputStreamTest
CipherInputStreamTest | public class CipherInputStreamTest extends TestCase (Code) | | |
Method Summary | |
public void | testAvailable() available() method testing. | public void | testCipherInputStream() CipherInputStream(InputStream is) method testing. | public void | testClose() close() method testing. | public void | testMarkSupported() markSupported() method testing. | public void | testRead1() read() method testing. | public void | testRead2() read(byte[] b) method testing. | public void | testRead3() read(byte[] b, int off, int len) method testing. | public void | testSkip() skip(long n) method testing. |
testAvailable | public void testAvailable() throws Exception(Code) | | available() method testing. Tests that the method always return 0.
|
testCipherInputStream | public void testCipherInputStream() throws Exception(Code) | | CipherInputStream(InputStream is) method testing. Tests that
CipherInputStream uses NullCipher if Cipher is not specified
in the constructor.
|
testClose | public void testClose() throws Exception(Code) | | close() method testing. Tests that the method calls the close()
method of the underlying input stream.
|
testMarkSupported | public void testMarkSupported()(Code) | | markSupported() method testing. Tests that mark is not supported.
|
testRead1 | public void testRead1() throws Exception(Code) | | read() method testing. Tests that method returns the correct value
(related to the InputStream) and that it returns -1 at the end of stream.
|
testRead2 | public void testRead2() throws Exception(Code) | | read(byte[] b) method testing. Tests that method returns the correct
value (related to the InputStream) and that it returns -1 at the end of
stream.
|
testRead3 | public void testRead3() throws Exception(Code) | | read(byte[] b, int off, int len) method testing. Tests that method
returns the correct value (related to the InputStream), that it discards
bytes in the case of null buffer, and that it returns -1 at the end of
stream.
|
testSkip | public void testSkip() throws Exception(Code) | | skip(long n) method testing. Tests that the method correctly skips the
bytes.
|
|
|