Home
last modified time | relevance | path

Searched refs:valueOf (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidFloatDoubleTest.java27 Double d = Double.valueOf(1.0); in testFloatDouble()
28 Float f = Float.valueOf(1.0f); in testFloatDouble()
68 assertEquals(Float.valueOf(pz), Float.valueOf(pz)); in testFloat()
69 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nz))); in testFloat()
70 assertEquals(Float.valueOf(pz), Float.valueOf(pzero)); in testFloat()
71 assertTrue(!Float.valueOf(pz).equals(Float.valueOf(nzero))); in testFloat()
73 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pz))); in testFloat()
74 assertEquals(Float.valueOf(nz), Float.valueOf(nz)); in testFloat()
75 assertTrue(!Float.valueOf(nz).equals(Float.valueOf(pzero))); in testFloat()
76 assertEquals(Float.valueOf(nz), Float.valueOf(nzero)); in testFloat()
[all …]
DMathTest.java136 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.valueOf(b)); in testAddExactL()
138 assertEquals(expected, BigInteger.valueOf(Math.addExact(a, b))); in testAddExactL()
140 if (expected.equals(BigInteger.valueOf(a + b))) { in testAddExactL()
147 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)); in testSubtractExactL()
149 assertEquals(expected, BigInteger.valueOf(Math.subtractExact(a, b))); in testSubtractExactL()
151 if (expected.equals(BigInteger.valueOf(a - b))) { in testSubtractExactL()
158 BigInteger expected = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)); in testMultiplyExactL()
160 assertEquals(expected, BigInteger.valueOf(Math.multiplyExact(a, b))); in testMultiplyExactL()
162 if (expected.equals(BigInteger.valueOf(a * b))) { in testMultiplyExactL()
169 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.ONE); in testIncrementExactL()
[all …]
/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java44 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
46 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
54 b = BigInteger.valueOf(23L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
60 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
62 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01()
80 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
90 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
92 b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
101 f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02()
125 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03()
[all …]
DRSAOtherPrimeInfoTest.java43 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo01()
44 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo01()
45 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo01()
56 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo02()
57 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo02()
69 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo03()
71 BigInteger.valueOf(3L)); in testRSAOtherPrimeInfo03()
83 new RSAOtherPrimeInfo(BigInteger.valueOf(1L), in testRSAOtherPrimeInfo04()
84 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo04()
98 BigInteger.valueOf(2L), in testRSAOtherPrimeInfo05()
[all …]
DECPointTest.java48 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.valueOf(-23456L)); in testECPoint01()
49 new ECPoint(BigInteger.valueOf(123456L), BigInteger.valueOf(123456L)); in testECPoint01()
50 new ECPoint(BigInteger.valueOf(-56L), BigInteger.valueOf(234L)); in testECPoint01()
51 new ECPoint(BigInteger.valueOf(3456L), BigInteger.valueOf(-2344L)); in testECPoint01()
96 BigInteger x = BigInteger.valueOf(-23456L); in testGetAffineX01()
97 ECPoint p = new ECPoint(x, BigInteger.valueOf(23456L)); in testGetAffineX01()
124 BigInteger y = BigInteger.valueOf(23456L); in testGetAffineY01()
125 ECPoint p = new ECPoint(BigInteger.valueOf(-23456L), y); in testGetAffineY01()
151 new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
155 p1 = new ECPoint(BigInteger.valueOf(-23456L), BigInteger.ONE); in testEqualsObject01()
[all …]
DECFieldFpTest.java47 new ECFieldFp(BigInteger.valueOf(23L)); in testECFieldFp01()
57 new ECFieldFp(BigInteger.valueOf(21L)); in testECFieldFp02()
67 new ECFieldFp(BigInteger.valueOf(-1L)); in testECFieldFp03()
81 new ECFieldFp(BigInteger.valueOf(0L)); in testECFieldFp04()
109 ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L)); in testHashCode01()
128 assertTrue(new ECFieldFp(BigInteger.valueOf(23L)).hashCode() == in testHashCode02()
129 new ECFieldFp(BigInteger.valueOf(23L)).hashCode()); in testHashCode02()
138 assertEquals(5, new ECFieldFp(BigInteger.valueOf(23L)).getFieldSize()); in testGetFieldSize()
147 BigInteger p = BigInteger.valueOf(23L); in testGetP()
157 ECFieldFp obj = new ECFieldFp(BigInteger.valueOf(23L)); in testEqualsObject01()
[all …]
DECParameterSpecTest.java37 curve = new EllipticCurve(new ECFieldF2m(2), BigInteger.valueOf(1), in setUp()
38 BigInteger.valueOf(1)); in setUp()
39 ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); in setUp()
40 ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); in setUp()
67 assertEquals("wrong order was reteurned", BigInteger.valueOf(1), ecps in test_constructorLjava_security_spec_EllipticCurveLjava_security_spec_ECPointLjava_math_BigIntegerI()
72 new ECParameterSpec(null, ecpoint, BigInteger.valueOf(1), 1); in test_constructorLjava_security_spec_EllipticCurveLjava_security_spec_ECPointLjava_math_BigIntegerI()
80 new ECParameterSpec(curve, null, BigInteger.valueOf(1), 1); in test_constructorLjava_security_spec_EllipticCurveLjava_security_spec_ECPointLjava_math_BigIntegerI()
96 new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(-1), 1); in test_constructorLjava_security_spec_EllipticCurveLjava_security_spec_ECPointLjava_math_BigIntegerI()
104 new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), -1); in test_constructorLjava_security_spec_EllipticCurveLjava_security_spec_ECPointLjava_math_BigIntegerI()
130 assertEquals("wrong order was reteurned", BigInteger.valueOf(1), ecps in test_GetOrder()
DRSAPublicKeySpecTest.java44 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), in testRSAPublicKeySpec01()
45 BigInteger.valueOf(3L)); in testRSAPublicKeySpec01()
68 new RSAPublicKeySpec(BigInteger.valueOf(1234567890L), in testGetModulus()
69 BigInteger.valueOf(3L)); in testGetModulus()
70 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getModulus())); in testGetModulus()
79 new RSAPublicKeySpec(BigInteger.valueOf(3L), in testGetPublicExponent()
80 BigInteger.valueOf(1234567890L)); in testGetPublicExponent()
81 assertTrue(BigInteger.valueOf(1234567890L).equals(rpks.getPublicExponent())); in testGetPublicExponent()
DRSAPrivateCrtKeySpecTest.java104 BigInteger.valueOf(5L)); in testGetCrtCoefficient()
105 assertTrue(BigInteger.valueOf(5L).equals(ks.getCrtCoefficient())); in testGetCrtCoefficient()
119 BigInteger.valueOf(5L), in testGetPrimeExponentP()
122 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentP())); in testGetPrimeExponentP()
137 BigInteger.valueOf(5L), in testGetPrimeExponentQ()
139 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeExponentQ())); in testGetPrimeExponentQ()
151 BigInteger.valueOf(5L), in testGetPrimeP()
156 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeP())); in testGetPrimeP()
169 BigInteger.valueOf(5L), in testGetPrimeQ()
173 assertTrue(BigInteger.valueOf(5L).equals(ks.getPrimeQ())); in testGetPrimeQ()
[all …]
DRSAPrivateKeySpecTest.java43 KeySpec ks = new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testRSAPrivateKeySpec()
44 BigInteger.valueOf(3L)); in testRSAPrivateKeySpec()
54 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testGetModulus()
55 BigInteger.valueOf(3L)); in testGetModulus()
65 new RSAPrivateKeySpec(BigInteger.valueOf(1234567890L), in testGetPrivateExponent()
66 BigInteger.valueOf(3L)); in testGetPrivateExponent()
DECPublicKeySpecTest.java37 ECPoint ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger in setUp()
38 .valueOf(1)); in setUp()
40 .valueOf(1), BigInteger.valueOf(1)); in setUp()
42 w = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1)); in setUp()
43 params = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1); in setUp()
/libcore/ojluni/src/main/java/java/awt/font/
DTextAttribute.java195 Float.valueOf(0.5f);
202 Float.valueOf(0.75f);
210 Float.valueOf(0.875f);
217 Float.valueOf(1.0f);
224 Float.valueOf(1.25f);
232 Float.valueOf(1.5f);
239 Float.valueOf(1.75f);
246 Float.valueOf(2.0f);
253 Float.valueOf(2.25f);
260 Float.valueOf(2.5f);
[all …]
/libcore/luni/src/test/java/tests/security/interfaces/
DUtil.java67 BigInteger.valueOf(3233), BigInteger.valueOf(17),
68 BigInteger.valueOf(2753), BigInteger.valueOf(61),
69 BigInteger.valueOf(53), BigInteger.valueOf(53),
70 BigInteger.valueOf(49), BigInteger.valueOf(52));
77 new ECFieldFp(BigInteger.valueOf(23)),
78 BigInteger.valueOf(5), BigInteger.valueOf(3)),
79 new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(3)),
80 BigInteger.valueOf(23), 1);
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java54 Timestamp t1 = Timestamp.valueOf("2001-12-31 21:45:57.123456789"); in testValueOf()
58 Timestamp t2 = Timestamp.valueOf("2001-01-02 01:05:07.123"); in testValueOf()
62 Timestamp t3 = Timestamp.valueOf("2001-01-02 01:05:07"); in testValueOf()
72 Timestamp.valueOf(""); in testValueOfInvalid()
77 Timestamp.valueOf("+2001-12-31"); in testValueOfInvalid()
82 Timestamp.valueOf("2001-+12-31"); in testValueOfInvalid()
87 Timestamp.valueOf("2001-12-+31"); in testValueOfInvalid()
92 Timestamp.valueOf("-2001-12-31"); in testValueOfInvalid()
97 Timestamp.valueOf("2001--12-31"); in testValueOfInvalid()
102 Timestamp.valueOf("2001-12--31"); in testValueOfInvalid()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DRoundingModeTest.java29 …assertEquals("valueOf failed for ROUND_CEILING", RoundingMode.valueOf(BigDecimal.ROUND_CEILING), R… in test_valueOfI()
30 …assertEquals("valueOf failed for ROUND_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_DOWN), Roundin… in test_valueOfI()
31 …assertEquals("valueOf failed for ROUND_FLOOR", RoundingMode.valueOf(BigDecimal.ROUND_FLOOR), Round… in test_valueOfI()
32 …assertEquals("valueOf failed for ROUND_HALF_DOWN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_DOWN… in test_valueOfI()
33 …assertEquals("valueOf failed for ROUND_HALF_EVEN", RoundingMode.valueOf(BigDecimal.ROUND_HALF_EVEN… in test_valueOfI()
34 …assertEquals("valueOf failed for ROUND_HALF_UP", RoundingMode.valueOf(BigDecimal.ROUND_HALF_UP), R… in test_valueOfI()
35 …assertEquals("valueOf failed for ROUND_UNNECESSARY", RoundingMode.valueOf(BigDecimal.ROUND_UNNECES… in test_valueOfI()
36 …assertEquals("valueOf failed for ROUND_UP", RoundingMode.valueOf(BigDecimal.ROUND_UP), RoundingMod… in test_valueOfI()
38 RoundingMode.valueOf(13); in test_valueOfI()
43 RoundingMode.valueOf(-1); in test_valueOfI()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DShortTest.java291 assertEquals("Returned incorrect short", -32768, Short.valueOf("-32768") in test_valueOfLjava_lang_String2()
293 assertEquals("Returned incorrect short", 32767, Short.valueOf("32767") in test_valueOfLjava_lang_String2()
304 assertEquals("Incorrectly parsed hex string", 255, Short.valueOf("FF", 16) in test_valueOfLjava_lang_StringI2()
306 assertEquals("Incorrectly parsed oct string", 16, Short.valueOf("20", 8) in test_valueOfLjava_lang_StringI2()
308 assertEquals("Incorrectly parsed dec string", 20, Short.valueOf("20", 10) in test_valueOfLjava_lang_StringI2()
310 assertEquals("Incorrectly parsed bin string", 4, Short.valueOf("100", 2) in test_valueOfLjava_lang_StringI2()
312 assertEquals("Incorrectly parsed -hex string", -255, Short.valueOf("-FF", 16) in test_valueOfLjava_lang_StringI2()
314 assertEquals("Incorrectly parsed -oct string", -16, Short.valueOf("-20", 8) in test_valueOfLjava_lang_StringI2()
316 assertEquals("Incorrectly parsed -bin string", -4, Short.valueOf("-100", 2) in test_valueOfLjava_lang_StringI2()
318 assertTrue("Did not decode 32767 correctly", Short.valueOf("32767", 10) in test_valueOfLjava_lang_StringI2()
[all …]
DByteTest.java27 assertEquals(new Byte(Byte.MIN_VALUE), Byte.valueOf(Byte.MIN_VALUE)); in test_valueOfB()
28 assertEquals(new Byte(Byte.MAX_VALUE), Byte.valueOf(Byte.MAX_VALUE)); in test_valueOfB()
29 assertEquals(new Byte((byte) 0), Byte.valueOf((byte) 0)); in test_valueOfB()
33 assertEquals(new Byte(b), Byte.valueOf(b)); in test_valueOfB()
34 assertSame(Byte.valueOf(b), Byte.valueOf(b)); in test_valueOfB()
106 assertEquals(new Byte((byte) 0), Byte.valueOf((byte) 0)); in test_equalsLjava_lang_Object()
107 assertEquals(new Byte((byte) 1), Byte.valueOf((byte) 1)); in test_equalsLjava_lang_Object()
108 assertEquals(new Byte((byte) -1), Byte.valueOf((byte) -1)); in test_equalsLjava_lang_Object()
140 assertEquals(new Byte((byte) 0), Byte.valueOf("0")); in test_valueOfLjava_lang_String()
141 assertEquals(new Byte((byte) 1), Byte.valueOf("1")); in test_valueOfLjava_lang_String()
[all …]
DBooleanTest.java106 assertEquals(Boolean.TRUE, Boolean.valueOf("true")); in test_valueOfLjava_lang_String()
107 assertEquals(Boolean.FALSE, Boolean.valueOf("false")); in test_valueOfLjava_lang_String()
109 assertEquals(Boolean.TRUE, Boolean.valueOf("TRUE")); in test_valueOfLjava_lang_String()
110 assertEquals(Boolean.FALSE, Boolean.valueOf("false")); in test_valueOfLjava_lang_String()
112 assertEquals(Boolean.FALSE, Boolean.valueOf(null)); in test_valueOfLjava_lang_String()
113 assertEquals(Boolean.FALSE, Boolean.valueOf("")); in test_valueOfLjava_lang_String()
114 assertEquals(Boolean.FALSE, Boolean.valueOf("invalid")); in test_valueOfLjava_lang_String()
116 assertTrue("Failed to parse true to true", Boolean.valueOf("true").booleanValue()); in test_valueOfLjava_lang_String()
117 assertTrue("Failed to parse mixed case true to true", Boolean.valueOf("TrUe") in test_valueOfLjava_lang_String()
119 assertTrue("parsed non-true to true", !Boolean.valueOf("ddddd").booleanValue()); in test_valueOfLjava_lang_String()
[all …]
DLongTest.java417 assertEquals("Returned incorrect value", 100000000L, Long.valueOf("100000000") in test_valueOfLjava_lang_String2()
419 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_String2()
421 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_String2()
427 .valueOf("999999999999999999999999999999999999999999999999999999999999"); in test_valueOfLjava_lang_String2()
437 Long.valueOf("9223372036854775808"); in test_valueOfLjava_lang_String2()
447 Long.valueOf("-9223372036854775809"); in test_valueOfLjava_lang_String2()
462 assertEquals("Returned incorrect value", 100000000L, Long.valueOf("100000000", 10) in test_valueOfLjava_lang_StringI()
464 assertEquals("Returned incorrect value from hex string", 68719476735L, Long.valueOf( in test_valueOfLjava_lang_StringI()
467 + Long.valueOf("77777777777", 8).toString(), Long.valueOf( in test_valueOfLjava_lang_StringI()
469 assertTrue("Returned incorrect value", Long.valueOf( in test_valueOfLjava_lang_StringI()
[all …]
DIntegerTest.java567 assertEquals("Returned incorrect int", 8888888, Integer.valueOf("8888888") in test_valueOfLjava_lang_String2()
569 assertTrue("Returned incorrect int", Integer.valueOf("2147483647") in test_valueOfLjava_lang_String2()
571 assertTrue("Returned incorrect int", Integer.valueOf("-2147483648") in test_valueOfLjava_lang_String2()
576 Integer.valueOf("2147483648"); in test_valueOfLjava_lang_String2()
585 Integer.valueOf("-2147483649"); in test_valueOfLjava_lang_String2()
599 assertEquals("Returned incorrect int for hex string", 255, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
601 assertEquals("Returned incorrect int for oct string", 16, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
603 assertEquals("Returned incorrect int for bin string", 4, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
606 assertEquals("Returned incorrect int for - hex string", -255, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
608 assertEquals("Returned incorrect int for - oct string", -16, Integer.valueOf( in test_valueOfLjava_lang_StringI2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DElementTypeTest.java37 .valueOf("ANNOTATION_TYPE")); in test_valueOfLjava_lang_String()
38 assertSame(ElementType.CONSTRUCTOR, ElementType.valueOf("CONSTRUCTOR")); in test_valueOfLjava_lang_String()
39 assertSame(ElementType.FIELD, ElementType.valueOf("FIELD")); in test_valueOfLjava_lang_String()
41 .valueOf("LOCAL_VARIABLE")); in test_valueOfLjava_lang_String()
42 assertSame(ElementType.METHOD, ElementType.valueOf("METHOD")); in test_valueOfLjava_lang_String()
43 assertSame(ElementType.PACKAGE, ElementType.valueOf("PACKAGE")); in test_valueOfLjava_lang_String()
44 assertSame(ElementType.PARAMETER, ElementType.valueOf("PARAMETER")); in test_valueOfLjava_lang_String()
45 assertSame(ElementType.TYPE, ElementType.valueOf("TYPE")); in test_valueOfLjava_lang_String()
47 ElementType.valueOf("OTHER"); in test_valueOfLjava_lang_String()
/libcore/ojluni/src/main/java/java/lang/
DAssertionError.java74 this(String.valueOf(detailMessage)); in AssertionError()
88 this(String.valueOf(detailMessage)); in AssertionError()
100 this(String.valueOf(detailMessage)); in AssertionError()
112 this(String.valueOf(detailMessage)); in AssertionError()
124 this(String.valueOf(detailMessage)); in AssertionError()
136 this(String.valueOf(detailMessage)); in AssertionError()
148 this(String.valueOf(detailMessage)); in AssertionError()
/libcore/luni/src/test/java/libcore/java/math/
DBigDecimalTest.java27 import static java.math.BigDecimal.valueOf;
98 assertEquals(new BigDecimal(BigInteger.valueOf(-10), 1), new BigDecimal("-1.0")); in testPrecisionFromString_simplePowersOfTen()
99 assertEquals(new BigDecimal(BigInteger.valueOf(-1), 1), new BigDecimal("-0.1")); in testPrecisionFromString_simplePowersOfTen()
100 assertEquals(new BigDecimal(BigInteger.valueOf(-1), -1), new BigDecimal("-1E+1")); in testPrecisionFromString_simplePowersOfTen()
102 assertEquals(new BigDecimal(BigInteger.valueOf(10), 1), new BigDecimal("1.0")); in testPrecisionFromString_simplePowersOfTen()
103 assertEquals(new BigDecimal(BigInteger.valueOf(1), 0), new BigDecimal("1")); in testPrecisionFromString_simplePowersOfTen()
120 BigDecimal other = valueOf(999999998000000001.00); in test191227()
209 checkNegate(valueOf(0), valueOf(0)); in testNegate()
210 checkNegate(valueOf(1), valueOf(-1)); in testNegate()
211 checkNegate(valueOf(43), valueOf(-43)); in testNegate()
[all …]
/libcore/luni/src/test/java/libcore/java/security/cert/
DCRLReasonTest.java55 assertEquals(CRLReason.UNSPECIFIED, CRLReason.valueOf("UNSPECIFIED")); in testCRLReason_valueOf_ExpectedValues()
56 assertEquals(CRLReason.KEY_COMPROMISE, CRLReason.valueOf("KEY_COMPROMISE")); in testCRLReason_valueOf_ExpectedValues()
57 assertEquals(CRLReason.CA_COMPROMISE, CRLReason.valueOf("CA_COMPROMISE")); in testCRLReason_valueOf_ExpectedValues()
58 assertEquals(CRLReason.AFFILIATION_CHANGED, CRLReason.valueOf("AFFILIATION_CHANGED")); in testCRLReason_valueOf_ExpectedValues()
59 assertEquals(CRLReason.SUPERSEDED, CRLReason.valueOf("SUPERSEDED")); in testCRLReason_valueOf_ExpectedValues()
60 assertEquals(CRLReason.CESSATION_OF_OPERATION, CRLReason.valueOf("CESSATION_OF_OPERATION")); in testCRLReason_valueOf_ExpectedValues()
61 assertEquals(CRLReason.CERTIFICATE_HOLD, CRLReason.valueOf("CERTIFICATE_HOLD")); in testCRLReason_valueOf_ExpectedValues()
62 assertEquals(CRLReason.UNUSED, CRLReason.valueOf("UNUSED")); in testCRLReason_valueOf_ExpectedValues()
63 assertEquals(CRLReason.REMOVE_FROM_CRL, CRLReason.valueOf("REMOVE_FROM_CRL")); in testCRLReason_valueOf_ExpectedValues()
64 assertEquals(CRLReason.PRIVILEGE_WITHDRAWN, CRLReason.valueOf("PRIVILEGE_WITHDRAWN")); in testCRLReason_valueOf_ExpectedValues()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java118 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
121 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
124 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
127 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
159 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
162 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
165 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
168 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
192 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
195 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost_withNoProxyHostsProperty()
[all …]

12345678910>>...13