Home
last modified time | relevance | path

Searched refs:getResourceAsStream (Results 1 – 25 of 55) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java441 InputStream str2 = getClass().getResourceAsStream(name); in test_getResourceAsStreamLjava_lang_String()
446 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String()
555 assertNull(getClass().getResourceAsStream(SHARP_RESOURCE_ABS_NAME)); in test_getResourceAsStream_withSharpChar()
560 this.getClass().getClassLoader().getResourceAsStream(SHARP_RESOURCE_ABS_NAME); in test_getResourceAsStream_withSharpChar()
581 assertNull(getClass().getResourceAsStream(QUERY_RESOURCE_ABS_NAME)); in test_getResourceAsStream_withQueryChar()
586 this.getClass().getClassLoader().getResourceAsStream(QUERY_RESOURCE_ABS_NAME); in test_getResourceAsStream_withQueryChar()
607 assertNull(getClass().getResourceAsStream(RESOURCE_ABS_NAME)); in test_getResourceAsStream()
611 InputStream in = this.getClass().getClassLoader().getResourceAsStream(RESOURCE_ABS_NAME); in test_getResourceAsStream()
617 InputStream in = getClass().getResourceAsStream(resourceName); in assertResourceExists()
DClassLoaderTest.java109 assertNull(parentClassLoader.getResourceAsStream(TEST_RESOURCE_NAME)); in test_testClassLoader_getResourceAsStreamLjava_lang_String()
207 is = classLoader.getResourceAsStream(resourceName); in assertGetResourceAsStreamNotNull()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DGenericSignatureFormatErrorTest.java28 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_readResource()
57 InputStream is = this.getClass().getResourceAsStream("/resources/dex1.bytes"); in test_signatureFormatError()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java40 InputStream result = Support_Resources.class.getResourceAsStream(path); in getStream()
167 InputStream is = Support_Resources.class.getResourceAsStream(name); in getResourceStream()
171 is = Support_Resources.class.getResourceAsStream(name); in getResourceStream()
185 InputStream xml = Support_Resources.class.getResourceAsStream(path); in resourceToTempFile()
/libcore/luni/src/test/etc/loading-test-jar/
DTestMethods.java128 InputStream in = cl.getResourceAsStream("test/Resource1.txt"); in test_getResourceAsStream()
184 InputStream in = cl.getResourceAsStream("test2/Resource2.txt"); in test_diff_getResourceAsStream()
/libcore/luni/src/test/java/libcore/xml/
DSimpleParserTest.java155 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile1()
181 parser.parse(getClass().getResourceAsStream("/SimpleParserTest.xml"), in testWorkingFile2()
222 parser.parse(this.getClass().getResourceAsStream("/staffEntRes.xml"), in testEntityResolver()
229 parser.parse(getClass().getResourceAsStream("/staffNS.xml"), in testGetValue()
DSimpleBuilderTest.java58 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile1()
111 Document document = builder.parse(getClass().getResourceAsStream( in testGoodFile2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java302 InputStream is = getClass().getResourceAsStream("/simple.xml"); in test_parseLjava_io_InputStream()
344 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStream()
362 InputStream stream = getClass().getResourceAsStream("/simple.xml"); in testParseInputSource()
406 is = new InputSource(getClass().getResourceAsStream("/wrong.xml")); in testParseInputSource()
425 InputStream is = getClass().getResourceAsStream("/systemid.xml"); in test_parseLjava_io_InputStreamLjava_lang_String()
472 is = getClass().getResourceAsStream("/wrong.xml"); in test_parseLjava_io_InputStreamLjava_lang_String()
DSAXParserFactoryTest.java55 is1 = getClass().getResourceAsStream("/simple.xml"); in setUp()
236 InputStream is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ()
241 is = getClass().getResourceAsStream("/simple_ns.xml"); in test_setNamespaceAwareZ()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DParseExceptionTest.java53 try (InputStream inputStream = getClass().getResourceAsStream( in test_serialize()
/libcore/luni/src/test/java/tests/targets/security/
DMessageDigestTest.java71 InputStream sourceStream = getClass().getResourceAsStream(digestAlgorithmName + ".data"); in getSourceData()
78 getClass().getResourceAsStream(digestAlgorithmName + ".check"); in getCheckDigest()
/libcore/luni/src/test/java/libcore/java/lang/
DOldClassTest.java949 "directory", getClass().getResourceAsStream(name)); in test_getResourceAsStreamLjava_lang_String()
953 getClass().getResourceAsStream(nameBadURI)); in test_getResourceAsStreamLjava_lang_String()
957 assertNotNull(clazz.getResourceAsStream("HelloWorld1.txt")); in test_getResourceAsStreamLjava_lang_String()
960 getClass().getResourceAsStream(null); in test_getResourceAsStreamLjava_lang_String()
1058 InputStream stream = clazz.getResourceAsStream("HelloWorld.txt"); in testGetResourceAsStream1()
1072 InputStream stream = clazz.getResourceAsStream("/libcore/java/lang/HelloWorld.txt"); in testGetResourceAsStream2()
1083 clazz.getResourceAsStream(null); in testGetResourceAsStream2()
1088 assertNull(clazz.getResourceAsStream("/NonExistentResource")); in testGetResourceAsStream2()
1089 assertNull(clazz.getResourceAsStream("libcore/java/lang/HelloWorld.txt")); in testGetResourceAsStream2()
/libcore/ojluni/src/test/javax/xml/jaxp/transform/
DXSLTExFuncTest.java75 xmlFile = XSLTExFuncTest.class.getResourceAsStream("tokenize.xml"); in setUp()
76 xslFile = XSLTExFuncTest.class.getResourceAsStream("tokenize.xsl"); in setUp()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java72 try (InputStream in = pcl.getResourceAsStream("dalvik/system/loading-test.jar"); in extractResourceJar()
102 InputStream is = pcl.getResourceAsStream(signedEntryName); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
DClassLoaderTestSupport.java82 InputStream in = loader.getResourceAsStream(PACKAGE_PATH + resourceName); in copyResource()
/libcore/luni/src/main/java/javax/xml/datatype/
DFactoryFinder.java238 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
243 is = cl.getResourceAsStream(serviceId); in findJarServiceProvider()
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java45 try (InputStream is = getClass().getResourceAsStream("ZoneInfoTest_ZoneInfo.golden.ser"); in testReadSerialized()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
DPreferencesTest.java152 .getResourceAsStream("/resources/prefs/java/util/prefs/userprefs.xml"); in testImportPreferences()
162 in = PreferencesTest.class.getResourceAsStream( in testImportPreferences()
432 .getResourceAsStream("/resources/prefs/java/util/prefs/backendread.xml"); in testReadingFromBackendCache()
/libcore/luni/src/test/java/libcore/java/io/
DOldObjectOutputStreamPutFieldTest.java127 refStream = getClass().getResourceAsStream(path); in getRefContent()
/libcore/luni/src/main/java/org/xml/sax/helpers/
DXMLReaderFactory.java129 in = loader.getResourceAsStream (service); in createXMLReader()
/libcore/luni/src/test/java/libcore/java/math/
DCSVTest.java48 getClass().getResourceAsStream(csvFileName))); in TestCSVInputs()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DInputStreamReaderTest.java165 .getResourceAsStream( in test_close()
407 in = this.getClass().getClassLoader().getResourceAsStream( in test_read_specialCharset()
420 in = this.getClass().getClassLoader().getResourceAsStream( in test_read_specialCharset()
/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java42 InputStream in = Support_GetLocal.class.getResourceAsStream(url); in getLocalFile()
/libcore/luni/src/test/java/tests/support/
DSupport_SQL.java52 .getResourceAsStream("/connection.properties"); in loadDriver()
/libcore/luni/src/test/java/libcore/java/text/
DOldDecimalFormatSymbolsTest.java39 .getResourceAsStream( in test_RIHarmony_compatible()

123