@@ -1111,7 +1111,7 @@ create or replace package test_rooms_management is
11111111 procedure fails_on_room_name_invalid;
11121112
11131113 -- %test(Fails when content name is null)
1114- -- %throws(gc_null_value_exception)
1114+ -- %throws(test_rooms_management. gc_null_value_exception)
11151115 procedure fails_on_content_null;
11161116
11171117 -- %test(Adds a content to existing room)
@@ -1148,31 +1148,35 @@ create or replace package body test_rooms_management is
11481148 begin
11491149 open l_rooms_not_named_b for select * from rooms where name not like ' B%' ;
11501150
1151- remove_rooms_by_name(' B%' );
1151+ rooms_management . remove_rooms_by_name (' B%' );
11521152
11531153 open l_remaining_rooms for select * from rooms;
11541154 ut .expect ( l_remaining_rooms ).to_equal(l_rooms_not_named_b);
11551155 end;
11561156
11571157 procedure room_with_content is
11581158 begin
1159- remove_rooms_by_name(' Living Room' );
1159+ rooms_management . remove_rooms_by_name (' Living Room' );
11601160 end;
11611161
11621162 procedure null_room_name is
11631163 begin
1164- remove_rooms_by_name(NULL );
1164+ -- Act
1165+ rooms_management .remove_rooms_by_name (NULL );
1166+ -- Assert done by --%throws annotation
11651167 end;
11661168
11671169 procedure fails_on_room_name_invalid is
11681170 begin
1169- add_rooms_content(' bad room name' ,' Chair' );
1171+ -- Act
1172+ rooms_management .add_rooms_content (' bad room name' ,' Chair' );
1173+ -- Assert done by --%throws annotation
11701174 end;
11711175
11721176 procedure fails_on_content_null is
11731177 begin
11741178 -- Act
1175- add_rooms_content(' Dining Room' ,null );
1179+ rooms_management . add_rooms_content (' Dining Room' ,null );
11761180 -- Assert done by --%throws annotation
11771181 end;
11781182
@@ -1184,7 +1188,7 @@ create or replace package body test_rooms_management is
11841188 l_expected := ' Table' ;
11851189
11861190 -- Act
1187- add_rooms_content( ' Dining Room' , l_expected );
1191+ rooms_management . add_rooms_content ( ' Dining Room' , l_expected );
11881192 -- Assert
11891193 select name into l_actual from room_contents
11901194 where contents_key = (select max (contents_key) from room_contents);
@@ -1198,7 +1202,7 @@ end;
11981202
11991203When te tests are executed
12001204``` sql
1201- exec ut .run (' test_package ' );
1205+ exec ut .run (' test_rooms_management ' );
12021206```
12031207The following report is displayed
12041208```
0 commit comments