/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | LongTest.java | 42 assertEquals("Returned incorrect byte value", 127, l.byteValue()); in test_byteValue() 43 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) in test_byteValue() 54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Long(-2L) in test_compareToLjava_lang_Long() 72 assertEquals("Returned incorrect value for hex string", 255L, Long.decode( in test_decodeLjava_lang_String2() 74 assertEquals("Returned incorrect value for dec string", -89000L, Long.decode( in test_decodeLjava_lang_String2() 76 assertEquals("Returned incorrect value for 0 decimal", 0, Long.decode("0") in test_decodeLjava_lang_String2() 78 assertEquals("Returned incorrect value for 0 hex", 0, Long.decode("0x0") in test_decodeLjava_lang_String2() 204 assertEquals("Parsed to incorrect long value", 89000000005L, l); in test_parseLongLjava_lang_String2() 205 assertEquals("Returned incorrect value for 0", 0, Long.parseLong("0")); in test_parseLongLjava_lang_String2() 235 assertEquals("Returned incorrect value", in test_parseLongLjava_lang_StringI() [all …]
|
D | IntegerTest.java | 41 assertEquals("Returned incorrect byte value", -1, new Integer(65535) in test_byteValue() 43 assertEquals("Returned incorrect byte value", 127, new Integer(127) in test_byteValue() 54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Integer(-2) in test_compareToLjava_lang_Integer() 72 assertEquals("Failed for 132233", in test_decodeLjava_lang_String2() 74 assertEquals("Failed for 07654321", in test_decodeLjava_lang_String2() 80 assertEquals("Failed for -23", -23, Integer.decode("-23").intValue()); in test_decodeLjava_lang_String2() 81 assertEquals("Returned incorrect value for 0 decimal", 0, Integer in test_decodeLjava_lang_String2() 83 assertEquals("Returned incorrect value for 0 hex", 0, Integer.decode("0x0") in test_decodeLjava_lang_String2() 205 assertEquals("Returned incorrect double value", 2147483647.0, new Integer(2147483647) in test_doubleValue2() 207 assertEquals("Returned incorrect double value", -2147483647.0, new Integer(-2147483647) in test_doubleValue2() [all …]
|
D | Character_UnicodeBlockTest.java | 24 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x0)); in test_ofC() 25 assertEquals(Character.UnicodeBlock.BASIC_LATIN, Character.UnicodeBlock.of((char) 0x7f)); in test_ofC() 26 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0x80)); in test_ofC() 27 … assertEquals(Character.UnicodeBlock.LATIN_1_SUPPLEMENT, Character.UnicodeBlock.of((char) 0xff)); in test_ofC() 28 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x100)); in test_ofC() 29 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_A, Character.UnicodeBlock.of((char) 0x17f)); in test_ofC() 30 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x180)); in test_ofC() 31 … assertEquals(Character.UnicodeBlock.LATIN_EXTENDED_B, Character.UnicodeBlock.of((char) 0x24f)); in test_ofC() 32 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x250)); in test_ofC() 33 … assertEquals(Character.UnicodeBlock.IPA_EXTENSIONS, Character.UnicodeBlock.of((char) 0x2af)); in test_ofC() [all …]
|
D | ShortTest.java | 30 assertEquals("Returned incorrect byte value", 0, new Short(Short.MIN_VALUE) in test_byteValue() 32 assertEquals("Returned incorrect byte value", -1, new Short(Short.MAX_VALUE) in test_byteValue() 51 assertEquals("Should have returned zero when compared to equal short", in test_compareToLjava_lang_Short() 139 assertEquals("Returned incorrect value for 0", 0, Short.parseShort("0")); in test_parseShortLjava_lang_String2() 171 assertEquals("Incorrectly parsed hex string", in test_parseShortLjava_lang_StringI2() 173 assertEquals("Incorrectly parsed oct string", in test_parseShortLjava_lang_StringI2() 175 assertEquals("Incorrectly parsed dec string", in test_parseShortLjava_lang_StringI2() 177 assertEquals("Incorrectly parsed bin string", in test_parseShortLjava_lang_StringI2() 179 assertEquals("Incorrectly parsed -hex string", -255, Short in test_parseShortLjava_lang_StringI2() 181 assertEquals("Incorrectly parsed -oct string", in test_parseShortLjava_lang_StringI2() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | AttributesImplTest.java | 44 assertEquals(0, empty.getLength()); in testAttributesImpl() 45 assertEquals(5, multi.getLength()); in testAttributesImpl() 51 assertEquals(0, ai.getLength()); in testAttributesImplAttributes() 55 assertEquals(5, ai.getLength()); in testAttributesImplAttributes() 60 assertEquals(0, ai.getLength()); in testAttributesImplAttributes() 69 assertEquals(0, ai.getLength()); in testGetLength() 72 assertEquals(5, ai.getLength()); in testGetLength() 76 assertEquals(i, ai.getLength()); in testGetLength() 82 assertEquals("http://some.uri", multi.getURI(0)); in testGetURI() 83 assertEquals("http://some.uri", multi.getURI(1)); in testGetURI() [all …]
|
D | AttributeListImplTest.java | 39 assertEquals(0, empty.getLength()); in testAttributeListImpl() 40 assertEquals(3, multi.getLength()); in testAttributeListImpl() 46 assertEquals(0, ai.getLength()); in testAttributeListImplAttributeList() 50 assertEquals(3, ai.getLength()); in testAttributeListImplAttributeList() 55 assertEquals(0, ai.getLength()); in testAttributeListImplAttributeList() 68 assertEquals(0, attrs.getLength()); in testSetAttributeList() 71 assertEquals(multi.getLength(), attrs.getLength()); in testSetAttributeList() 74 assertEquals(multi.getName(i), attrs.getName(i)); in testSetAttributeList() 75 assertEquals(multi.getType(i), attrs.getType(i)); in testSetAttributeList() 76 assertEquals(multi.getValue(i), attrs.getValue(i)); in testSetAttributeList() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | URITest.java | 28 assertEquals("http", uri.getScheme()); in testUriParts() 29 assertEquals("username:password@host:8080", uri.getAuthority()); in testUriParts() 30 assertEquals("username:password@host:8080", uri.getRawAuthority()); in testUriParts() 31 assertEquals("username:password", uri.getUserInfo()); in testUriParts() 32 assertEquals("username:password", uri.getRawUserInfo()); in testUriParts() 33 assertEquals("host", uri.getHost()); in testUriParts() 34 assertEquals(8080, uri.getPort()); in testUriParts() 35 assertEquals("/directory/file", uri.getPath()); in testUriParts() 36 assertEquals("/directory/file", uri.getRawPath()); in testUriParts() 37 assertEquals("query", uri.getQuery()); in testUriParts() [all …]
|
D | URLTest.java | 46 assertEquals("http", url.getProtocol()); in testUrlParts() 47 assertEquals("username:password@host:8080", url.getAuthority()); in testUrlParts() 48 assertEquals("username:password", url.getUserInfo()); in testUrlParts() 49 assertEquals("host", url.getHost()); in testUrlParts() 50 assertEquals(8080, url.getPort()); in testUrlParts() 51 assertEquals(80, url.getDefaultPort()); in testUrlParts() 52 assertEquals("/directory/file?query", url.getFile()); in testUrlParts() 53 assertEquals("/directory/file", url.getPath()); in testUrlParts() 54 assertEquals("query", url.getQuery()); in testUrlParts() 55 assertEquals("ref", url.getRef()); in testUrlParts() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | PullParserDtdTest.java | 64 assertEquals(XmlPullParser.START_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 65 assertEquals(XmlPullParser.TEXT, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 66 assertEquals("aaa", parser.getText()); in testGeneralAndParameterEntityWithTheSameName() 67 assertEquals(XmlPullParser.END_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testGeneralAndParameterEntityWithTheSameName() 76 assertEquals(XmlPullParser.START_TAG, parser.next()); in testInternalEntities() 77 assertEquals(XmlPullParser.TEXT, parser.next()); in testInternalEntities() 78 assertEquals("android", parser.getText()); in testInternalEntities() 79 assertEquals(XmlPullParser.END_TAG, parser.next()); in testInternalEntities() 80 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testInternalEntities() [all …]
|
D | PullParserTest.java | 31 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeNoValueWithRelaxed() 32 assertEquals("input", parser.getName()); in testAttributeNoValueWithRelaxed() 33 assertEquals("checked", parser.getAttributeName(0)); in testAttributeNoValueWithRelaxed() 34 assertEquals("checked", parser.getAttributeValue(0)); in testAttributeNoValueWithRelaxed() 41 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeUnquotedValueWithRelaxed() 42 assertEquals("input", parser.getName()); in testAttributeUnquotedValueWithRelaxed() 43 assertEquals("checked", parser.getAttributeName(0)); in testAttributeUnquotedValueWithRelaxed() 44 assertEquals("true", parser.getAttributeValue(0)); in testAttributeUnquotedValueWithRelaxed() 51 assertEquals(XmlPullParser.START_TAG, parser.next()); in testUnterminatedEntityWithRelaxed() 52 assertEquals("foo", parser.getName()); in testUnterminatedEntityWithRelaxed() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidMathTest.java | 36 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() method in OldAndroidMathTest 38 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); in assertEquals() 40 Assert.assertEquals(message, expected, actual, delta); in assertEquals() 44 public static void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() method in OldAndroidMathTest 46 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); in assertEquals() 48 Assert.assertEquals(message, expected, actual, delta); in assertEquals() 107 assertEquals("wrong atan(1)", PI / 4, Math.atan(1d), 0); in testAtanD() 108 assertEquals("wrong atan(-1)", -PI / 4, Math.atan(-1), 0); in testAtanD() 109 assertEquals("wrong atan(+INF)", PI / 2, Math.atan(Double.POSITIVE_INFINITY), 0); in testAtanD() 110 assertEquals("wrong atan(-INF)", -PI / 2, Math.atan(Double.NEGATIVE_INFINITY), 0); in testAtanD() [all …]
|
D | OldAndroidStrictMathTest.java | 97 assertEquals("Should return Double.POSITIVE_INFINITY", in testCbrtD() 100 assertEquals("Should return Double.NEGATIVE_INFINITY", in testCbrtD() 103 assertEquals(Double.doubleToLongBits(0.0), Double in testCbrtD() 105 assertEquals(Double.doubleToLongBits(+0.0), Double in testCbrtD() 107 assertEquals(Double.doubleToLongBits(-0.0), Double in testCbrtD() 110 assertEquals("Should return 3.0", 3.0, StrictMath.cbrt(27.0)); in testCbrtD() 111 assertEquals("Should return 23.111993172558684", 23.111993172558684, in testCbrtD() 113 assertEquals("Should return 5.643803094122362E102", in testCbrtD() 115 assertEquals("Should return 0.01", 0.01, StrictMath.cbrt(0.000001)); in testCbrtD() 117 assertEquals("Should return -3.0", -3.0, StrictMath.cbrt(-27.0)); in testCbrtD() [all …]
|
D | StringTest.java | 103 assertEquals("a\u0666b", new String(bytes, 1, bytes.length - 2)); in testString_BII() 108 assertEquals("a\u0666b", new String(bytes, 1, bytes.length - 2, "UTF-8")); in testString_BIIString() 113 assertEquals("a\u0666b", new String(bytes, 1, bytes.length - 2, Charset.forName("UTF-8"))); in testString_BIICharset() 118 assertEquals("a\u0666b", new String(bytes, Charset.forName("UTF-8"))); in testString_BCharset() 125 assertEquals("YY", result); // (Our decoder always outputs 'Y's.) in testStringFromCharset_MaliciousCharset() 129 assertEquals("YY", result); in testStringFromCharset_MaliciousCharset() 134 assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes("US-ASCII"))); in test_getBytes_bad() 135 … assertEquals("[97, 63, 98]", Arrays.toString("a\u0666b".getBytes(Charset.forName("US-ASCII")))); in test_getBytes_bad() 143 assertEquals("[]", Arrays.toString("".getBytes(cs))); in test_getBytes_UTF_8() 146 assertEquals("[0]", Arrays.toString("\u0000".getBytes(cs))); in test_getBytes_UTF_8() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ComputeSerialVersionUIDTest.java | 9 assertEquals(-5877374382732244721L, in testComputeSUIDClass() 11 assertEquals(-2258784348609133821L, in testComputeSUIDClass() 13 assertEquals(-5674447587118957354L, in testComputeSUIDClass() 15 assertEquals(8333249076871004334L, in testComputeSUIDClass() 17 assertEquals(-6752991881983868187L, in testComputeSUIDClass() 19 assertEquals(-2046603329186110997L, in testComputeSUIDClass() 24 …assertEquals(2385879270919801624L, computeSerialVersionUID(SerializationTestClass.TestInterfaces.c… in testComputeSUIDInterfaces() 25 …assertEquals(-3876044724689092051L, computeSerialVersionUID(SerializationTestClass.TestInterfacesA… in testComputeSUIDInterfaces() 26 …assertEquals(6691168002125833763L, computeSerialVersionUID(SerializationTestClass.TestInterfacesAB… in testComputeSUIDInterfaces() 27 …assertEquals(-3862602835688739317L, computeSerialVersionUID(SerializationTestClass.TestInterfacesB… in testComputeSUIDInterfaces() [all …]
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONTokenerTest.java | 101 assertEquals("foo! at character 0 of null", in testNulls() 104 assertEquals(" at character 0 of null", new JSONTokener(null).toString()); in testNulls() 110 assertEquals(" at character 0 of ", backTokener.toString()); in testEmptyString() 112 assertEquals('\0', new JSONTokener("").next()); in testEmptyString() 123 assertEquals('\0', new JSONTokener("").nextClean()); in testEmptyString() 129 assertEquals("", new JSONTokener("").nextTo('A')); in testEmptyString() 130 assertEquals("", new JSONTokener("").nextTo("ABC")); in testEmptyString() 137 assertEquals('\0', new JSONTokener("").skipTo('A')); in testEmptyString() 138 assertEquals("foo! at character 0 of ", in testEmptyString() 140 assertEquals(" at character 0 of ", new JSONTokener("").toString()); in testEmptyString() [all …]
|
D | JSONArrayTest.java | 37 assertEquals(0, array.length()); in testEmptyArray() 38 assertEquals("", array.join(" AND ")); in testEmptyArray() 50 assertEquals("[]", array.toString()); in testEmptyArray() 51 assertEquals("[]", array.toString(4)); in testEmptyArray() 67 assertEquals("equals() not consistent with hashCode()", a.hashCode(), b.hashCode()); in testEqualsAndHashCode() 74 assertEquals(a.hashCode(), b.hashCode()); in testEqualsAndHashCode() 88 assertEquals("[true,false,true,false]", array.toString()); in testBooleans() 89 assertEquals(4, array.length()); in testBooleans() 90 assertEquals(Boolean.TRUE, array.get(0)); in testBooleans() 91 assertEquals(Boolean.FALSE, array.get(1)); in testBooleans() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKMonth.java | 63 import static org.testng.Assert.assertEquals; 124 assertEquals(test.getValue(), i); in test_factory_int_singleton() 141 assertEquals(Month.from(LocalDate.of(2011, 6, 6)), Month.JUNE); in test_factory_CalendricalObject() 159 assertEquals(Month.AUGUST.isSupported((TemporalField) null), false); in test_isSupported_TemporalField() 160 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_SECOND), false); in test_isSupported_TemporalField() 161 assertEquals(Month.AUGUST.isSupported(ChronoField.NANO_OF_DAY), false); in test_isSupported_TemporalField() 162 assertEquals(Month.AUGUST.isSupported(ChronoField.MICRO_OF_SECOND), false); in test_isSupported_TemporalField() 163 assertEquals(Month.AUGUST.isSupported(ChronoField.MICRO_OF_DAY), false); in test_isSupported_TemporalField() 164 assertEquals(Month.AUGUST.isSupported(ChronoField.MILLI_OF_SECOND), false); in test_isSupported_TemporalField() 165 assertEquals(Month.AUGUST.isSupported(ChronoField.MILLI_OF_DAY), false); in test_isSupported_TemporalField() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | OldAndroidNIOTest.java | 77 assertEquals(ByteOrder.BIG_ENDIAN, dupe.order()); in byteBufferTest() 138 assertEquals((byte) 0xA7, b.get(7)); in byteBufferTest() 154 assertEquals((byte) 0xA0, b.get()); in byteBufferTest() 155 assertEquals((byte) 0xA1, b.get()); in byteBufferTest() 156 assertEquals((byte) 0xA2, b.get()); in byteBufferTest() 157 assertEquals((byte) 0xA3, b.get()); in byteBufferTest() 158 assertEquals((byte) 0xA4, b.get()); in byteBufferTest() 159 assertEquals((byte) 0xA5, b.get()); in byteBufferTest() 160 assertEquals((byte) 0xA6, b.get()); in byteBufferTest() 161 assertEquals((byte) 0xA7, b.get()); in byteBufferTest() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | BidiTest.java | 31 assertEquals("different length", expected.length, bidi.getRunCount()); in assertRunArrayEquals() 149 assertEquals(0, bd.getBaseLevel()); in testEmptyParagraph() 150 assertEquals(0, bd.getLength()); in testEmptyParagraph() 151 assertEquals(0, bd.getLevelAt(0)); in testEmptyParagraph() 152 assertEquals(0, bd.getLevelAt(1000)); in testEmptyParagraph() 153 assertEquals(1, bd.getRunCount()); in testEmptyParagraph() 161 assertEquals(1, bd.getBaseLevel()); in testEmptyParagraph() 162 assertEquals(0, bd.getLength()); in testEmptyParagraph() 163 assertEquals(1, bd.getLevelAt(0)); in testEmptyParagraph() 164 assertEquals(1, bd.getLevelAt(1000)); in testEmptyParagraph() [all …]
|
D | StringCharacterIteratorTest.java | 122 assertEquals(sci0, sci0); in test_equalsLjava_lang_Object() 127 assertEquals(sci0, sci1); in test_equalsLjava_lang_Object() 132 assertEquals(sci0, sci1); in test_equalsLjava_lang_Object() 153 assertEquals(sci0, sci1); in test_clone() 166 assertEquals('f', fixture.current()); in test_current() 168 assertEquals('i', fixture.current()); in test_current() 172 assertEquals("Wrong current char", 'i', it.current()); in test_current() 180 assertEquals('f', fixture.first()); in test_first() 182 assertEquals('f', fixture.first()); in test_first() 184 assertEquals('f', fixture.first()); in test_first() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/ |
D | Attributes2ImplTest.java | 70 assertEquals(0, attrs.getLength()); in testSetAttributes() 74 assertEquals(multi.getURI(i), attrs.getURI(i)); in testSetAttributes() 75 assertEquals(multi.getLocalName(i), attrs.getLocalName(i)); in testSetAttributes() 76 assertEquals(multi.getQName(i), attrs.getQName(i)); in testSetAttributes() 77 assertEquals(multi.getType(i), attrs.getType(i)); in testSetAttributes() 78 assertEquals(multi.getValue(i), attrs.getValue(i)); in testSetAttributes() 79 assertEquals(multi.isDeclared(i), attrs.isDeclared(i)); in testSetAttributes() 80 assertEquals(multi.isSpecified(i), attrs.isSpecified(i)); in testSetAttributes() 84 assertEquals(0, attrs.getLength()); in testSetAttributes() 88 assertEquals(multi.getLength(), attrs.getLength()); in testSetAttributes() [all …]
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 24 import static org.junit.Assert.assertEquals; 32 assertEquals(POSITIVE_ZERO, toHalf(0.0f)); in testSingleToHalf() 33 assertEquals(NEGATIVE_ZERO, toHalf(-0.0f)); in testSingleToHalf() 34 assertEquals(NaN, toHalf(Float.NaN)); in testSingleToHalf() 35 assertEquals(POSITIVE_INFINITY, toHalf(Float.POSITIVE_INFINITY)); in testSingleToHalf() 36 assertEquals(NEGATIVE_INFINITY, toHalf(Float.NEGATIVE_INFINITY)); in testSingleToHalf() 38 assertEquals((short) 0x3c01, toHalf(1.0009765625f)); in testSingleToHalf() 39 assertEquals((short) 0xc000, toHalf(-2.0f)); in testSingleToHalf() 40 assertEquals((short) 0x0400, toHalf(6.10352e-5f)); in testSingleToHalf() 41 assertEquals((short) 0x7bff, toHalf(65504.0f)); in testSingleToHalf() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | TypeVariableTest.java | 36 assertEquals(clazz, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnClass() 37 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnClass() 38 assertEquals("T", typeVariable.toString()); in testSimpleTypeVariableOnClass() 39 assertEquals("T", typeVariable.getTypeName()); in testSimpleTypeVariableOnClass() 42 assertEquals(Object.class, bounds[0]); in testSimpleTypeVariableOnClass() 54 assertEquals(method, typeVariable.getGenericDeclaration()); in testSimpleTypeVariableOnMethod() 55 assertEquals("T", typeVariable.getName()); in testSimpleTypeVariableOnMethod() 56 assertEquals("T", typeVariable.toString()); in testSimpleTypeVariableOnMethod() 57 assertEquals("T", typeVariable.getTypeName()); in testSimpleTypeVariableOnMethod() 60 assertEquals(Object.class, bounds[0]); in testSimpleTypeVariableOnMethod() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicLongTest.java | 38 assertEquals(1, ai.get()); in testConstructor() 46 assertEquals(0, ai.get()); in testConstructor2() 54 assertEquals(1, ai.get()); in testGetSet() 56 assertEquals(2, ai.get()); in testGetSet() 58 assertEquals(-3, ai.get()); in testGetSet() 66 assertEquals(1, ai.get()); in testGetLazySet() 68 assertEquals(2, ai.get()); in testGetLazySet() 70 assertEquals(-3, ai.get()); in testGetLazySet() 80 assertEquals(-4, ai.get()); in testCompareAndSet() 82 assertEquals(-4, ai.get()); in testCompareAndSet() [all …]
|
D | AtomicIntegerTest.java | 36 assertEquals(1, ai.get()); in testConstructor() 44 assertEquals(0, ai.get()); in testConstructor2() 52 assertEquals(1, ai.get()); in testGetSet() 54 assertEquals(2, ai.get()); in testGetSet() 56 assertEquals(-3, ai.get()); in testGetSet() 64 assertEquals(1, ai.get()); in testGetLazySet() 66 assertEquals(2, ai.get()); in testGetLazySet() 68 assertEquals(-3, ai.get()); in testGetLazySet() 78 assertEquals(-4, ai.get()); in testCompareAndSet() 80 assertEquals(-4, ai.get()); in testCompareAndSet() [all …]
|