java.net.URL mock

This commit is contained in:
Hannes Janetzek 2013-06-28 04:29:07 +02:00
parent dfcb49991c
commit c733c8f7dc

View File

@ -14,4 +14,8 @@ public class URL {
public URL(String protocol, String hostName, int port, String path) { public URL(String protocol, String hostName, int port, String path) {
mPath = "http://" +hostName +"/" + path; mPath = "http://" +hostName +"/" + path;
} }
public URL(String url) throws MalformedURLException {
mPath = url;
}
} }