Files
cappuccino/Tests/Objective-J/CFHTTPRequestTest.j
T
Andrew Hankinson a896fe7425 Test: New CFHTTPRequest test
This commit adds a new test for CFHTTPRequest, which at present only contains the test for withCredentials
2014-06-23 16:15:24 -04:00

17 lines
330 B
Plaintext

@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