Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:b0b36pjv:tutorials:07:testovani [2024/04/03 17:00]
mudromar [Expected exception]
courses:b0b36pjv:tutorials:07:testovani [2024/04/08 15:24]
mudromar [Expected exception]
Line 48: Line 48:
  
 <code java> <code java>
-Exception exception = assertThrows(ArithmeticException.class,​ () -> newCalculator().divide(5,​0));​+Exception exception = assertThrows(ArithmeticException.class,​ () -> new Calculator().divide(5,​0));​
 </​code>​ </​code>​
  
courses/b0b36pjv/tutorials/07/testovani.txt · Last modified: 2024/04/08 15:24 by mudromar