|
From: Geisschaes <gei...@us...> - 2005-07-18 19:12:50
|
Update of /cvsroot/macattrick/macattrick/Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11790/Test Modified Files: AllTests.m PlayerListTest.m TeamTest.m Log Message: started saving userdefinedplayerlists Index: PlayerListTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/PlayerListTest.m,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PlayerListTest.m 3 Jul 2005 19:52:17 -0000 1.7 --- PlayerListTest.m 18 Jul 2005 19:12:40 -0000 1.8 *************** *** 47,51 **** - (void) testPlayerIDs { ! int ids[26]; int i; ids[0] = 16610740; ids[1] = 17108671;ids[2] = 17108672; ids[3] = 16418534; --- 47,51 ---- - (void) testPlayerIDs { ! int ids[26]; int i; ids[0] = 16610740; ids[1] = 17108671;ids[2] = 17108672; ids[3] = 16418534; *************** *** 67,71 **** } ! - (void)testDownload { --- 67,74 ---- } ! - (void) testPlayerIDsAsString { ! NSString *ids = [playerListLocal playerIDsAsString]; ! UKStringsEqual(ids, @"16610740|17108671|17108672|16418534|17108669|17108670|17108674|17108666|17108667|14507913|17108665|17108658|17108673|17108668|17108663|17108662|28283038|17108664|29021769|27332997|27200732|17108661|14417745|26936041|26465447|10589359"); ! } - (void)testDownload { Index: AllTests.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/AllTests.m,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** AllTests.m 9 May 2005 19:49:02 -0000 1.22 --- AllTests.m 18 Jul 2005 19:12:40 -0000 1.23 *************** *** 94,97 **** --- 94,98 ---- [[HattrickOrg uniqueInstance] setLoginName: [AllTests getProperty:@"login"] password:[AllTests getProperty:@"password"]]; [properties setObject:[NSString stringWithFormat:@"%@/Test/players.xml", [Properties libraryPath]] forKey:@"playersfile"]; + [properties setObject:[NSString stringWithFormat:@"%@/Test/playerlists.xml", [Properties libraryPath]] forKey:@"playerlistsfile"]; [properties setObject:[NSString stringWithFormat:@"%@/Test/positionsFile.xml", [Properties libraryPath]] forKey:@"positionsfile"]; [properties setObject:[NSString stringWithFormat:@"%@/Test/positionsFile1.xml", [Properties libraryPath]] forKey:@"positionsfile1"]; Index: TeamTest.m =================================================================== RCS file: /cvsroot/macattrick/macattrick/Test/TeamTest.m,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** TeamTest.m 27 Apr 2005 19:36:45 -0000 1.18 --- TeamTest.m 18 Jul 2005 19:12:40 -0000 1.19 *************** *** 52,55 **** --- 52,61 ---- } + -(void) testSaveCustomPlayerLists { + PlayerList *list = [[PlayerList alloc] initFromLocalFile]; + [[team userDefinedPlayerLists] addObject:list]; + NSLog([AllTests getProperty:@"playerlistsfile"]); + [team saveUserDefinedPlayerLists:[AllTests getProperty:@"playerlistsfile"]]; + } -(void) testCurrentTeam { |