This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class URLRequestUnit extends InstrumentationTestCase | |
{ | |
private static final String API_URL = | |
"http://www.example.com/api/users"; | |
public void testHttpOkay() throws Exception { | |
MockURLStreamHandler handler = new MockURLStreamHandler(); | |
URL.setURLStreamHandlerFactory(handler); | |
UsersRequest request = new UsersRequest(); |