/libcore/ojluni/src/test/java/io/Serializable/records/ |
D | UnsharedTest.java | 56 var foo = new Foo(6); in testReadUnshared() local 58 var byteStream = serialize(foo, foo); in testReadUnshared() 60 assertEquals(foo1.x, foo.x); in testReadUnshared() 62 assertEquals(foo2.x, foo.x); in testReadUnshared() 66 var byteStream = serialize(foo, foo); in testReadUnshared() 68 assertEquals(foo1.x, foo.x); in testReadUnshared() 76 var foo = new Foo(7); in testWriteUnshared() local 78 var byteStream = serializeUnshared(foo, foo); in testWriteUnshared() 80 assertEquals(foo1.x, foo.x); in testWriteUnshared() 82 assertEquals(foo2.x, foo.x); in testWriteUnshared() [all …]
|
D | BasicRecordSer.java | 66 final Foo foo; field in BasicRecordSer.Bar 68 Bar(Foo foo, long along) { this.foo = foo; this.along = along; } in Bar() argument 74 if (this.foo.equals(other.foo) && this.along == other.along) in equals() 80 return format("Bar[foo=%s, along=%d]", foo, along); in toString() 84 record Baz (Bar bar, float afloat, Foo foo) implements Serializable { } 102 record Wobble (Foo foo) implements ThrowingExternalizable { } 108 Foo foo = new Foo(23); in serializable() local 113 new Object[] { new Foo[] { foo, foo, foo, foo, foo } }, in serializable() 154 Foo foo = new Foo(32); in testSerializableBackRefs() local 155 Foo[] objToSerialize = new Foo[] { foo, foo, foo, foo, foo }; in testSerializableBackRefs() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OptionalTest.java | 52 String foo = "foo"; in testGet() local 53 Optional<String> optionalFoo = Optional.of(foo); in testGet() 54 assertSame(foo, optionalFoo.get()); in testGet() 80 String foo = "foo"; in testIfPresent() local 81 Optional.of(foo).ifPresent(s -> reference.set(s)); in testIfPresent() 82 assertSame(foo, reference.get()); in testIfPresent() 96 final String foo = "foo"; in testFilter() local 97 Optional<String> optionalFoo = Optional.of(foo); in testFilter() 105 assertSame(foo, reference.get()); in testFilter() 119 String foo = "foo"; in testMap() local [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomSerializationTest.java | 43 Element foo = document.createElement("foo"); in testWriteDocument() local 46 foo.setAttributeNode(quux); in testWriteDocument() 47 foo.appendChild(document.createElement("bar")); in testWriteDocument() 48 foo.appendChild(document.createElement("baz")); in testWriteDocument() 49 document.appendChild(foo); in testWriteDocument() 55 Element foo = document.createElement("foo"); in testWriteSpecialCharactersInText() local 56 foo.appendChild(document.createTextNode("5'8\", 5 < 6 & 7 > 3!")); in testWriteSpecialCharactersInText() 57 document.appendChild(foo); in testWriteSpecialCharactersInText()
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldLogManagerTest.java | 96 Logger foo = mockManager.getLogger(FOO); in testGetLogger() local 97 assertNull("Logger should be null", foo); in testGetLogger() 99 foo = mockManager.getLogger(FOO); in testGetLogger() 100 assertSame("two loggers not refer to the same object", foo, log); in testGetLogger() 101 assertNull("logger foo should not haven parent", foo.getParent()); in testGetLogger() 153 Logger foo = new MockLogger("testGetLogger_hierachy.foo", null); in testGetLogger_hierarchy() local 155 assertTrue(manager.addLogger(foo)); in testGetLogger_hierarchy() 165 Logger foo = new MockLogger(FOO, null); in testGetLogger_nameSpace() local 169 assertTrue(mockManager.addLogger(foo)); in testGetLogger_nameSpace() 174 assertSame(foo, mockManager.getLogger(FOO)); in testGetLogger_nameSpace()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ProxyTest.java | 289 assertEquals(true, returnsObject.foo()); in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller() 302 returnsString.foo(); in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller() 322 int foo(); in foo() method 326 float foo(); in foo() method 330 Integer foo(); in foo() method 334 String foo(); in foo() method 338 CharSequence foo(); in foo() method 342 CharSequence foo(); in foo() method 346 CharSequence foo(); in foo() method 350 Object foo(); in foo() method [all …]
|
D | ReflectionTest.java | 498 Foo foo = new Foo("string"); in testClassEnclosedByConstructor() local 499 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByConstructor() 501 foo.c.getEnclosingConstructor()); in testClassEnclosedByConstructor() 502 assertNull(foo.c.getEnclosingMethod()); in testClassEnclosedByConstructor() 503 assertNull(foo.c.getDeclaringClass()); in testClassEnclosedByConstructor() 507 Foo foo = new Foo(); in testClassEnclosedByMethod() local 508 foo.foo("string"); in testClassEnclosedByMethod() 509 assertEquals(Foo.class, foo.c.getEnclosingClass()); in testClassEnclosedByMethod() 510 assertNull(foo.c.getEnclosingConstructor()); in testClassEnclosedByMethod() 512 foo.c.getEnclosingMethod()); in testClassEnclosedByMethod() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/ |
D | DeserializeMethodTest.java | 58 void foo() { in foo() method in DeserializeMethodTest.Cap1 68 void foo() { in foo() method in DeserializeMethodTest.Cap2 79 void foo() { in foo() method in DeserializeMethodTest.Cap3
|
D | SerializedLambdaTest.java | 141 Predicate<String> foo(int x) { in testSerializeCapturingInt() method in SerializedLambdaTest.Moo 145 Predicate<String> pred = new Moo().foo(3); in testSerializeCapturingInt() 156 Predicate<String> foo(String t) { in testSerializeCapturingString() method in SerializedLambdaTest.Moo 160 Predicate<String> pred = new Moo().foo("goo"); in testSerializeCapturingString() 176 Predicate<String> foo(Box b) { in testSerializeCapturingNonSerializable() method in SerializedLambdaTest.Moo 180 Predicate<String> pred = new Moo().foo(new Box("goo")); in testSerializeCapturingNonSerializable() 298 private static boolean foo(Object s) { return s != null && ((String) s).length() > 0; } in foo() method in SerializedLambdaTest
|
/libcore/support/src/test/java/tests/resources/morestuff/ |
D | hyts_patch.jar | ... META-INF/MANIFEST.MF
Blah.txt
foo/
foo/bar/
foo/bar/A ... |
D | hyts_patch2.jar | ... Blah.txt
foo/
foo/bar/
foo/bar/A.class
A.java
package ... |
/libcore/support/src/test/java/tests/resources/ |
D | hyts_patch.jar | ... META-INF/MANIFEST.MF
Blah.txt
foo/
foo/bar/
foo/bar/A ... |
D | hyts_patch2.jar | ... Blah.txt
foo/
foo/bar/
foo/bar/A.class
A.java
package ... |
D | hyts_mainClass.ser | ... MainClass.java
package foo.bar.execjartest
public foo.bar.execjartest.MainClass extends java.lang ... |
D | hyts_Bar.ser | ... Bar.java
package foo.bar.execjartest
foo.bar.execjartest.Bar extends java.lang ... |
D | hyts_Foo.ser | Foo.java
package foo.bar.execjartest
public foo.bar.execjartest.Foo extends java.lang ... |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | IdentityHashMap2Test.java | 172 private final String foo; field in IdentityHashMap2Test.TestKey 174 TestKey(String foo) { in TestKey() argument 175 this.foo = foo; in TestKey() 180 return o instanceof TestKey && foo.equals(((TestKey) o).foo); in equals()
|
/libcore/support/src/test/java/tests/resources/JarIndex/ |
D | hyts_22.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_21.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_32.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_12.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_42.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_22-new.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_41.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |
D | hyts_11.jar | ... java.lang.String[])
public void foo ()
public void <init> ()
} ... |