/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | StringWriterTest.java | 25 StringWriter sw; field in StringWriterTest 41 sw.close(); in test_close() 52 sw.flush(); in test_flush() 53 sw.write('c'); in test_flush() 54 assertEquals("Failed to flush char", "c", sw.toString()); in test_flush() 64 sw.write("This is a test string"); in test_getBuffer() 65 StringBuffer sb = sw.getBuffer(); in test_getBuffer() 75 sw.write("This is a test string"); in test_toString() 77 "This is a test string", sw.toString()); in test_toString() 87 sw.write(c, 0, 21); in test_write$CII() [all …]
|
D | BufferedWriterTest.java | 32 Support_StringWriter sw; field in BufferedWriterTest 40 sw = new Support_StringWriter(); in test_ConstructorLjava_io_Writer() 41 bw = new BufferedWriter(sw); in test_ConstructorLjava_io_Writer() 42 sw.write("Hi"); in test_ConstructorLjava_io_Writer() 43 assertEquals("Constructor failed", "Hi", sw.toString()); in test_ConstructorLjava_io_Writer() 91 assertTrue("Write after close", !sw.toString().equals(testString)); in test_close() 123 assertTrue("Bytes written without flush", sw.toString().equals("")); in test_flush() 125 assertEquals("Bytes not flushed", "This should not cause a flush", sw in test_flush() 138 assertTrue("Incorrect string written: " + sw.toString(), sw.toString() in test_newLine() 149 assertTrue("Incorrect string written", sw.toString().equals( in test_write$CII() [all …]
|
D | CharArrayWriterTest.java | 173 StringWriter sw = new StringWriter(); in test_writeToLjava_io_Writer() local 174 cw.writeTo(sw); in test_writeToLjava_io_Writer() 175 assertEquals("Writer failed to write correct chars", "HelloWorld", sw in test_writeToLjava_io_Writer()
|
D | PrintWriterTest.java | 120 Support_StringWriter sw; in test_ConstructorLjava_io_Writer() local 121 pw = new PrintWriter(sw = new Support_StringWriter()); in test_ConstructorLjava_io_Writer() 125 "Hello", sw.toString()); in test_ConstructorLjava_io_Writer() 133 Support_StringWriter sw; in test_ConstructorLjava_io_WriterZ() local 134 pw = new PrintWriter(sw = new Support_StringWriter(), true); in test_ConstructorLjava_io_WriterZ() 138 "Hello", sw.toString()); in test_ConstructorLjava_io_WriterZ()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | OldBufferedWriterTest.java | 30 Support_StringWriter sw; field in OldBufferedWriterTest 37 bw = new BufferedWriter(sw); in test_ConstructorLjava_io_Writer() 40 assertTrue("Test 1: Buffering failed.", sw.toString().equals("")); in test_ConstructorLjava_io_Writer() 42 assertEquals("Test 2: Incorrect value;", "Hi", sw.toString()); in test_ConstructorLjava_io_Writer() 50 bw = new BufferedWriter(sw, 0); in test_ConstructorLjava_io_WriterI() 56 bw = new BufferedWriter(sw, 10); in test_ConstructorLjava_io_WriterI() 59 assertTrue("Test 2: Buffering failed.", sw.toString().equals("")); in test_ConstructorLjava_io_WriterI() 61 assertEquals("Test 3: Incorrect value;", "Hi", sw.toString()); in test_ConstructorLjava_io_WriterI() 76 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); in test_close() 90 sw.toString().equals("")); in test_flush() [all …]
|
D | OldStringWriterTest.java | 25 StringWriter sw; field in OldStringWriterTest 45 sw = new StringWriter(); in setUp()
|
D | OldCharArrayWriterTest.java | 76 StringWriter sw = new StringWriter(); in test_writeToLjava_io_Writer() local 78 cw.writeTo(sw); in test_writeToLjava_io_Writer() 80 "HelloWorld", sw.toString()); in test_writeToLjava_io_Writer()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | SanityTest.java | 43 StackWalker sw = StackWalker.getInstance((Set<StackWalker.Option>) null); in testNPE() local 48 StackWalker sw = StackWalker.getInstance((StackWalker.Option) null); in testNPE() local 64 StackWalker sw = StackWalker.getInstance(Collections.emptySet(), 0); in testInvalidEstimateDepth() local 89 StackWalker sw = StackWalker.getInstance(); in testUOEFromGetDeclaringClass() local 90 sw.forEach(StackWalker.StackFrame::getDeclaringClass); in testUOEFromGetDeclaringClass() 99 StackWalker sw = StackWalker.getInstance(); in testUOEFromGetMethodType() local 100 sw.forEach(StackWalker.StackFrame::getMethodType); in testUOEFromGetMethodType()
|
D | CallerFromMain.java | 41 …private static final StackWalker sw = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFE… field in CallerFromMain 72 Class<?> c = sw.getCallerClass(); in main() 101 Class<?> c = sw.getCallerClass(); in main() 132 Class<?> c = sw.getCallerClass(); in run() 139 Class<?> c = sw.getCallerClass(); in doit()
|
D | SecurityExceptions.java | 44 StackWalker sw = StackWalker.getInstance(); in main() local 47 sw = StackWalker.getInstance(StackWalker.Option.RETAIN_CLASS_REFERENCE); in main()
|
D | StackStreamTest.java | 203 StackWalker sw = StackWalker.getInstance(RETAIN_CLASS_REFERENCE); in firstFrame() local 204 sw.forEach(e -> { in firstFrame() 208 Optional<StackFrame> frame = sw.walk(s -> in firstFrame()
|
D | LocalsAndOperands.java | 214 StackWalker sw = (StackWalker) getExtendedWalker.invoke(null, in fullStackSanityCheck() local 217 sw.forEach(f -> { in fullStackSanityCheck() 239 StackWalker sw = StackWalker.getInstance(); in noLocalsSanityCheck() local 240 sw.forEach(f -> { in noLocalsSanityCheck()
|
D | GetCallerClassTest.java | 55 public GetCallerClassTest(StackWalker sw, boolean expect) { in GetCallerClassTest() argument 56 this.walker = sw; in GetCallerClassTest()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertPathValidatorSpi.java | 39 private int sw = 0; field in MyCertPathValidatorSpi 43 ++sw; in engineValidate() 45 if ((sw % 2) == 0) { in engineValidate() 50 if ((sw % 3) == 0) { in engineValidate()
|
/libcore/luni/src/test/java/libcore/javax/xml/transform/stream/ |
D | StreamResultTest.java | 78 StringWriter sw = new StringWriter(); in constructorWithWriter() local 79 StreamResult sr = new StreamResult(sw); in constructorWithWriter() 82 assertEquals(sw, sr.getWriter()); in constructorWithWriter() 116 StringWriter sw = new StringWriter(); in setWriter() local 117 sr.setWriter(sw); in setWriter() 118 assertEquals(sw, sr.getWriter()); in setWriter()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | SimpleFormatter.java | 154 StringWriter sw = new StringWriter(); in format() local 155 PrintWriter pw = new PrintWriter(sw); in format() 159 throwable = sw.toString(); in format()
|
/libcore/ojluni/src/test/java/util/Vector/ |
D | SimpleSerialization.java | 72 final StringWriter sw = new StringWriter(); in getFailureText() local 73 final PrintWriter pw = new PrintWriter(sw); in getFailureText() 82 return sw.toString(); in getFailureText()
|
D | SerializationDeadlock.java | 141 final StringWriter sw = new StringWriter(); in getErrorText() local 142 final PrintWriter pw = new PrintWriter(sw); in getErrorText() 155 return sw.toString(); in getErrorText()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | SystemTest.java | 54 StringWriter sw = new StringWriter(); in testLineSeparator() local 55 BufferedWriter bw = new BufferedWriter(sw); in testLineSeparator() 58 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator() 66 sw = new StringWriter(); in testLineSeparator() 67 new PrintWriter(sw).println(); in testLineSeparator() 68 assertEquals(System.lineSeparator(), sw.toString()); in testLineSeparator()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | PlatformLogger.java | 526 StringWriter sw = new StringWriter(); in format() local 527 PrintWriter pw = new PrintWriter(sw); in format() 531 throwable = sw.toString(); in format()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodType.java | 995 Wrapper sw = Wrapper.forPrimitiveType(src); 998 return Wrapper.forPrimitiveType(dst).isConvertibleFrom(sw); 1001 return dst.isAssignableFrom(sw.wrapperType());
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | OpTestCase.java | 425 StringWriter sw = new StringWriter(); in exercise() local 426 PrintWriter pw = new PrintWriter(sw); in exercise() 430 sb.append(t).append("\n").append(sw); in exercise()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | OpTestCase.java | 426 StringWriter sw = new StringWriter(); in exercise() local 427 PrintWriter pw = new PrintWriter(sw); in exercise() 431 sb.append(t).append("\n").append(sw); in exercise()
|
/libcore/support/src/test/java/tests/resources/ |
D | junit4-4.3.1.jar | META-INF/
META-INF/MANIFEST.MF
junit/
junit/extensions/
junit/ ... |