Browse Source

test

works_for_me
Volker Birk 2 years ago
parent
commit
6aba9bdcd9
2 changed files with 8 additions and 3 deletions
  1. +7
    -2
      pEpUpdater Test/pEpUpdater_Test.m
  2. +1
    -1
      pEpUpdater Test/test.plist

+ 7
- 2
pEpUpdater Test/pEpUpdater_Test.m View File

@ -19,7 +19,8 @@
pEpUpdater* updater;
- (void)setUp {
updater = [pEpUpdater new];
updater = [[pEpUpdater alloc] initWithSubscriber:^(enum DNType notification, NSString *download) { NSLog(@"notification: %d %@", notification, download); }];
NSString *path = [[NSBundle bundleForClass:[pEpUpdater_Test class]] pathForResource:@"test.der" ofType:nil];
updater.configPath = [path stringByDeletingLastPathComponent];
}
@ -28,7 +29,7 @@ pEpUpdater* updater;
}
- (void)testUpdate {
[updater update:@"test" usingUrl:@"https://fdik.org/cgidownload?hash=23232323234242"];
[updater update:@"test" usingUrl:@"https://fdik.org/cgidownload?hash=42232323234242"];
}
- (void)testUpdateWithFile {
@ -41,6 +42,10 @@ pEpUpdater* updater;
[updater updateAll:nil];
}
- (void)testScheduleUpdate {
[updater scheduleUpdates];
}
/*
- (void)testPerformanceExample {
// This is an example of a performance test case.


+ 1
- 1
pEpUpdater Test/test.plist View File

@ -5,6 +5,6 @@
<key>name</key>
<string>test</string>
<key>url</key>
<string>https://fdik.org/cgidownload?hash=23232323234242</string>
<string>https://fdik.org/cgidownload?hash=42232323234242</string>
</dict>
</plist>

Loading…
Cancel
Save