IT. Expert System.

Android Reference

DigestOutputStreamTest


org.apache.harmony.security.tests.java.security

Class DigestOutputStreamTest

  • java.lang.Object
    • TestCase
      • org.apache.harmony.security.tests.java.security.DigestOutputStreamTest


  • public class DigestOutputStreamTest
    extends TestCase
    Tests for fields and methods of class DigestInputStream
    • Method Summary

      Methods
      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) method
      Assertion: put bytes into output stream
      Assertion: updates associated digest
      void test_write$BII_2()
      Test #2 for write(byte[],int,int) method
      Assertion: put bytes into output stream
      Assertion: updates associated digest
      void test_write$BII_3()
      Test #3 for write(byte[],int,int) method
      Assertion: put bytes into output stream
      Assertion: updates associated digest
      void test_write$BII_4()
      Test #4 for write(byte[],int,int) method
      Assertion: 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() method
      Assertion: turns digest functionality on or off
      void testToString()
      Test for toString() method
      Assertion: returns String representation of this object
      void testWriteint01()
      Test #1 for write(int) method
      Assertion: writes the byte to the output stream
      Assertion: updates associated digest
      void testWriteint02()
      Test #2 for write(int) method
      Test #1 for on(boolean) method
      Assertion: write(int) must not update digest if it is off
      Assertion: on(boolean) turns digest functionality on if true passed as a parameter or off if false passed
      void testWriteint03()
      Test #3 for write(int) method
      Assertion: broken DigestOutputStreaminstance: OutputStream not set.
      void testWriteint04()
      Test #4 for write(int) method
      Assertion: broken DigestOutputStreaminstance: associated MessageDigest not set.
      void testWriteint05()
      Test #5 for write(int) method
      Test #2 for on(boolean) method
      Assertion: broken DigestOutputStreaminstance: associated MessageDigest not set.
    • Constructor Detail

      • DigestOutputStreamTest

        public DigestOutputStreamTest()
    • Method Detail

      • test_CtorLjava_io_OutputStreamLjava_security_MessageDigest

        public void test_CtorLjava_io_OutputStreamLjava_security_MessageDigest()
        java.security.DigestOutputStream#DigestOutputStream(java.io.OutputStream, java.security.MessageDigest)
      • test_getMessageDigest

        public void test_getMessageDigest()
        java.security.DigestOutputStream#getMessageDigest()
      • test_setMessageDigestLjava_security_MessageDigest

        public void test_setMessageDigestLjava_security_MessageDigest()
        java.security.DigestOutputStream#setMessageDigest(MessageDigest)
      • testWriteint01

        public final void testWriteint01()
                                  throws IOException
        Test #1 for write(int) method
        Assertion: writes the byte to the output stream
        Assertion: updates associated digest
        Throws:
        IOException
      • testWriteint02

        public final void testWriteint02()
                                  throws IOException
        Test #2 for write(int) method
        Test #1 for on(boolean) method
        Assertion: write(int) must not update digest if it is off
        Assertion: on(boolean) turns digest functionality on if true passed as a parameter or off if false passed
        Throws:
        IOException
      • testWriteint03

        public final void testWriteint03()
                                  throws IOException
        Test #3 for write(int) method
        Assertion: broken DigestOutputStreaminstance: OutputStream not set. write(int) must not work
        Throws:
        IOException
      • testWriteint04

        public final void testWriteint04()
                                  throws IOException
        Test #4 for write(int) method
        Assertion: broken DigestOutputStreaminstance: associated MessageDigest not set. write(int) must not work when digest functionality is on
        Throws:
        IOException
      • testWriteint05

        public final void testWriteint05()
                                  throws IOException
        Test #5 for write(int) method
        Test #2 for on(boolean) method
        Assertion: broken DigestOutputStreaminstance: associated MessageDigest not set. write(int) must work when digest functionality is off
        Throws:
        IOException
      • test_write$BII_1

        public final void test_write$BII_1()
                                    throws IOException
        Test #1 for write(byte[],int,int) method
        Assertion: put bytes into output stream
        Assertion: updates associated digest
        Throws:
        IOException
      • test_write$BII_2

        public final void test_write$BII_2()
                                    throws IOException
        Test #2 for write(byte[],int,int) method
        Assertion: put bytes into output stream
        Assertion: updates associated digest
        Throws:
        IOException
      • test_write$BII_6

        public void test_write$BII_6()
                              throws Exception
        java.security.DigestOutputStream#write(byte[], int, int)
        Throws:
        Exception
      • testOn

        public final void testOn()
                          throws IOException
        Test for on() method
        Assertion: turns digest functionality on or off
        Throws:
        IOException
      • test_onZ

        public void test_onZ()
                      throws Exception
        java.security.DigestOutputStream#on(boolean)
        Throws:
        Exception
      • test_write$BII_5

        public void test_write$BII_5()
                              throws Exception
        java.security.DigestOutputStream#write(byte[], int, int)
        Throws:
        Exception
      • test_writeI

        public void test_writeI()
                         throws Exception
        java.security.DigestOutputStream#write(int)
        Throws:
        Exception


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 14414 / . Delta: 0.06938 с