| javax.crypto.spec.PSourceTest
PSourceTest | public class PSourceTest extends TestCase (Code) | | |
suite | public static Test suite()(Code) | | |
testGetAlgorithm | public void testGetAlgorithm()(Code) | | getAlgorithm() method testing. Tests that returned value is
equal to the value specified in the constructor.
|
testGetValue | public void testGetValue()(Code) | | getValue() method testing. Tests that returned array is equal to the
array specified in the constructor. Checks that modification
of returned array does not affect the internal array.
|
testPSource | public void testPSource()(Code) | | PSource(String pSrcName) method testing. Tests that returned value is
equal to the value specified in the constructor.
|
testPSpecified | public void testPSpecified()(Code) | | PSpecified(byte[] p) method testing. Tests that NullPointerException
is thrown in the case of null p array. Also it checks the value of
DEFAULT field, and that input p array is copied to protect against
subsequent modification.
|
|
|