public class DigestOutputStreamTest
extends TestCase
DigestInputStream
Constructor and Description |
---|
DigestOutputStreamTest() |
Modifier and Type | Method and Description |
---|---|
void |
test_CtorLjava_io_OutputStreamLjava_security_MessageDigest()
java.security.DigestOutputStream#DigestOutputStream(java.io.OutputStream,
java.security.MessageDigest)
|
void |
test_getMessageDigest()
java.security.DigestOutputStream#getMessageDigest()
|
void |
test_onZ()
java.security.DigestOutputStream#on(boolean)
|
void |
test_setMessageDigestLjava_security_MessageDigest()
java.security.DigestOutputStream#setMessageDigest(MessageDigest)
|
void |
test_write$BII_1()
Test #1 for
write(byte[],int,int) methodAssertion: put bytes into output stream Assertion: updates associated digest |
void |
test_write$BII_2()
Test #2 for
write(byte[],int,int) methodAssertion: put bytes into output stream Assertion: updates associated digest |
void |
test_write$BII_3()
Test #3 for
write(byte[],int,int) methodAssertion: put bytes into output stream Assertion: updates associated digest |
void |
test_write$BII_4()
Test #4 for
write(byte[],int,int) methodAssertion: put bytes into output stream Assertion: does not update associated digest if digest functionality is off |
void |
test_write$BII_5()
java.security.DigestOutputStream#write(byte[], int, int)
|
void |
test_write$BII_6()
java.security.DigestOutputStream#write(byte[], int, int)
|
void |
test_write$BII_7()
java.io.DigestOutputStream#write(byte[], int, int)
|
void |
test_writeI()
java.security.DigestOutputStream#write(int)
|
void |
testOn()
Test for
on() methodAssertion: turns digest functionality on or off |
void |
testToString()
Test for
toString() methodAssertion: returns String representation of this object |
void |
testWriteint01()
Test #1 for
write(int) methodAssertion: writes the byte to the output stream Assertion: updates associated digest |
void |
testWriteint02()
Test #2 for
write(int) methodTest #1 for on(boolean) methodAssertion: write(int) must not update digest if it is offAssertion: on(boolean) turns digest functionality on
if true passed as a parameter or off if false
passed |
void |
testWriteint03()
Test #3 for
write(int) methodAssertion: broken DigestOutputStream instance:
OutputStream not set. |
void |
testWriteint04()
Test #4 for
write(int) methodAssertion: broken DigestOutputStream instance:
associated MessageDigest not set. |
void |
testWriteint05()
Test #5 for
write(int) methodTest #2 for on(boolean) methodAssertion: broken DigestOutputStream instance:
associated MessageDigest not set. |
public void test_CtorLjava_io_OutputStreamLjava_security_MessageDigest()
public void test_getMessageDigest()
public void test_setMessageDigestLjava_security_MessageDigest()
public final void testWriteint01() throws IOException
write(int)
methodIOException
public final void testWriteint02() throws IOException
write(int)
methodon(boolean)
methodwrite(int)
must not update digest if it is offon(boolean)
turns digest functionality on
if true
passed as a parameter or off if false
passedIOException
public final void testWriteint03() throws IOException
write(int)
methodDigestOutputStream
instance:
OutputStream
not set. write(int)
must
not workIOException
public final void testWriteint04() throws IOException
write(int)
methodDigestOutputStream
instance:
associated MessageDigest
not set.
write(int)
must not work when digest
functionality is onIOException
public final void testWriteint05() throws IOException
write(int)
methodon(boolean)
methodDigestOutputStream
instance:
associated MessageDigest
not set.
write(int)
must work when digest
functionality is offIOException
public final void test_write$BII_1() throws IOException
write(byte[],int,int)
methodIOException
public final void test_write$BII_2() throws IOException
write(byte[],int,int)
methodIOException
public final void test_write$BII_3() throws NoSuchAlgorithmException, IOException
write(byte[],int,int)
methodNoSuchAlgorithmException
IOException
public final void test_write$BII_4() throws NoSuchAlgorithmException, IOException
write(byte[],int,int)
methodNoSuchAlgorithmException
IOException
public void test_write$BII_6() throws Exception
Exception
public void test_write$BII_7() throws IOException, NoSuchAlgorithmException
IOException
NoSuchAlgorithmException
public final void testOn() throws IOException
on()
methodIOException
public final void testToString() throws NoSuchAlgorithmException
toString()
methodString
representation of this objectNoSuchAlgorithmException
public void test_onZ() throws Exception
Exception
public void test_write$BII_5() throws Exception
Exception