Home
last modified time | relevance | path

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

1234

/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/util/
DPropertiesTest.java40 props.setProperty("key", "value 1&-\n\t sadfbo"); in storeToXml_withCharset_andBack()
41 props.setProperty("ключ", "значение 123-&\n\t ттффваи"); in storeToXml_withCharset_andBack()
42 props.setProperty("key1", "value1"); in storeToXml_withCharset_andBack()
43 props.setProperty("key2", "value2"); in storeToXml_withCharset_andBack()
44 props.setProperty("key3", "value3"); in storeToXml_withCharset_andBack()
45 props.setProperty("<a>key4</a>", "\"value4"); in storeToXml_withCharset_andBack()
46 props.setProperty("key5 ", "<h>value5</h>"); in storeToXml_withCharset_andBack()
47 props.setProperty("<a>key6</a>", " <h>value6</h> "); in storeToXml_withCharset_andBack()
48 props.setProperty("<comment>key7</comment>", "value7"); in storeToXml_withCharset_andBack()
49 props.setProperty(" key8 ", "<comment>value8</comment>"); in storeToXml_withCharset_andBack()
[all …]
/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/ojluni/src/test/java/util/Properties/
DPropertiesEntrySetTest.java57 a.setProperty("p1", "1"); in testEquals()
61 b.setProperty("p1", "1"); in testEquals()
66 c.setProperty("p1", "2"); in testEquals()
73 a.setProperty("p2", "2"); in testEquals()
75 d.setProperty("p2", "2"); in testEquals()
76 d.setProperty("p1", "1"); in testEquals()
106 a.setProperty("p1", "1"); in testToString()
109 a.setProperty("p2", "2"); in testToString()
117 b.setProperty("p2", "2"); in testToString()
118 b.setProperty("p1", "1"); in testToString()
[all …]
DLoadAndStoreXMLWithDefaults.java57 p1.setProperty("p1.prop", "prop1-p1"); in main()
58 p1.setProperty("p1.and.p2.prop", "prop2-p1"); in main()
59 p1.setProperty("p1.and.p2.and.p3.prop", "prop3-p1"); in main()
61 p2.setProperty("p2.prop", "prop4-p2"); in main()
62 p2.setProperty("p1.and.p2.prop", "prop5-p2"); in main()
63 p2.setProperty("p1.and.p2.and.p3.prop", "prop6-p2"); in main()
64 p2.setProperty("p2.and.p3.prop", "prop7-p2"); in main()
66 p3.setProperty("p3.prop", "prop8-p3"); in main()
67 p3.setProperty("p1.and.p2.and.p3.prop", "prop9-p3"); in main()
68 p3.setProperty("p2.and.p3.prop", "prop10-p3"); in main()
DPropertiesSerialization.java48 TEST_PROPS.setProperty("one", "two");
49 TEST_PROPS.setProperty("buckle", "shoe");
50 TEST_PROPS.setProperty("three", "four");
51 TEST_PROPS.setProperty("shut", "door");
/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()
220 System.setProperty("user.home", "/user/home"); in testSystemProperties_mutable()
223 System.setProperty("user.home", oldUserHome); in testSystemProperties_mutable()
233 System.setProperty("p1", "v1"); in testSystemProperties_setProperties_null()
249 newProperties.setProperty("user.dir", "v1"); in testSystemProperties_setProperties_nonNull()
251 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/luni/src/test/java/libcore/javax/xml/validation/
DValidatorTest.java84 public void setProperty() { in setProperty() method in ValidatorTest
86 () -> validator.setProperty(null, false)); in setProperty()
88 () -> validator.setProperty(null, true)); in setProperty()
95 () -> validator.setProperty(property, value)); in setProperty()
DValidatorHandlerTest.java84 public void setProperty() { in setProperty() method in ValidatorHandlerTest
86 () -> handler.setProperty(null, false)); in setProperty()
88 () -> handler.setProperty(null, true)); in setProperty()
95 () -> handler.setProperty(property, value)); in setProperty()
DSchemaFactoryTest.java119 BASE_SCHEMA_FACTORY.setProperty(null, new Object()); in setProperty_nullString()
125 BASE_SCHEMA_FACTORY.setProperty("myProperty", new Object()); in setProperty_validString()
/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/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/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/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/test/java/libcore/xml/
DXmlToSax2DriverTest.java99 assertThrows(SAXNotSupportedException.class , () -> driver.setProperty( in testSetProperty()
103 assertThrows(SAXNotSupportedException.class ,() -> driver.setProperty( in testSetProperty()
109 driver.setProperty(key, "123"); in testSetProperty()
112 assertThrows(SAXNotSupportedException.class ,() -> driver.setProperty("abc", "")); in testSetProperty()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderFactoryTest.java277 System.setProperty("javax.xml.parsers.DocumentBuilderFactory", in test_newInstance()
296 System.setProperty("javax.xml.parsers.DocumentBuilderFactory", ""); in test_newInstance()
311 System.setProperty("javax.xml.parsers.DocumentBuilderFactory", in test_newInstance()
711 System.setProperty(propName, className); in test_setSchemaLjavax_xml_validation_Schema()
754 f2.setProperty("woot", null); in test_setSchemaLjavax_xml_validation_Schema()
/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/
DNoSubclassXMLReader.java76 public void setProperty(String name, Object value) { in setProperty() method in NoSubclassXMLReader

1234