mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-12 11:37:07 +00:00
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:
1 parent
6c52e4936f
commit
a896fe7425
1 file changed
+16
@@ -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
|
||||
Reference in new issue
Block a user