java - what is the purpose of assertThat in JDBI? -


i going through codebase found in github. found set of lines in code contains following function:assertthat.any appreciated.

 myobject = somedao.foo(obj);  assertthat(myobject.getupdated,isafter(updated)); 

this assertion lib called hamcrest used ensure states in program. if fail throw exception output understanding goes wrong. assert or assertequals methods junit. , used in test class can use them in normal program ensure states expect (preconditions, postconditions,class invariants or design contract).

so ensures date getupdated> date updated when wrong exception thrown.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -