oracle - utplsql how to assert not equal -


i'm getting started utplsql , struggling understanding how write simple test cases. there quite few examples of how test procedures , packages i'm more after ways test data.

what i'm trying achieve in test below assert number in l_rowcount not equal zero. believe code below tests equal zero. should pretty simple haha... don't know how it. utassert package doesn't have assertnotequal.

can me out pls? appreciated.

   procedure ut_oms_tran_head_check_1           l_rowcount1 pls_integer;    begin       -- run baseline code.       select count (*)         l_rowcount1         sa_tran_head th, sa_store_day sd        th.store=sd.store        , th.day=sd.day        , th.store_day_seq_no=sd.store_day_seq_no        , sd.business_date=to_date('09/05/2013','dd/mm/yyyy')        , th.cust_order_no null;        -- test results       utassert.eq (          'cust order no',          l_rowcount1,          0       );    end; 

i wish utplsql had .neq method doesn't appear to, , modifying utassert , utassert2 packages not faint-of-heart. typically use like

utassert.this('some_var (' || some_var || ') , some_other_var (' ||               some_other_var || ') shouldn''t equal',               some_var <> some_other_var); 

share , enjoy.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -