Home
last modified time | relevance | path

Searched refs:Support_Resources (Results 1 – 25 of 44) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/jar/
DOldJarFileTest.java27 import tests.support.resource.Support_Resources;
37 resources = Support_Resources.createTempFolder(); in setUp()
47 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_File()
58 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_String()
70 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_StringZ()
82 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZ()
94 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI()
99 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI()
109 Support_Resources.copyFile(resources, null, modifiedJarName); in test_close()
120 Support_Resources.copyFile(resources, null, jarName); in test_getInputStreamLjava_util_jar_JarEntry()
[all …]
DOldJarInputStreamTest.java28 import tests.support.resource.Support_Resources;
57 File resources = Support_Resources.createTempFolder(); in test_createZipEntryLjava_lang_String()
58 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_createZipEntryLjava_lang_String()
59 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_createZipEntryLjava_lang_String()
65 File resources = Support_Resources.createTempFolder(); in test_read$ZII()
66 Support_Resources.copyFile(resources, null, "Broken_entry_data.jar"); in test_read$ZII()
67 InputStream is = Support_Resources.getStream("Broken_entry_data.jar"); in test_read$ZII()
DOldJarEntryTest.java26 import tests.support.resource.Support_Resources;
39 resources = Support_Resources.createTempFolder(); in setUp()
40 Support_Resources.copyFile(resources, null, jarName); in setUp()
90 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_getAttributes()
DOldManifestTest.java31 import tests.support.resource.Support_Resources;
87 Manifest manifest = new Manifest(new URL(Support_Resources in test_clone()
95 Manifest manifest1 = new Manifest(new URL(Support_Resources.getURL( in test_equals()
97 Manifest manifest2 = new Manifest(new URL(Support_Resources.getURL( in test_equals()
112 manifest1 = new Manifest(new URL(Support_Resources in test_writeLjava_io_OutputStream()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarInputStreamTest.java19 import tests.support.resource.Support_Resources;
51 jarName = Support_Resources.getURL("morestuff/hyts_patch.jar"); in setUp()
52 jarName2 = Support_Resources.getURL("morestuff/hyts_patch2.jar"); in setUp()
73 File resources = Support_Resources.createTempFolder(); in test_closeAfterException()
74 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_closeAfterException()
75 InputStream is = Support_Resources.getStream("Broken_entry.jar"); in test_closeAfterException()
114 File resources = Support_Resources.createTempFolder(); in test_getNextJarEntry_Ex()
115 Support_Resources.copyFile(resources, null, "Broken_entry.jar"); in test_getNextJarEntry_Ex()
116 is = Support_Resources.getStream("Broken_entry.jar"); in test_getNextJarEntry_Ex()
158 String intJarName = Support_Resources.getURL("Integrate.jar"); in test_JarInputStream_Integrate_Jar_getNextEntry()
[all …]
DJarFileTest.java58 import tests.support.resource.Support_Resources;
156 resources = Support_Resources.createTempFolder(); in setUp()
171 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_File()
190 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_String()
210 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_lang_StringZ()
230 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZ()
250 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI()
258 Support_Resources.copyFile(resources, null, jarName); in test_ConstructorLjava_io_FileZI()
277 Support_Resources.copyFile(resources, null, jarName); in testConstructor_file()
292 Support_Resources.copyFile(resources, null, jarName); in test_entries()
[all …]
DJarEntryTest.java30 import tests.support.resource.Support_Resources;
55 resources = Support_Resources.createTempFolder(); in setUp()
56 Support_Resources.copyFile(resources, null, jarName); in setUp()
103 Support_Resources.copyFile(resources, null, attJarName); in test_getAttributes()
125 Support_Resources.copyFile(resources, null, jarFileName); in testCertificatesAndCodesigners()
159 Support_Resources.copyFile(resources, null, jarFileName); in test_getCodeSigners()
DManifestTest.java32 import tests.support.resource.Support_Resources;
56 resources = Support_Resources.createTempFolder(); in setUp()
61 Support_Resources.copyFile(resources, null, fileName); in getManifest()
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldZipInputStreamTest.java30 import tests.support.resource.Support_Resources;
38 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); in setUp()
61 File resources = Support_Resources.createTempFolder(); in test_skipJ()
62 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_skipJ()
90 File resources = Support_Resources.createTempFolder(); in test_read$BII()
91 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII()
129 File resources = Support_Resources.createTempFolder(); in test_closeEntry()
130 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_closeEntry()
166 File resources = Support_Resources.createTempFolder(); in test_createZipEntryLjava_lang_String()
167 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_createZipEntryLjava_lang_String()
DOldZipFileTest.java27 import tests.support.resource.Support_Resources;
148 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); in setUp()
DZipInputStreamTest.java20 import tests.support.resource.Support_Resources;
75 InputStream emptyZipIn = Support_Resources.getStream("java/util/zip/EmptyArchive.zip"); in testReadEmpty()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DCheckedInputStreamTest.java26 import tests.support.resource.Support_Resources;
35 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_Checksum()
57 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_getChecksum()
67 checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_getChecksum()
82 InputStream checkInput = Support_Resources.getStream("hyts_checkInput.txt"); in test_skipJ()
98 InputStream checkInput = Support_Resources in test_read()
115 InputStream checkInput = Support_Resources in test_read$byteII()
DInflaterInputStreamTest.java32 import tests.support.resource.Support_Resources;
88 InputStream infile = Support_Resources.getStream("hyts_construOD.bin"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_Inflater()
104 InputStream infile = Support_Resources.getStream("hyts_construODI.bin"); in test_ConstructorLjava_io_InputStreamLjava_util_zip_InflaterI()
122 try (InputStream infile = Support_Resources.getStream("hyts_construODI.bin")) { in test_ConstructorLjava_io_InputStreamLjava_util_zip_InflaterI_1()
179 InputStream infile = Support_Resources in test_read()
204 InputStream infile = Support_Resources.getStream("hyts_construOD.bin"); in test_read_LBII()
309 File resources = Support_Resources.createTempFolder(); in test_read$BII2()
310 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII2()
326 File resources = Support_Resources.createTempFolder(); in test_read$BII3()
327 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_read$BII3()
[all …]
DZipInputStreamTest.java34 import tests.support.resource.Support_Resources;
52 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); in setUp()
123 File resources = Support_Resources.createTempFolder(); in test_closeAfterException()
124 Support_Resources.copyFile(resources, null, "Broken_manifest.jar"); in test_closeAfterException()
167 InputStream in = new FilterInputStream(Support_Resources.getStream("hyts_ZipFile.zip")) { in testReadOneByteAtATime()
219 File resources = Support_Resources.createTempFolder(); in test_available()
220 Support_Resources.copyFile(resources, null, "hyts_ZipFile.zip"); in test_available()
DGZIPInputStreamTest.java35 import tests.support.resource.Support_Resources;
67 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_ConstructorLjava_io_InputStream()
95 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_ConstructorLjava_io_InputStreamI()
113 Support_Resources.copyFile(resources, null, "hyts_checkInput.txt"); in test_ConstructorLjava_io_InputStreamI()
137 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_read$BII()
253 Support_Resources.copyFile(resources, null, "hyts_gInput.txt.gz"); in test_close()
310 resources = Support_Resources.createTempFolder(); in setUp()
DZipFileTest.java36 import tests.support.resource.Support_Resources;
101 InputStream in = Support_Resources.getStream("hyts_ZipFile.zip"); in test_finalize()
102 File file = Support_Resources.createTempFile(".jar"); in test_finalize()
453 InputStream is = Support_Resources.getStream("hyts_ZipFile.zip"); in setUp()
/libcore/support/src/test/java/tests/support/resource/
DSupport_Resources.java31 public class Support_Resources { class
40 InputStream result = Support_Resources.class.getResourceAsStream(path); in getStream()
112 InputStream in = Support_Resources.getStream(resourceName); in copyFile()
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/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DJarURLConnectionTest.java20 import tests.support.resource.Support_Resources;
44 File resources = Support_Resources.createTempFolder(); in copyAndOpenResourceStream()
46 Support_Resources.copyFile(resources, "net", jarFile); in copyAndOpenResourceStream()
117 File resources = Support_Resources.createTempFolder(); in test_getJarFile()
119 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_getJarFile()
158 File resources = Support_Resources.createTempFolder(); in test_setUseCaches()
159 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_setUseCaches()
/libcore/luni/src/test/java/libcore/java/net/
DOldJarURLConnectionTest.java40 import tests.support.resource.Support_Resources;
49 File resources = Support_Resources.createTempFolder(); in createContent()
51 Support_Resources.copyFile(resources, "net", jarFile); in createContent()
187 File resources = Support_Resources.createTempFolder(); in test_getJarFile()
189 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_getJarFile()
226 File resources = Support_Resources.createTempFolder(); in test_setUseCaches()
227 Support_Resources.copyFile(resources, null, "hyts_att.jar"); in test_setUseCaches()
/libcore/luni/src/test/java/libcore/dalvik/system/
DPathClassLoaderTest.java34 import tests.support.resource.Support_Resources;
95 File resources = Support_Resources.createTempFolder(); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
98 Support_Resources.copyFile(resources, null, jar); in test_classLoader_tampered_certificate_loadsOK_nullCertificates()
/libcore/luni/src/test/java/libcore/xml/
DNodeTest.java24 import tests.support.resource.Support_Resources;
49 File file = Support_Resources.resourceToTempFile("/simple.xml"); in testGetBaseUri()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory3Test.java29 import tests.support.resource.Support_Resources;
152 InputStream fis = Support_Resources in testGenerateCertPath02()
180 InputStream fis = Support_Resources in testGenerateCertPath03()
/libcore/support/src/test/java/tests/support/
DSupport_GetLocal.java31 import tests.support.resource.Support_Resources;
39 url = Support_Resources.RESOURCE_PACKAGE + url; in getLocalFile()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java52 import tests.support.resource.Support_Resources;
342 File resources = Support_Resources.createTempFolder(); in test_update$BII()
343 Support_Resources.copyFile(resources, null, resPath); in test_update$BII()
344 InputStream is = Support_Resources.getStream(resPath); in test_update$BII()
400 File resources = Support_Resources.createTempFolder(); in test_doFinal()
401 Support_Resources.copyFile(resources, null, resPath); in test_doFinal()
402 InputStream is = Support_Resources.getStream(resPath); in test_doFinal()
463 File resources = Support_Resources.createTempFolder(); in loadBytes()
464 Support_Resources.copyFile(resources, null, resPath); in loadBytes()
465 InputStream is = Support_Resources.getStream(resPath); in loadBytes()
[all …]
/libcore/luni/src/test/java/libcore/io/
DClassPathURLStreamHandlerTest.java32 import tests.support.resource.Support_Resources;
54 File resources = Support_Resources.createTempFolder().getCanonicalFile(); in setUp()
55 Support_Resources.copyFile(resources, null, JAR); in setUp()

12