Test: New CFHTTPRequest test

This commit adds a new test for CFHTTPRequest, which at present only contains the test for withCredentials
This commit is contained in:
Andrew Hankinson committed 2014-06-23 16:15:24 -04:00
1 parent 6c52e4936f
commit a896fe7425
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
@import <OJUnit/OJTestCase.j>
@implementation CFHTTPRequestTest : OJTestCase
{
}
- (void)testSetWithCredentials
{
var cfHTTPRequest = new CFHTTPRequest();
[self assertFalse:cfHTTPRequest.getWithCredentials()];
cfHTTPRequest.setWithCredentials(YES);
[self assertTrue:cfHTTPRequest.getWithCredentials()];
}
@end