Testfälle Prozeduren/Funktionen
This commit is contained in:
parent
23a952b54b
commit
94058429a8
2 changed files with 39 additions and 5 deletions
|
@ -1,15 +1,49 @@
|
|||
|
||||
|
||||
--Funktionstest mostValuableClerk:
|
||||
|
||||
BEGIN
|
||||
--Test für die letzten 5 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Wertvollster Mitarbeiter:');
|
||||
DBMS_OUTPUT.PUT_LINE(mostValuableClerk(5));
|
||||
DBMS_OUTPUT.PUT_LINE('Letzten Buchungen:');
|
||||
getLastBookings(5);
|
||||
DBMS_OUTPUT.PUT_LINE('Gebuchte Zimmer:');
|
||||
rooms(10, 5);
|
||||
--Output: 2
|
||||
END;
|
||||
BEGIN
|
||||
--Test für die letzten 12 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Wertvollster Mitarbeiter:');
|
||||
DBMS_OUTPUT.PUT_LINE(mostValuableClerk(12));
|
||||
--Output: 3
|
||||
END;
|
||||
|
||||
|
||||
|
||||
--Prozedurtest getLastBookings:
|
||||
|
||||
BEGIN
|
||||
--Test für die letzten 7 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Letzten Buchungen:');
|
||||
getLastBookings(5);
|
||||
--Output: 1-10
|
||||
end;
|
||||
BEGIN
|
||||
--Test für die letzten 9 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Letzten Buchungen:');
|
||||
getLastBookings(9);
|
||||
--Output: 1-14
|
||||
end;
|
||||
|
||||
|
||||
|
||||
--Prozedurtest rooms:
|
||||
|
||||
BEGIN
|
||||
--Test für Client 10 und letzten 5 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Gebuchte Zimmer:');
|
||||
rooms(10, 5);
|
||||
--Output: 8+9+10
|
||||
end;
|
||||
BEGIN
|
||||
--Test für Client 3 und letzten 8 Monate:
|
||||
DBMS_OUTPUT.PUT_LINE('Gebuchte Zimmer:');
|
||||
rooms(8, 8);
|
||||
--Output: 5
|
||||
end;
|
||||
|
|
0
SQL/TestTrigger.sql
Normal file
0
SQL/TestTrigger.sql
Normal file
Loading…
Add table
Reference in a new issue