Skip to content

Commit 1eb52e1

Browse files
committed
Fixing unit test - needs to use ut3_develop sourcecode in test.
1 parent 48505fb commit 1eb52e1

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

test/ut3_user/expectations/test_expectation_anydata.pkb

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,12 +1216,24 @@ Rows: [ 60 differences, showing first 20 ]
12161216
procedure long_names_object_types is
12171217
pragma autonomous_transaction;
12181218
begin
1219-
execute immediate 'create or replace type tp_r_ug_sportsman_invitation_result is object ( code number(18) )';
1220-
execute immediate 'begin ut.expect(anydata.convertObject(tp_r_ug_sportsman_invitation_result(1))).to_equal(anydata.convertObject(tp_r_ug_sportsman_invitation_result(1))); end;';
1221-
execute immediate 'drop type tp_r_ug_sportsman_invitation_result';
1219+
execute immediate q'[create or replace type
1220+
very_long_type_name_valid_for_oracle_12_so_utPLSQL_should_allow_it_definitely_well_still_not_reached_128_but_wait_we_did_it
1221+
is object (
1222+
code number(18)
1223+
)]';
1224+
execute immediate q'[
1225+
begin
1226+
ut3_develop.ut.expect(anydata.convertObject(
1227+
very_long_type_name_valid_for_oracle_12_so_utPLSQL_should_allow_it_definitely_well_still_not_reached_128_but_wait_we_did_it(1)
1228+
)).to_equal(anydata.convertObject(
1229+
very_long_type_name_valid_for_oracle_12_so_utPLSQL_should_allow_it_definitely_well_still_not_reached_128_but_wait_we_did_it(1)
1230+
));
1231+
end;]';
1232+
ut.expect(ut3_tester_helper.main_helper.get_failed_expectations_num).to_equal(0);
1233+
execute immediate 'drop type very_long_type_name_valid_for_oracle_12_so_utPLSQL_should_allow_it_definitely_well_still_not_reached_128_but_wait_we_did_it';
12221234
exception
12231235
when others then
1224-
execute immediate 'drop type tp_r_ug_sportsman_invitation_result';
1236+
execute immediate 'drop type very_long_type_name_valid_for_oracle_12_so_utPLSQL_should_allow_it_definitely_well_still_not_reached_128_but_wait_we_did_it';
12251237
raise;
12261238
end;
12271239
$end

0 commit comments

Comments
 (0)