/libcore/luni/src/test/etc/loading-test-jar/ |
D | TestMethods.java | 46 public static void assertSame(Object expected, Object actual) { in assertSame() method in TestMethods 56 public static void assertSame(int expected, int actual) { in assertSame() method in TestMethods 94 assertSame("blort", Target.blort()); in test_callStaticMethod() 102 assertSame(22, Target.staticVariable); in test_getStaticVariable() 110 assertSame("zorch", target.zorch()); in test_callInstanceMethod() 119 assertSame(10098, target.instanceVariable); in test_getInstanceVariable() 132 assertSame("Muffins are tasty!\n", s.intern()); in test_getResourceAsStream() 150 assertSame("frotz", Target2.frotz()); in test_diff_callStaticMethod() 158 assertSame(220, Target2.staticIgram); in test_diff_getStaticVariable() 166 assertSame("fizmo", target.fizmo()); in test_diff_callInstanceMethod() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | RecursiveTaskTest.java | 87 assertSame(expected, a.getRawResult()); in checkCompletedNormally() 88 assertSame(expected, a.join()); in checkCompletedNormally() 92 assertSame(expected, a.get()); in checkCompletedNormally() 95 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally() 151 assertSame(t.getClass(), a.getException().getClass()); in checkCompletedAbnormally() 160 assertSame(t.getClass(), expected.getClass()); in checkCompletedAbnormally() 167 assertSame(t.getClass(), success.getCause().getClass()); in checkCompletedAbnormally() 174 assertSame(t.getClass(), success.getCause().getClass()); in checkCompletedAbnormally() 249 assertSame(NoResult, testInvokeOnPool(mainPool(), a)); in testQuietlyInvoke() 259 assertSame(f, f.fork()); in testForkJoin() [all …]
|
D | AtomicReferenceTest.java | 21 assertSame(one, ai.get()); in testConstructor() 37 assertSame(one, ai.get()); in testGetSet() 39 assertSame(two, ai.get()); in testGetSet() 41 assertSame(m3, ai.get()); in testGetSet() 49 assertSame(one, ai.get()); in testGetLazySet() 51 assertSame(two, ai.get()); in testGetLazySet() 53 assertSame(m3, ai.get()); in testGetLazySet() 63 assertSame(m4, ai.get()); in testCompareAndSet() 65 assertSame(m4, ai.get()); in testCompareAndSet() 67 assertSame(seven, ai.get()); in testCompareAndSet() [all …]
|
D | AtomicMarkableReferenceTest.java | 21 assertSame(one, ai.getReference()); in testConstructor() 34 assertSame(one, ai.getReference()); in testGetSet() 36 assertSame(one, ai.get(mark)); in testGetSet() 39 assertSame(two, ai.getReference()); in testGetSet() 41 assertSame(two, ai.get(mark)); in testGetSet() 44 assertSame(one, ai.getReference()); in testGetSet() 46 assertSame(one, ai.get(mark)); in testGetSet() 59 assertSame(one, ai.get(mark)); in testAttemptMark() 70 assertSame(one, ai.get(mark)); in testCompareAndSet() 75 assertSame(two, ai.get(mark)); in testCompareAndSet() [all …]
|
D | AtomicStampedReferenceTest.java | 21 assertSame(one, ai.getReference()); in testConstructor() 34 assertSame(one, ai.getReference()); in testGetSet() 36 assertSame(one, ai.get(mark)); in testGetSet() 39 assertSame(two, ai.getReference()); in testGetSet() 41 assertSame(two, ai.get(mark)); in testGetSet() 44 assertSame(one, ai.getReference()); in testGetSet() 46 assertSame(one, ai.get(mark)); in testGetSet() 59 assertSame(one, ai.get(mark)); in testAttemptStamp() 70 assertSame(one, ai.get(mark)); in testCompareAndSet() 75 assertSame(two, ai.get(mark)); in testCompareAndSet() [all …]
|
D | AtomicReferenceFieldUpdaterTest.java | 74 assertSame(one, a.get(this)); in testGetSet() 76 assertSame(two, a.get(this)); in testGetSet() 78 assertSame(m3, a.get(this)); in testGetSet() 88 assertSame(one, a.get(this)); in testGetLazySet() 90 assertSame(two, a.get(this)); in testGetLazySet() 92 assertSame(m3, a.get(this)); in testGetLazySet() 104 assertSame(m4, a.get(this)); in testCompareAndSet() 108 assertSame(seven, a.get(this)); in testCompareAndSet() 130 assertSame(three, a.get(this)); in testCompareAndSetInMultipleThreads() 143 assertSame(m4, a.get(this)); in testWeakCompareAndSet() [all …]
|
D | ExchangerTest.java | 27 assertSame(one, e.exchange(two)); in testExchange() 28 assertSame(two, e.exchange(one)); in testExchange() 32 assertSame(two, e.exchange(one)); in testExchange() 33 assertSame(one, e.exchange(two)); in testExchange() 47 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 48 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 52 assertSame(two, e.exchange(one, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 53 assertSame(one, e.exchange(two, LONG_DELAY_MS, MILLISECONDS)); in testTimedExchange() 121 assertSame(two, e.exchange(one)); in testReplacementAfterExchange() 127 assertSame(one, e.exchange(two)); in testReplacementAfterExchange() [all …]
|
D | AtomicReferenceArrayTest.java | 57 assertSame(a[i], aa.get(i)); in testConstructorSubClassArray() 60 assertSame(x, aa.get(i)); in testConstructorSubClassArray() 100 assertSame(one, aa.get(i)); in testGetSet() 102 assertSame(two, aa.get(i)); in testGetSet() 104 assertSame(m3, aa.get(i)); in testGetSet() 115 assertSame(one, aa.get(i)); in testGetLazySet() 117 assertSame(two, aa.get(i)); in testGetLazySet() 119 assertSame(m3, aa.get(i)); in testGetLazySet() 132 assertSame(m4, aa.get(i)); in testCompareAndSet() 134 assertSame(m4, aa.get(i)); in testCompareAndSet() [all …]
|
D | ThreadLocalTest.java | 37 assertSame(tl.get(), one); in testRemove() 39 assertSame(tl.get(), two); in testRemove() 41 assertSame(tl.get(), one); in testRemove() 49 assertSame(itl.get(), zero); in testRemoveITL() 51 assertSame(itl.get(), two); in testRemoveITL() 53 assertSame(itl.get(), zero); in testRemoveITL()
|
D | ForkJoinTaskTest.java | 90 assertSame(expected, a.getRawResult()); in checkCompletedNormally() 95 assertSame(expected, a.join()); in checkCompletedNormally() 111 assertSame(expected, a.get()); in checkCompletedNormally() 114 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally() 160 assertSame(t.getClass(), a.getException().getClass()); 170 assertSame(t.getClass(), expected.getClass()); 184 assertSame(t.getClass(), success.getCause().getClass()); 191 assertSame(t.getClass(), success.getCause().getClass()); 414 assertSame(f, f.fork()); in testForkJoin() 429 assertSame(f, f.fork()); in testForkGet() [all …]
|
D | RecursiveActionTest.java | 133 assertSame(t.getClass(), a.getException().getClass()); in checkCompletedAbnormally() 142 assertSame(expected.getClass(), t.getClass()); in checkCompletedAbnormally() 149 assertSame(t.getClass(), success.getCause().getClass()); in checkCompletedAbnormally() 156 assertSame(t.getClass(), success.getCause().getClass()); in checkCompletedAbnormally() 240 assertSame(f, f.fork()); in testForkJoin() 258 assertSame(f, f.fork()); in testJoinIgnoresInterrupts() 268 assertSame(f, f.fork()); in testJoinIgnoresInterrupts() 281 assertSame(f, f.fork()); in testJoinIgnoresInterrupts() 294 assertSame(f, f.fork()); in testJoinIgnoresInterrupts() 304 assertSame(f, f.fork()); in testJoinIgnoresInterrupts() [all …]
|
D | CountedCompleterTest.java | 159 assertSame(t.getClass(), a.getException().getClass()); 169 assertSame(t.getClass(), expected.getClass()); 183 assertSame(t.getClass(), success.getCause().getClass()); 190 assertSame(t.getClass(), success.getCause().getClass()); 197 assertSame(t, ex); 257 assertSame(rawResult, this.rawResult.get()); 380 assertSame(a, b.getCompleter()); 382 assertSame(b, c.getCompleter()); 392 assertSame(a, a.getRoot()); 393 assertSame(a, b.getRoot()); [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | ElementTypeTest.java | 36 assertSame(ElementType.ANNOTATION_TYPE, ElementType 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() 40 assertSame(ElementType.LOCAL_VARIABLE, ElementType 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()
|
D | RetentionPolicyTest.java | 35 assertSame(RetentionPolicy.CLASS, RetentionPolicy in test_valueOfLjava_lang_String() 37 assertSame(RetentionPolicy.RUNTIME, RetentionPolicy in test_valueOfLjava_lang_String() 39 assertSame(RetentionPolicy.SOURCE, RetentionPolicy in test_valueOfLjava_lang_String()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | PreferenceChangeEventTest.java | 44 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 45 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 50 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 51 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 56 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 57 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 62 assertSame(Preferences.userRoot(), event.getNode()); in testConstructorNullValue() 63 assertSame(Preferences.userRoot(), event.getSource()); in testConstructorNullValue() 71 assertSame(Preferences.userRoot(), event.getNode()); in testConstructor() 72 assertSame(Preferences.userRoot(), event.getSource()); in testConstructor()
|
D | NodeChangeEventTest.java | 35 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructor() 36 assertSame(Preferences.userRoot(), event.getChild()); in testConstructor() 37 assertSame(Preferences.systemRoot(), event.getSource()); in testConstructor() 48 assertSame(Preferences.systemRoot(), event.getParent()); in testConstructorNullParam() 50 assertSame(Preferences.systemRoot(), event.getSource()); in testConstructorNullParam()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringBuilderTest.java | 98 assertSame(sb, sb.append(true)); in test_appendZ() 101 assertSame(sb, sb.append(false)); in test_appendZ() 110 assertSame(sb, sb.append('a')); in test_appendC() 113 assertSame(sb, sb.append('b')); in test_appendC() 122 assertSame(sb, sb.append(new char[] { 'a', 'b' })); in test_append$C() 125 assertSame(sb, sb.append(new char[] { 'c', 'd' })); in test_append$C() 140 assertSame(sb, sb.append(new char[] { 'a', 'b' }, 0, 2)); in test_append$CII() 143 assertSame(sb, sb.append(new char[] { 'c', 'd' }, 0, 2)); in test_append$CII() 147 assertSame(sb, sb.append(new char[] { 'a', 'b', 'c', 'd' }, 0, 2)); in test_append$CII() 151 assertSame(sb, sb.append(new char[] { 'a', 'b', 'c', 'd' }, 2, 2)); in test_append$CII() [all …]
|
D | StringBufferTest.java | 140 assertSame(sb, sb.append((CharSequence) "ab")); in test_appendLjava_lang_CharSequence() 143 assertSame(sb, sb.append((CharSequence) "cd")); in test_appendLjava_lang_CharSequence() 146 assertSame(sb, sb.append((CharSequence) null)); in test_appendLjava_lang_CharSequence() 156 assertSame(sb, sb.append((CharSequence) "ab", 0, 2)); in test_appendLjava_lang_CharSequenceII() 159 assertSame(sb, sb.append((CharSequence) "cd", 0, 2)); in test_appendLjava_lang_CharSequenceII() 162 assertSame(sb, sb.append((CharSequence) "abcd", 0, 2)); in test_appendLjava_lang_CharSequenceII() 165 assertSame(sb, sb.append((CharSequence) "abcd", 2, 4)); in test_appendLjava_lang_CharSequenceII() 168 assertSame(sb, sb.append((CharSequence) null, 0, 2)); in test_appendLjava_lang_CharSequenceII() 204 assertSame(sb, sb.insert(0, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence() 209 assertSame(sb, sb.insert(2, (CharSequence) "ab")); in test_insertILjava_lang_CharSequence() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetEncoderTest.java | 92 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testDefaultValue() 93 assertSame(encoder, encoder.onUnmappableCharacter(CodingErrorAction.IGNORE)); in testDefaultValue() 108 assertSame(encoder.charset(), cs); in testCharsetEncoderCharsetfloatfloat() 116 assertSame(encoder, encoder.onMalformedInput(CodingErrorAction.IGNORE)); in testCharsetEncoderCharsetfloatfloat() 117 assertSame(encoder, encoder in testCharsetEncoderCharsetfloatfloat() 122 assertSame(ec.charset(), cs); in testCharsetEncoderCharsetfloatfloat() 178 assertSame(ec.charset(), cs); in testCharsetEncoderCharsetfloatfloatbyteArray() 181 assertSame(ba, ec.replacement()); in testCharsetEncoderCharsetfloatfloatbyteArray() 268 assertSame(encoder, encoder.reset()); in testResetIllegalState() 270 assertSame(encoder, encoder.reset()); in testResetIllegalState() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractMapTest.java | 78 assertSame("HashMap(0)", map1.keySet(), map1.keySet()); in test_keySet() 81 assertSame("HashMap(10)", map2.keySet(), map2.keySet()); in test_keySet() 84 assertSame("EMPTY_MAP", map3.keySet(), map3.keySet()); in test_keySet() 87 assertSame("IdentityHashMap", map4.keySet(), map4.keySet()); in test_keySet() 90 assertSame("LinkedHashMap", map5.keySet(), map5.keySet()); in test_keySet() 93 assertSame("TreeMap", map6.keySet(), map6.keySet()); in test_keySet() 96 assertSame("WeakHashMap", map7.keySet(), map7.keySet()); in test_keySet() 108 assertSame("HashMap(0)", map1.remove("key"), value); in test_removeLjava_lang_Object() 112 assertSame("IdentityHashMap", map4.remove(key), value); in test_removeLjava_lang_Object() 116 assertSame("LinkedHashMap", map5.remove(key), value); in test_removeLjava_lang_Object() [all …]
|
D | ControlTest.java | 133 assertSame(control, Control.getControl(FORMAT_DEFAULT)); in test_getControl_LList() 134 assertSame(controlC, Control.getControl(FORMAT_CLASS)); in test_getControl_LList() 135 assertSame(controlP, Control.getControl(FORMAT_PROPERTIES)); in test_getControl_LList() 144 assertSame(controlC, Control.getControl(list)); in test_getControl_LList() 147 assertSame(control, Control.getControl(list)); in test_getControl_LList() 194 assertSame(control, Control.getNoFallbackControl(FORMAT_DEFAULT)); in test_getNoFallbackControl_LList() 195 assertSame(controlC, Control.getNoFallbackControl(FORMAT_CLASS)); in test_getNoFallbackControl_LList() 196 assertSame(controlP, Control.getNoFallbackControl(FORMAT_PROPERTIES)); in test_getNoFallbackControl_LList() 228 assertSame(controlC, Control.getNoFallbackControl(list)); in test_getNoFallbackControl_LList() 231 assertSame(control, Control.getNoFallbackControl(list)); in test_getNoFallbackControl_LList() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | PKIXCertPathValidatorResultTest.java | 160 assertSame(ta, vr.getTrustAnchor()); in testGetTrustAnchor() 184 assertSame(pk, vr.getPublicKey()); in testGetPublicKey() 211 assertSame(pn, vr.getPolicyTree()); in testGetPolicyTree01() 263 assertSame("trustAncor", vr1.getTrustAnchor(), vr2.getTrustAnchor()); in testClone() 264 assertSame("policyTree", vr1.getPolicyTree(), vr2.getPolicyTree()); in testClone() 265 assertSame("publicKey", vr1.getPublicKey(), vr2.getPublicKey()); in testClone() 273 assertSame(my.getPolicyTree(), myClone.getPolicyTree()); in testClone() 274 assertSame(my.getPublicKey(), myClone.getPublicKey()); in testClone() 275 assertSame(my.getTrustAnchor(), myClone.getTrustAnchor()); in testClone() 276 assertSame(my.enc, myClone.enc); in testClone()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | DataFormatFieldTest.java | 45 assertSame("Modified calendar field with the same field number", in test_ConstructorLjava_lang_StringLjava_lang_String() 50 assertSame("Modified calendar field with the same field number", in test_ConstructorLjava_lang_StringLjava_lang_String() 78 assertSame("Modified calendar field with the same field number", in test_ConstructorLjava_lang_StringI() 94 assertSame("Modified calendar field with the same field number", in test_Constructor2() 99 assertSame("Modified calendar field with the same field number", in test_Constructor2() 133 assertSame("ofCalendarField(Calendar.AM_PM) returned the wrong value", in test_ofCalendarFieldI() 137 assertSame("ofCalendarField(Calendar.HOUR) returned the wrong value", in test_ofCalendarFieldI() 139 assertSame( in test_ofCalendarFieldI() 198 assertSame("resolved incorrectly", dfield, dfield2); in test_readResolve()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldLoggerTest.java | 70 assertSame(Logger.global, Logger.getLogger("global")); in testGlobalLogger() 71 assertSame(Logger.global, LogManager.getLogManager().getLogger("global")); in testGlobalLogger() 72 assertSame(Logger.global, Logger.getGlobal()); in testGlobalLogger() 146 assertSame(pLog.getParent(), root); in testGetLogger_WithParent() 159 assertSame(child.getParent(), pLog); in testGetLogger_WithParent() 179 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent() 187 assertSame(child.getParent().getParent(), root); in testGetLogger_WithParent() 192 assertSame(childOfChild.getParent(), child); in testGetLogger_WithParent() 193 assertSame(childOfChild.getParent().getParent(), pLog); in testGetLogger_WithParent() 194 assertSame(childOfChild.getParent().getParent().getParent(), root); in testGetLogger_WithParent() [all …]
|
D | OldLogManagerTest.java | 100 assertSame("two loggers not refer to the same object", foo, log); in testGetLogger() 135 assertSame(foo2, mockManager.getLogger(FOO)); in testGetLogger_duplicateName() 137 assertSame(foo2, mockManager.getLogger(FOO)); in testGetLogger_duplicateName() 156 assertSame(manager.getLogger(""), manager.getLogger("testGetLogger_hierachy.foo") in testGetLogger_hierarchy() 174 assertSame(foo, mockManager.getLogger(FOO)); in testGetLogger_nameSpace() 175 assertSame(fooBeforeSpace, mockManager.getLogger(FOO + " ")); in testGetLogger_nameSpace() 176 assertSame(fooAfterSpace, mockManager.getLogger(" " + FOO)); in testGetLogger_nameSpace() 177 assertSame(fooWithBothSpace, mockManager.getLogger(" " + FOO + " ")); in testGetLogger_nameSpace()
|