-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathin3.txt
54 lines (39 loc) · 1.38 KB
/
in3.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# FORMAT per a fer el test: #
# nomMetode, valorArgument1, valorArgument2, valorArgumentN #
# Admet String's, tipus de dades primitius i dates (java.util.Date) #
# en format dd-MM-yyyy HH:mm:ss #
# No suporta metodes homonims amb el mateix nombre de parametres #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Oscar Chic Farré PRA test
addUser, 000000A, Joan, Lopez
addMovie, M2, Star Wars: Episode V - The Empire Strikes Back, 124, Irvin Kershner
addMovie, M1, Star Wars: Episode IV - A New Hope, 121, George Lucas
# TEST 1
# rate two films and test bestRated normal behavior
rateMovie, M2, 90
getMovie, M2
rateMovie, M1, 95
getMovie, M1
# expected M1
bestRated
# TEST 2
# update a movie's rating and test if bestRated result reflects that change
rateMovie, M1, 95
getMovie, M1
rateMovie, M1, 85
getMovie, M1
# expected M2
bestRated
#exected M1
bestRated
# TEST 3
# pause movie twice in different times to check whether the paused movie is
# updated or added twice
watchMovie, 000000A, M1
pauseMovie, 000000A, 10
getUser, 000000A
watchMovie, 000000A, M1
pauseMovie, 000000A, 20
# expect paused movies to have M1 only once with paused time = 20
getUser, 000000A