mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
This commit adds a new test for CFHTTPRequest, which at present only contains the test for withCredentials
17 lines
330 B
Plaintext
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
|