Home
last modified time | relevance | path

Searched refs:setProperty (Results 1 – 25 of 68) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DProxySelectorTest.java117 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
118 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
120 System.setProperty("https.proxyHost", HTTPS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
121 System.setProperty("https.proxyPort", String.valueOf(HTTPS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
123 System.setProperty("ftp.proxyHost", FTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
124 System.setProperty("ftp.proxyPort", String.valueOf(FTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
126 System.setProperty("socksProxyHost", SOCKS_PROXY_HOST); in test_selectLjava_net_URI_SelectExact()
127 System.setProperty("socksProxyPort", String.valueOf(SOCKS_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact()
158 System.setProperty("http.proxyHost", HTTP_PROXY_HOST); in test_selectLjava_net_URI_SelectExact_NullHost()
159 System.setProperty("http.proxyPort", String.valueOf(HTTP_PROXY_PORT)); in test_selectLjava_net_URI_SelectExact_NullHost()
[all …]
DInetAddressThreadTest.java130 System.setProperty("networkaddress.cache.ttl", "0"); in test_getHostName()
169 System.setProperty("networkaddress.cache.ttl", "-1"); in test_getHostName()
171 System.setProperty("networkaddress.cache.ttl", in test_getHostName()
/libcore/luni/src/test/java/libcore/java/net/
DProxySelectorTest.java74 System.setProperty("ftp.proxyHost", "a"); in testProxyHostOnly()
75 System.setProperty("http.proxyHost", "b"); in testProxyHostOnly()
76 System.setProperty("https.proxyHost", "c"); in testProxyHostOnly()
77 System.setProperty("other.proxyHost", "d"); in testProxyHostOnly()
78 System.setProperty("socket.proxyHost", "d"); in testProxyHostOnly()
90 System.setProperty("ftp.proxyHost", "a"); in testProxyHostPort()
91 System.setProperty("ftp.proxyPort", "1001"); in testProxyHostPort()
92 System.setProperty("http.proxyHost", "b"); in testProxyHostPort()
93 System.setProperty("http.proxyPort", "1002"); in testProxyHostPort()
94 System.setProperty("https.proxyHost", "c"); in testProxyHostPort()
[all …]
DURLStreamHandlerFactoryTest.java92 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); in testInstallCustomProtocolHandler()
111 System.setProperty("java.protocol.handler.pkgs", getHandlerPackageName()); in testFirstUseIsCached()
/libcore/luni/src/test/java/libcore/java/lang/
DSystemTest.java50 System.setProperty("line.separator", "poop"); in testLineSeparator()
73 System.setProperty("line.separator", "\n"); in testLineSeparator()
168 System.setProperty("user.dir", "not poop"); in testSystemProperties_immutable()
171 System.getProperties().setProperty("user.dir", "hmmph"); in testSystemProperties_immutable()
178 p.setProperty("user.dir", "meh"); in testSystemProperties_immutable()
191 System.setProperty("user.home", "/user/home"); in testSystemProperties_mutable()
194 System.setProperty("user.home", oldUserHome); in testSystemProperties_mutable()
204 System.setProperty("p1", "v1"); in testSystemProperties_setProperties_null()
220 newProperties.setProperty("user.dir", "v1"); in testSystemProperties_setProperties_nonNull()
222 newProperties.setProperty("p1", "v2"); in testSystemProperties_setProperties_nonNull()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DParserFactoryTest.java44 System.setProperty("org.xml.sax.parser", "foo.bar.SAXParser"); in testMakeParser()
54 System.setProperty("org.xml.sax.parser", in testMakeParser()
65 System.setProperty("org.xml.sax.parser", in testMakeParser()
76 System.setProperty("org.xml.sax.parser", in testMakeParser()
87 System.setProperty("org.xml.sax.parser", in testMakeParser()
DXMLReaderFactoryTest.java43 System.setProperty("org.xml.sax.driver", "foo.bar.XMLReader"); in testCreateXMLReader()
52 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
62 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
72 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
84 System.setProperty("org.xml.sax.driver", in testCreateXMLReader()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPropertiesTest.java154 myProps.setProperty("Abba", "Cadabra"); in test_listLjava_io_PrintStream()
155 myProps.setProperty("Open", "Sesame"); in test_listLjava_io_PrintStream()
156 myProps.setProperty("LongProperty", in test_listLjava_io_PrintStream()
184 myProps.setProperty("Abba", "Cadabra"); in test_listLjava_io_PrintWriter()
185 myProps.setProperty("Open", "Sesame"); in test_listLjava_io_PrintWriter()
186 myProps.setProperty("LongProperty", in test_listLjava_io_PrintWriter()
513 properties.setProperty(keys[index], values[index]); in test_stringPropertyNames_scenario1()
562 defaults.setProperty(defaultKeys[index], defaultValues[index]); in test_stringPropertyNames_scenario2()
570 properties.setProperty(keys[index], values[index]); in test_stringPropertyNames_scenario2()
590 defaults.setProperty(defaultKeys[index], defaultValues[index]); in test_stringPropertyNames_scenario2()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DBooleanTest.java76 System.setProperty(getClass().getName(), "true"); in test_getBooleanLjava_lang_String()
79 System.setProperty(getClass().getName(), "TRUE"); in test_getBooleanLjava_lang_String()
82 System.setProperty(getClass().getName(), "false"); in test_getBooleanLjava_lang_String()
DSystemTest.java219 assertNull("Failed to return null", System.setProperty("testing", in test_setPropertyLjava_lang_StringLjava_lang_String()
221 assertTrue("Failed to return old value", System.setProperty("testing", in test_setPropertyLjava_lang_StringLjava_lang_String()
228 System.setProperty("", "default"); in test_setPropertyLjava_lang_StringLjava_lang_String()
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DSAXParserImpl.java105 public void setProperty(String name, Object value) in setProperty() method in SAXParserImpl
107 reader.setProperty(name, value); in setProperty()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecurityTest.java391 Security.setProperty("myprop","test white space "); in test_getPropertyLjava_lang_String()
401 Security.setProperty(null, ""); in test_setPropertyLjava_lang_StringLjava_lang_String()
407 Security.setProperty("", null); in test_setPropertyLjava_lang_StringLjava_lang_String()
412 Security.setProperty("", ""); in test_setPropertyLjava_lang_StringLjava_lang_String()
415 Security.setProperty("My Test Property", "My property value"); in test_setPropertyLjava_lang_StringLjava_lang_String()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLServerSocketFactoryTest.java68 Security.setProperty(SSL_PROPERTY, FakeSSLServerSocketFactory.class.getName()); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
79 Security.setProperty(SSL_PROPERTY, origProvider); in test_SSLServerSocketFactory_getDefault_cacheInvalidate()
DSSLSocketFactoryTest.java69 Security.setProperty(SSL_PROPERTY, FakeSSLSocketFactory.class.getName()); in test_SSLSocketFactory_getDefault_cacheInvalidate()
80 Security.setProperty(SSL_PROPERTY, origProvider); in test_SSLSocketFactory_getDefault_cacheInvalidate()
/libcore/luni/src/main/java/org/xml/sax/
DXMLReader.java210 public void setProperty (String name, Object value) in setProperty() method
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DNoAccessXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in NoAccessXMLReader
DNoInstanceXMLReader.java79 public void setProperty(String name, Object value) { in setProperty() method in NoInstanceXMLReader
DDoNothingXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in DoNothingXMLReader
DNoSubclassXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in NoSubclassXMLReader
DMockFilter.java70 public void setProperty(String name, Object value) throws SAXNotRecognizedException, in setProperty() method in MockFilter
/libcore/luni/src/main/java/javax/xml/validation/
DValidatorHandler.java415 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() method in ValidatorHandler
DValidator.java406 …public void setProperty(String name, Object object) throws SAXNotRecognizedException, SAXNotSuppor… in setProperty() method in Validator
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTest.java110 public void setProperty(String name, Object value) throws in setProperty() method in SAXParserTest.MockSAXParser
817 parser.setProperty(LEXICAL_HANDLER_PROPERTY, new MockHandler(new MethodLogger())); in testReset()
852 parser.setProperty(validName, validValue); in testSetGetProperty()
855 parser.setProperty(validName, null); in testSetGetProperty()
864 parser.setProperty("foo", "bar"); in testSetGetProperty()
885 parser.setProperty(null, "bar"); in testSetGetProperty()
DSAXParserFactoryTest.java123 System.setProperty("javax.xml.parsers.SAXParserFactory", in test_newInstance()
137 System.setProperty("javax.xml.parsers.SAXParserFactory", ""); in test_newInstance()
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java762 System.setProperty("javax.net.ssl.keyStoreType", type); in setUpStoreProperties()
763 System.setProperty("javax.net.ssl.keyStore", getKeyStoreFileName()); in setUpStoreProperties()
764 System.setProperty("javax.net.ssl.keyStorePassword", KS_PASSWORD); in setUpStoreProperties()
766 System.setProperty("javax.net.ssl.trustStoreType", type); in setUpStoreProperties()
767 System.setProperty("javax.net.ssl.trustStore", getKeyStoreFileName()); in setUpStoreProperties()
768 System.setProperty("javax.net.ssl.trustStorePassword", KS_PASSWORD); in setUpStoreProperties()

123