Searched refs:mockProvider2 (Results 1 – 4 of 4) sorted by relevance
716 Provider mockProvider2 = new MockProvider("MockProvider") { in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local721 KeyAgreement s = KeyAgreement.getInstance("FOO", mockProvider2); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()722 assertEquals(mockProvider2, s.getProvider()); in testKeyAgreement_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
912 Provider mockProvider2 = new MockProvider("MockProvider") { in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local917 Mac s = Mac.getInstance("FOO", mockProvider2); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()918 assertEquals(mockProvider2, s.getProvider()); in testMac_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
85 Provider mockProvider2 = new MockProvider("MockProvider") { in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local90 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()91 assertEquals(mockProvider2, s.getProvider()); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
876 Provider mockProvider2 = new MockProvider("MockProvider") { in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local881 Cipher c = Cipher.getInstance("FOO", mockProvider2); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()882 assertEquals(mockProvider2, c.getProvider()); in testCipher_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()