Commit 7c379d92 authored by Alexander's avatar Alexander
Browse files

Daily release 06.03.2018

parents 91703acb 765b3d55
......@@ -26,7 +26,7 @@ public class RandomPicker {
this.random = random;
loadFileIntoList(COUNTRY_FILE, countries);
loadFileIntoList(NAME_FILE, names);
loadFileIntoList(SPORTS_FILE,sports);
loadFileIntoList(SPORTS_FILE, sports);
}
private void loadFileIntoList(String file, List<String> list) {
......
package final_assignment.task_2.tests;
import final_assignment.task_2.Assignment2TestBase;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
/**
* For small corner case tests
* please add the io file into data/corner_cases and add a new test method for more tests
*/
public class CornerCases extends Assignment2TestBase {
/**
* Tests if olympic-medal-table lists all nations
* even those who didn't win any medal or didn't took part in any competition
*/
@Test
@DisplayName("medal-table")
void medalTable() {
testWithIOFile(getDataFolderDirectory() + "corner_cases/medal_table.io");
}
}
......@@ -55,6 +55,6 @@ Error, ...
Error, ...
> add-athlete 0003;james;doe;deutschland;sdfsdf;sdfsdffff
Error, ...
> summary-athletes eisschnelllauf
> summary-athletes eislauf;eisschnelllauf
0001 max mustermann 0
0002 jane doe 0
\ No newline at end of file
......@@ -3,25 +3,25 @@ Automatically created test with seed 1519896448306
OK
> login-admin tester;123123123
OK
> add-ioc-code 818;qdn;bkwrhritty;2000
> add-ioc-code 818;qdn;bkwrhritty;1900
OK
> add-ioc-code 683;zbs;boqrrcngxx;2000
> add-ioc-code 683;zbs;boqrrcngxx;1900
OK
> add-ioc-code 827;mdw;iunmgurgdb;2000
> add-ioc-code 827;mdw;iunmgurgdb;1900
OK
> add-ioc-code 172;nrr;bfglsocdjv;2000
> add-ioc-code 172;nrr;bfglsocdjv;1900
OK
> add-ioc-code 537;ewo;cyvlldijdc;2000
> add-ioc-code 537;ewo;cyvlldijdc;1900
OK
> add-ioc-code 742;gzr;inmbuucrky;2000
> add-ioc-code 742;gzr;inmbuucrky;1900
OK
> add-ioc-code 719;icf;qkibhfreia;2000
> add-ioc-code 719;icf;qkibhfreia;1900
OK
> add-ioc-code 734;mij;xkgezgcywo;2000
> add-ioc-code 734;mij;xkgezgcywo;1900
OK
> add-ioc-code 677;bsr;lrcobcmmhj;2000
> add-ioc-code 677;bsr;lrcobcmmhj;1900
OK
> add-ioc-code 319;qie;hugfleibgj;2000
> add-ioc-code 319;qie;hugfleibgj;1900
OK
> add-olympic-sport hslbxb;mhzbtx
OK
......@@ -107,7 +107,7 @@ OK
OK
> list-olympic-sports
hslbxb mhzbtx
> summary-athletes mhzbtx
> summary-athletes hslbxb;mhzbtx
2484 rgrsx nc w rsebwqsnyf 2
3115 eoyixyibar rvazibzxiz 2
4913 mkrzokbkcw ybnzmkcvdb 2
......@@ -135,4 +135,7 @@ hslbxb mhzbtx
(4,742,gzr,inmbuucrky,0,2,1,3)
(5,537,ewo,cyvlldijdc,0,2,0,2)
(6,719,icf,qkibhfreia,0,1,2,3)
(7,827,mdw,iunmgurgdb,0,1,0,1)
\ No newline at end of file
(7,827,mdw,iunmgurgdb,0,1,0,1)
(8,319,qie,hugfleibgj,0,0,0,0)
(9,683,zbs,boqrrcngxx,0,0,0,0)
(10,734,mij,xkgezgcywo,0,0,0,0)
......@@ -3,45 +3,45 @@ Automatically created test with seed 1519992267646
OK
> login-admin tester;123123123
OK
> add-ioc-code 001;zam;zambia;2000
> add-ioc-code 001;zam;zambia;1900
OK
> add-ioc-code 002;caf;central african republic;2000
> add-ioc-code 002;caf;central african republic;1900
OK
> add-ioc-code 003;ksa;saudi arabia;2000
> add-ioc-code 003;ksa;saudi arabia;1900
OK
> add-ioc-code 004;mgl;mongolia;2000
> add-ioc-code 004;mgl;mongolia;1900
OK
> add-ioc-code 005;rou;romania;2000
> add-ioc-code 005;rou;romania;1900
OK
> add-ioc-code 006;sle;sierra leone;2000
> add-ioc-code 006;sle;sierra leone;1900
OK
> add-ioc-code 007;mri;mauritius;2000
> add-ioc-code 007;mri;mauritius;1900
OK
> add-ioc-code 008;alg;algeria;2000
> add-ioc-code 008;alg;algeria;1900
OK
> add-ioc-code 009;ben;benin;2000
> add-ioc-code 009;ben;benin;1900
OK
> add-ioc-code 010;cmr;cameroon;2000
> add-ioc-code 010;cmr;cameroon;1900
OK
> add-ioc-code 011;kos;kosovo;2000
> add-ioc-code 011;kos;kosovo;1900
OK
> add-ioc-code 012;esp;spain;2000
> add-ioc-code 012;esp;spain;1900
OK
> add-ioc-code 013;ber;bermuda;2000
> add-ioc-code 013;ber;bermuda;1900
OK
> add-ioc-code 014;jor;jordan;2000
> add-ioc-code 014;jor;jordan;1900
OK
> add-ioc-code 015;irl;ireland;2000
> add-ioc-code 015;irl;ireland;1900
OK
> add-ioc-code 016;ltu;lithuania;2000
> add-ioc-code 016;ltu;lithuania;1900
OK
> add-ioc-code 017;gha;ghana;2000
> add-ioc-code 017;gha;ghana;1900
OK
> add-ioc-code 018;ind;india;2000
> add-ioc-code 018;ind;india;1900
OK
> add-ioc-code 019;est;estonia;2000
> add-ioc-code 019;est;estonia;1900
OK
> add-ioc-code 020;svk;slovakia;2000
> add-ioc-code 020;svk;slovakia;1900
OK
> add-olympic-sport water polo;water polo
OK
......@@ -25104,7 +25104,7 @@ volleyball volleyball
water polo water polo
wind surfing wind surfing
yoga yoga
> summary-athletes water polo
> summary-athletes water polo;water polo
0001 patri ali 24
0002 morten loken 24
0003 ponniah marinko 24
......@@ -25126,7 +25126,7 @@ yoga yoga
0019 hasan alige 24
0020 fatmana gusztav 24
0021 hanifa suheyla 24
> summary-athletes volleyball
> summary-athletes volleyball;volleyball
0022 premysl marlies 24
0023 theodoraris yilmaz 24
0024 jocelia daliborka 24
......@@ -25148,7 +25148,7 @@ yoga yoga
0040 vitus djenala 24
0041 viktor akbar 24
0042 cifter simsek 24
> summary-athletes boxing
> summary-athletes boxing;boxing
0043 vlatka tosief 24
0044 ljubisav friedel 24
0045 fritj carl werner 24
......@@ -25170,7 +25170,7 @@ yoga yoga
0061 hans curt angél 24
0062 benedetta aloisi 24
0063 svend holger henriet 24
> summary-athletes race walk
> summary-athletes race walk;race walk
0064 behsad dzaiy 24
0065 andres sighart 24
0066 janny hai jun 24
......@@ -25192,7 +25192,7 @@ yoga yoga
0082 freia katarzyma 24
0083 radenko ramin christian 24
0084 nikolo justina 24
> summary-athletes slalom
> summary-athletes slalom;slalom
0085 velid vardijan 24
0086 dony endo 24
0087 eva alexandra mirsana 24
......@@ -25214,7 +25214,7 @@ yoga yoga
0103 fengzhi friedri 24
0104 edham türegün 24
0105 micherd amadeouo 24
> summary-athletes croquet
> summary-athletes croquet;croquet
0106 mesad kanagasabai 24
0107 rima jaques 24
0108 milowan yongjian 24
......@@ -25236,7 +25236,7 @@ yoga yoga
0124 marie lore zulkissa 24
0125 vojkan johnson 24
0126 cort rabea 24
> summary-athletes wind surfing
> summary-athletes wind surfing;wind surfing
0127 vlatro eugenij 24
0128 bernat chiarastella 24
0129 krista jerachmieil 24
......@@ -25258,7 +25258,7 @@ yoga yoga
0145 ismajil gürcan 24
0146 ivanic krisic 24
0147 eduardo elert 24
> summary-athletes open water swimming
> summary-athletes open water swimming;open water swimming
0148 koprin peter christian 24
0149 sophie renate ado 24
0150 pierrette maria helene 24
......@@ -25280,7 +25280,7 @@ yoga yoga
0166 natacha almedina 24
0167 beatrice charlo 24
0168 wilhelm christian bogda 24
> summary-athletes hunting
> summary-athletes hunting;hunting
0169 marganis fazlyar 24
0170 gudrun kemaldar 24
0171 wilhlelm astros 24
......@@ -25302,7 +25302,7 @@ yoga yoga
0187 vladimir sabahaldin 24
0188 theod karaman 24
0189 mohammad hossein wenefrieda 24
> summary-athletes table tennis
> summary-athletes table tennis;table tennis
0190 sylvius michela 24
0191 soteris klaus dieter 24
0192 amin pajica 24
......@@ -25324,7 +25324,7 @@ yoga yoga
0208 katharine petronella 24
0209 jin soo ümüt 24
0210 arjan kresemir 24
> summary-athletes softball
> summary-athletes softball;softball
0211 theresie türk 24
0212 yella gojani 24
0213 ryszard nu nguyen 24
......@@ -25346,7 +25346,7 @@ yoga yoga
0229 asja notker 24
0230 nori patino 24
0231 trifun divraj 24
> summary-athletes yoga
> summary-athletes yoga;yoga
0232 achilas alireza 24
0233 schmit andreas erhard 24
0234 stamisiaw sonja sabine 24
......@@ -25368,7 +25368,7 @@ yoga yoga
0250 danjana natalja 24
0251 iser bislim 24
0252 emilija giorno 24
> summary-athletes jacks
> summary-athletes jacks;jacks
0253 jan phillipp gyula 24
0254 süleman thussi 24
0255 fried günther friedegunde 24
......@@ -25390,7 +25390,7 @@ yoga yoga
0271 wade syl 24
0272 yoseph chimo 24
0273 nikolaus michael smi 24
> summary-athletes pool
> summary-athletes pool;pool
0274 antesa traut 24
0275 kamxay fronjo 24
0276 karoly muhanem 24
......@@ -25412,7 +25412,7 @@ yoga yoga
0292 karolus oh 24
0293 vasyl sevinc 24
0294 stanislas frano 24
> summary-athletes fencing
> summary-athletes fencing;fencing
0295 altinok reinmut 24
0296 trovato agathoklis 24
0297 ora magna 24
......@@ -25434,7 +25434,7 @@ yoga yoga
0313 spasenka viktorija 24
0314 albina jianchi 24
0315 kambiz walbur 24
> summary-athletes arts and crafts
> summary-athletes arts and crafts;arts and crafts
0316 edham davinder 24
0317 seyim bryan 24
0318 wiltraut david 24
......@@ -25456,7 +25456,7 @@ yoga yoga
0334 reset agneta verconica 24
0335 kyung ja örscü 24
0336 asiklar ragnare 24
> summary-athletes snowmobiling
> summary-athletes snowmobiling;snowmobiling
0337 taha carl christian 24
0338 rainha karl al 24
0339 hiromi kiryaki 24
......@@ -25478,7 +25478,7 @@ yoga yoga
0355 panagis pirouzkar 24
0356 pticek bozanovic 24
0357 ciciliz siân 24
> summary-athletes road race
> summary-athletes road race;road race
0358 seyhan folker 24
0359 kalyan aganovic 24
0360 velija bergis 24
......@@ -25500,7 +25500,7 @@ yoga yoga
0376 carapina rein 24
0377 jurgis siri 24
0378 robyn kay luciano 24
> summary-athletes kayaking
> summary-athletes kayaking;kayaking
0379 horst dieter imoge 24
0380 raymun hacime 24
0381 sadig munir 24
......@@ -25522,7 +25522,7 @@ yoga yoga
0397 toprek tsiktis 24
0398 gilad garbis 24
0399 heinrich hans etuska 24
> summary-athletes skin diving
> summary-athletes skin diving;skin diving
0400 varvara mathil 24
0401 ruda elijah 24
0402 hukyiar vrsajkovic 24
......
Tests if olympic-medal-table lists all nations
even those who didn't win any medal or didn't took part in any competition
> add-admin vorname;nachname;tester;123123123
OK
> login-admin tester;123123123
OK
> add-ioc-code 001;can;canada;2000
OK
> add-ioc-code 002;den;denmark;2000
OK
> add-olympic-sport fencing;fencing
OK
> add-athlete 0001;alex;edwin;canada;fencing;fencing
OK
> add-athlete 0002;benjamin;maria;denmark;fencing;fencing
OK
> add-competition 0001;2002;canada;fencing;fencing;0;0;0
OK
> olympic-medal-table
(1,001,can,canada,0,0,0,0)
(2,002,den,denmark,0,0,0,0)
Tests for errors in the permission system
> add-olympic-sport eishockey;eishockey
Error, ...
Error, no one is logged in
> list-olympic-sports
Error, ...
Error, no one is logged in
> add-ioc-code 111;arg;argentinien;1920
Error, ...
Error, no one is logged in
> login-admin tester;123123123
Error, ...
Error, unknown user
> logout-admin
Error, ...
Error, no one to log out
> add-admin vorname;nachname;kur;123123123
Error, ...
Error, user-name is too short
> add-admin vorname;nachname;tester;zukurz
Error, ...
Error, password is too short
> add-admin vorname;nachname;tester;123123123
OK
> login-admin kur;123123123
Error, ...
Error, unknown user
> login-admin tester;zukurz
Error, ...
Error, wrong password
> login-admin tester;123123120
Error, ...
Error, wrong password
> login-admin teste;123123123
Error, ...
Error, unknown user
> login-admin tester;123123123
OK
> login-admin tester;123123123
Error, ...
Error, you are already logged in
> add-olympic-sport eishockey;eishockey
OK
> list-olympic-sports
......@@ -38,22 +38,14 @@ OK
> logout-admin
OK
> logout-admin
Error, ...
Error, no one to log out
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
Error, ...
Error, no one is logged in
> login-admin tester;123123123
OK
> add-athlete 0001;max;mustermann;argentinien;eishockey;eishockey
OK
> reset
OK
> logout
Error, ...
> login-admin tester;123123123
Error, ...
> add-admin vorname;nachname;tester;123123123
OK
> login-admin tester;123123123
OK
> list-ioc-codes
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment