Home
last modified time | relevance | path

Searched refs:invalidValues (Results 1 – 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory2Test.java44 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in TrustManagerFactory2Test
124 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String()
126 TrustManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
128 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_String()
161 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
163 TrustManagerFactory.getInstance(invalidValues[i], mProv in test_getInstanceLjava_lang_StringLjava_lang_String()
166 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
175 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
181 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
186 for (int j = 1; j < invalidValues.length; j++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DKeyManagerFactory2Test.java47 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in KeyManagerFactory2Test
134 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String()
136 KeyManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
138 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_String()
171 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
174 .getInstance(invalidValues[i], mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
176 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
185 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
191 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
196 for (int j = 1; j < invalidValues.length; j++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DSSLContext2Test.java46 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in SSLContext2Test
159 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String()
161 SSLContext.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String()
163 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_String()
197 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
199 SSLContext.getInstance(invalidValues[i], mProv.getName()); in test_getInstanceLjava_lang_StringLjava_lang_String()
201 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
210 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
216 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String()
221 for (int j = 1; j < invalidValues.length; j++) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DTrustManagerFactory1Test.java54 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in TrustManagerFactory1Test
194 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String02()
196 TrustManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
198 .concat(invalidValues[i])); in test_getInstanceLjava_lang_String02()
239 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String02()
241 TrustManagerFactory.getInstance(invalidValues[i], in test_getInstanceLjava_lang_StringLjava_lang_String02()
244 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String02()
257 for (String invalidValue : invalidValues) { in test_getInstanceLjava_lang_StringLjava_lang_String03()
318 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_security_Provider02()
320 TrustManagerFactory.getInstance(invalidValues[i], in test_getInstanceLjava_lang_StringLjava_security_Provider02()
[all …]
DKeyManagerFactory1Test.java60 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in KeyManagerFactory1Test
178 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String02()
180 KeyManagerFactory.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
182 .concat(invalidValues[i])); in test_getInstanceLjava_lang_String02()
232 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String02()
234 KeyManagerFactory.getInstance(invalidValues[i], in test_getInstanceLjava_lang_StringLjava_lang_String02()
237 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String02()
256 for (int j = 1; j < invalidValues.length; j++) { in test_getInstanceLjava_lang_StringLjava_lang_String03()
259 invalidValues[j]); in test_getInstanceLjava_lang_StringLjava_lang_String03()
261 + validValues[i] + " provider: " + invalidValues[j] in test_getInstanceLjava_lang_StringLjava_lang_String03()
[all …]
DSSLContext1Test.java57 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in SSLContext1Test
221 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_String02()
223 SSLContext.getInstance(invalidValues[i]); in test_getInstanceLjava_lang_String02()
225 .concat(invalidValues[i])); in test_getInstanceLjava_lang_String02()
273 for (int i = 0; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String02()
275 SSLContext.getInstance(invalidValues[i], defaultProviderName); in test_getInstanceLjava_lang_StringLjava_lang_String02()
277 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String02()
293 for (int i = 1; i < invalidValues.length; i++) { in test_getInstanceLjava_lang_StringLjava_lang_String03()
296 SSLContext.getInstance(validValues[j], invalidValues[i]); in test_getInstanceLjava_lang_StringLjava_lang_String03()
299 .concat(invalidValues[i]).concat(")")); in test_getInstanceLjava_lang_StringLjava_lang_String03()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DCertPathValidator2Test.java50 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in CertPathValidator2Test
84 for (int i = 0; i < invalidValues.length; i++) { in checkResult()
85 Security.setProperty(propName, invalidValues[i]); in checkResult()
87 invalidValues[i]); in checkResult()
116 for (int i = 0; i < invalidValues.length; i++) { in testGetInstance01()
118 CertPathValidator.getInstance(invalidValues[i]); in testGetInstance01()
119 fail("NoSuchAlgorithmException must be thrown (type: ".concat(invalidValues[i]) in testGetInstance01()
150 for (int i = 0; i < invalidValues.length; i++) { in testGetInstance02()
152 CertPathValidator.getInstance(invalidValues[i], mProv.getName()); in testGetInstance02()
153 fail("NoSuchAlgorithmException must be thrown (type: ".concat(invalidValues[i]) in testGetInstance02()
[all …]
DCertPathBuilder2Test.java47 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in CertPathBuilder2Test
107 for (int i = 0; i < invalidValues.length; i++) { in testGetInstance01()
109 CertPathBuilder.getInstance(invalidValues[i]); in testGetInstance01()
111 invalidValues[i]).concat(")")); in testGetInstance01()
142 for (int i = 0; i < invalidValues.length; i++) { in testGetInstance02()
144 CertPathBuilder.getInstance(invalidValues[i], mProv in testGetInstance02()
147 invalidValues[i]).concat(")")); in testGetInstance02()
166 for (int j = 1; j < invalidValues.length; j++) { in testGetInstance02()
169 invalidValues[j]); in testGetInstance02()
172 .concat(invalidValues[j]).concat(")")); in testGetInstance02()
[all …]
DCRLTest.java40 private final static String[] invalidValues = SpiEngUtils.invalidValues; field in CRLTest
55 for (int i = 0; i< invalidValues.length; i++) { in testConstructor()
56 CRL crl = new MyCRL(invalidValues[i]); in testConstructor()
57 assertEquals(invalidValues[i], crl.getType()); in testConstructor()
DCertificateFactory2Test.java53 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in CertificateFactory2Test
188 for (int i = 0; i < invalidValues.length; i++) { in GetInstance01()
190 CertificateFactory.getInstance(invalidValues[i]); in GetInstance01()
192 invalidValues[i]).concat(")")); in GetInstance01()
223 for (int i = 0; i < invalidValues.length; i++) { in GetInstance02()
225 CertificateFactory.getInstance(invalidValues[i], mProv in GetInstance02()
228 invalidValues[i]).concat(")")); in GetInstance02()
248 for (int j = 1; j < invalidValues.length; j++) { in GetInstance02()
251 invalidValues[j]); in GetInstance02()
254 .concat(invalidValues[j]).concat(")")); in GetInstance02()
[all …]
DCertPathBuilder1Test.java57 private static String [] invalidValues = SpiEngUtils.invalidValues; field in CertPathBuilder1Test
118 for (int i = 0; i < invalidValues.length; i++) { in testCertPathBuilder02()
120 CertPathBuilder.getInstance(invalidValues[i]); in testCertPathBuilder02()
180 for (int j = 1; j < invalidValues.length; j++) { in testCertPathBuilder05()
182 CertPathBuilder.getInstance(validValues[i], invalidValues[j]); in testCertPathBuilder05()
206 for (int i = 0; i < invalidValues.length; i++) { in testCertPathBuilder06()
208 CertPathBuilder.getInstance(invalidValues[i], defaultProviderName); in testCertPathBuilder06()
270 for (int i = 0; i < invalidValues.length; i++) { in testCertPathBuilder09()
272 CertPathBuilder.getInstance(invalidValues[i], defaultProvider); in testCertPathBuilder09()
289 for (int i = 0; i < invalidValues.length; i++) { in testCertPathBuilder10()
DCertPathValidator1Test.java55 private static String [] invalidValues = SpiEngUtils.invalidValues; field in CertPathValidator1Test
136 for (int i = 0; i < invalidValues.length; i++) { in testCertPathValidator02()
138 CertPathValidator.getInstance(invalidValues[i]); in testCertPathValidator02()
196 for (int i = 1; i < invalidValues.length; i++) { in testCertPathValidator05()
199 invalidValues[i]); in testCertPathValidator05()
225 for (int i = 0; i < invalidValues.length; i++) { in testCertPathValidator06()
227 CertPathValidator.getInstance(invalidValues[i], defaultProviderName); in testCertPathValidator06()
292 for (int i = 0; i < invalidValues.length; i++) { in testCertPathValidator09()
294 CertPathValidator.getInstance(invalidValues[i], defaultProvider); in testCertPathValidator09()
311 for (int i = 0; i < invalidValues.length; i++) { in testCertPathValidator10()
DCertStore1Test.java58 private static String [] invalidValues = SpiEngUtils.invalidValues; field in CertStore1Test
197 for (int i = 0; i < invalidValues.length; i++ ) { in testCertStore03()
199 CertStore.getInstance(invalidValues[i], dParams); in testCertStore03()
259 for (int j = 1; j < invalidValues.length; j++ ) { in testCertStore07()
261 CertStore.getInstance(dValid[i], dParams, invalidValues[j]); in testCertStore07()
280 for (int i = 0; i < invalidValues.length; i++) { in testCertStore08()
282 CertStore.getInstance(invalidValues[i], dParams, dName); in testCertStore08()
348 for (int i = 0; i < invalidValues.length; i++ ) { in testCertStore12()
350 CertStore.getInstance(invalidValues[i], dParams, dProv); in testCertStore12()
DCertificateFactory1Test.java69 private final static String[] invalidValues = SpiEngUtils.invalidValues; field in CertificateFactory1Test
132 for (int i = 0; i < invalidValues.length; i++) { in testCertificateFactory02()
134 CertificateFactory.getInstance(invalidValues[i]); in testCertificateFactory02()
136 .concat(invalidValues[i])); in testCertificateFactory02()
184 for (int i = 0; i < invalidValues.length; i++) { in testCertificateFactory04()
186 CertificateFactory.getInstance(invalidValues[i], in testCertificateFactory04()
189 invalidValues[i]).concat(" provider: ").concat( in testCertificateFactory04()
255 for (int i = 0; i < invalidValues.length; i++) { in testCertificateFactory07()
257 CertificateFactory.getInstance(invalidValues[i], in testCertificateFactory07()
260 .concat(invalidValues[i]).concat(" provider: ").concat( in testCertificateFactory07()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator1Test.java47 private static String[] invalidValues = SpiEngUtils.invalidValues; field in AlgorithmParameterGenerator1Test
103 for (int i = 0; i < invalidValues.length; i++) { in testAlgorithmParameterGenerator01()
105 AlgorithmParameterGenerator.getInstance(invalidValues[i]); in testAlgorithmParameterGenerator01()
170 for (int j = 1; j < invalidValues.length; j++) { in testAlgorithmParameterGenerator04()
173 invalidValues[j]); in testAlgorithmParameterGenerator04()
175 .concat(invalidValues[j])); in testAlgorithmParameterGenerator04()
201 for (int i = 0; i < invalidValues.length; i++) { in testAlgorithmParameterGenerator05()
203 AlgorithmParameterGenerator.getInstance(invalidValues[i], in testAlgorithmParameterGenerator05()
206 .concat(invalidValues[i].concat(")"))); in testAlgorithmParameterGenerator05()
272 for (int i = 0; i < invalidValues.length; i++) { in testAlgorithmParameterGenerator08()
[all …]
DKeyPairGenerator2Test.java55 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in KeyPairGenerator2Test
192 for (int i = 0; i < invalidValues.length; i++) { in GetInstance01()
194 KeyPairGenerator.getInstance(invalidValues[i]); in GetInstance01()
196 .concat(invalidValues[i]).concat(")")); in GetInstance01()
231 for (int i = 0; i < invalidValues.length; i++) { in GetInstance02()
233 KeyPairGenerator.getInstance(invalidValues[i], mProv.getName()); in GetInstance02()
235 .concat(invalidValues[i]).concat(")")); in GetInstance02()
251 for (int j = 1; j < invalidValues.length; j++) { in GetInstance02()
253 KeyPairGenerator.getInstance(alg, invalidValues[j]); in GetInstance02()
256 invalidValues[j]).concat(")")); in GetInstance02()
[all …]
DKeyPairGenerator1Test.java48 private static String[] invalidValues = SpiEngUtils.invalidValues; field in KeyPairGenerator1Test
106 for (int i = 0; i < invalidValues.length; i++) { in testKeyPairGenerator01()
108 KeyPairGenerator.getInstance(invalidValues[i]); in testKeyPairGenerator01()
110 .concat(invalidValues[i])); in testKeyPairGenerator01()
172 for (int j = 1; j < invalidValues.length; j++) { in testKeyPairGenerator04()
174 KeyPairGenerator.getInstance(algs[i], invalidValues[j]); in testKeyPairGenerator04()
177 invalidValues[j]).concat(")")); in testKeyPairGenerator04()
204 for (int i = 0; i < invalidValues.length; i++) { in testKeyPairGenerator05()
206 KeyPairGenerator.getInstance(invalidValues[i], in testKeyPairGenerator05()
275 for (int i = 0; i < invalidValues.length; i++) { in testKeyPairGenerator08()
[all …]
DKeyStoreTest.java215 String[] invalidValues = SpiEngUtils.invalidValues; in testKeyStore02() local
221 for (int i = 0; i < invalidValues.length; i++) { in testKeyStore02()
223 KeyStore.getInstance(invalidValues[i]); in testKeyStore02()
225 invalidValues[i]).concat(" )")); in testKeyStore02()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java73 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in KeyGeneratorTest
164 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceString01()
166 KeyGenerator.getInstance(invalidValues[i]); in testGetInstanceString01()
208 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceStringString01()
210 KeyGenerator.getInstance(invalidValues[i], defaultProviderName); in testGetInstanceStringString01()
241 for (int j = 1; j < invalidValues.length; j++) { in testGetInstanceStringString02()
243 KeyGenerator.getInstance(validValues[i], invalidValues[j]); in testGetInstanceStringString02()
246 .concat(invalidValues[j]).concat(")")); in testGetInstanceStringString02()
289 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceStringProvider01()
291 KeyGenerator.getInstance(invalidValues[i], defaultProvider); in testGetInstanceStringProvider01()
[all …]
DSecretKeyFactoryTest.java64 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in SecretKeyFactoryTest
158 for (int i = 0; i < invalidValues.length; i++) { in testSecretKeyFactory02()
160 SecretKeyFactory.getInstance(invalidValues[i]); in testSecretKeyFactory02()
203 for (int i = 0; i < invalidValues.length; i++) { in testSecretKeyFactory04()
205 SecretKeyFactory.getInstance(invalidValues[i], in testSecretKeyFactory04()
208 .concat(invalidValues[i]).concat(")")); in testSecretKeyFactory04()
241 for (int j = 1; j < invalidValues.length; j++) { in testSecretKeyFactory05()
244 invalidValues[j]); in testSecretKeyFactory05()
247 .concat(invalidValues[j]).concat(")")); in testSecretKeyFactory05()
292 for (int i = 0; i < invalidValues.length; i++) { in testSecretKeyFactory07()
[all …]
DKeyAgreementTest.java70 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in KeyAgreementTest
127 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceString01()
129 KeyAgreement.getInstance(invalidValues[i]); in testGetInstanceString01()
171 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceStringString01()
173 KeyAgreement.getInstance(invalidValues[i], defaultProviderName); in testGetInstanceStringString01()
205 for (int j = 1; j < invalidValues.length; j++) { in testGetInstanceStringString02()
207 KeyAgreement.getInstance(validValues[i], invalidValues[j]); in testGetInstanceStringString02()
210 .concat(invalidValues[j]).concat(")")); in testGetInstanceStringString02()
256 for (int i = 0; i < invalidValues.length; i++) { in testGetInstanceStringProvider01()
258 KeyAgreement.getInstance(invalidValues[i], defaultProvider); in testGetInstanceStringProvider01()
[all …]
DMacTest.java78 private static final String[] invalidValues = SpiEngUtils.invalidValues; field in MacTest
141 for (int i = 0; i < invalidValues.length; i++) { in testMac01()
143 Mac.getInstance(invalidValues[i]); in testMac01()
145 .concat(invalidValues[i])); in testMac01()
189 for (int j = 1; j < invalidValues.length; j++) { in testMac03()
191 Mac.getInstance(validValues[i], invalidValues[j]); in testMac03()
194 .concat(invalidValues[j]).concat(")")); in testMac03()
219 for (int i = 0; i < invalidValues.length; i++) { in testMac04()
221 Mac.getInstance(invalidValues[i], defaultProviderName); in testMac04()
223 .concat(invalidValues[i])); in testMac04()
[all …]
/libcore/luni/src/test/java/libcore/java/time/chrono/
DIsoChronologyTest.java69 int[][] invalidValues = new int[][] { in test_dateYear_invalidValues() local
80 for (int[] values : invalidValues) { in test_dateYear_invalidValues()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DSpiEngUtils.java35 public static final String[] invalidValues = { field in SpiEngUtils
/libcore/luni/src/test/java/libcore/java/time/
DYearMonthTest.java65 Object[][] invalidValues = new Object[][] { in test_with_TemporalField_long_invalidValue() local
80 for (Object[] values : invalidValues) { in test_with_TemporalField_long_invalidValue()

12