IT. Expert System.

Android Reference

MacTest


org.apache.harmony.crypto.tests.javax.crypto

Class MacTest

  • java.lang.Object
    • TestCase
      • org.apache.harmony.crypto.tests.javax.crypto.MacTest


  • public class MacTest
    extends TestCase
    Tests for Mac class constructors and methods
    • Constructor Summary

      Constructors
      Constructor and Description
      MacTest()
    • Method Summary

      Methods
      Modifier and Type Method and Description
      static Test suite()
      void test_getAlgorithm()
      void test_getProvider()
      void testClone()
      Test for clone() method Assertion: clone if provider is clo
      void testGetMacLength()
      Test for getMacLength() method Assertion: return Mac length
      void testInit()
      Test for init(Key key, AlgorithmParameterSpec params) init(Key key) methods Assertion: throws InvalidKeyException and InvalidAlgorithmParameterException when parameters are not appropriate
      void testMac01()
      Test for getInstance(String algorithm) method Assertion: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is not available
      void testMac02()
      Test for getInstance(String algorithm) method Assertion: returns Mac object
      void testMac03()
      Test for getInstance(String algorithm, String provider) method Assertion: throws IllegalArgumentException when provider is null or empty throws NoSuchProviderException when provider is not available
      void testMac04()
      Test for getInstance(String algorithm, String provider) method Assertion: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is not available
      void testMac05()
      Test for getInstance(String algorithm, String provider) method Assertion: returns Mac object
      void testMac06()
      Test for getInstance(String algorithm, Provider provider) method Assertion: throws IllegalArgumentException when provider is null
      void testMac07()
      Test for getInstance(String algorithm, Provider provider) method Assertion: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is not available
      void testMac08()
      Test for getInstance(String algorithm, Provider provider) method Assertion: returns Mac object
      void testMac09()
      Test for update and doFinal methods Assertion: throws IllegalStateException when Mac is not initialized
      void testMac10()
      Test for doFinal(byte[] output, int outOffset) method Assertion: throws ShotBufferException when outOffset is negative or outOffset >= output.length or when given buffer is small
      void testMac11()
      Test for doFinal(byte[] output, int outOffset) and doFinal() methods Assertion: Mac result is stored in output buffer
      void testMac12()
      Test for doFinal(byte[] input) method Assertion: update Mac and returns result
      void testMac13()
      Test for update(byte[] input, int outset, int len) method Assertion: throws IllegalArgumentException when offset or len is negative, offset + len >= input.length
      void testMac14()
      Test for update(byte[] input, int outset, int len) and update(byte[] input methods Assertion: updates Mac
      void testMacClone()
      Test for clone() method Assertion: returns Mac object or throws CloneNotSupportedException
      void testMacConstructor()
      Test for Mac constructor Assertion: returns Mac object
      void testReset()
      Test for reset() method Assertion: return Mac length
      void testUpdateByteBuffer01()
      Test for update(ByteBuffer input) update(byte[] input, int offset, int len) methods Assertion: processes Mac; if input is null then do nothing
      void testUpdateByteBuffer02()
      Test for update(ByteBuffer input) update(byte[] input, int offset, int len) methods Assertion: processes Mac


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: 198 / 158697707. Delta: 0.03481 с