Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
libcore
Commits
48d36b8e
Commit
48d36b8e
authored
11 years ago
by
Narayan Kamath
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Add another test for HttpURLConnection#usingProxy" into klp-dev
parents
3d849f3d
b3158d5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/HttpURLConnectionTest.java
...internal/net/www/protocol/http/HttpURLConnectionTest.java
+4
-0
No files found.
luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/HttpURLConnectionTest.java
View file @
48d36b8e
...
...
@@ -261,6 +261,10 @@ public class HttpURLConnectionTest extends TestCase {
assertTrue
(
"Connection does not use proxy"
,
connection
.
usingProxy
());
assertTrue
(
"Proxy server was not used"
,
proxy
.
accepted
);
connection
.
disconnect
();
assertTrue
(
"usingProxy broken after disconnect"
,
connection
.
usingProxy
());
}
finally
{
// restore default proxy selector
ProxySelector
.
setDefault
(
defPS
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment