Questions tagged «junit4»

30
JUnit 4 පරීක්ෂණ වලදී කිසියම් ව්‍යතිරේකයක් දමා ඇති බව ඔබ ප්‍රකාශ කරන්නේ කෙසේද?
සමහර කේතයන් ව්‍යතිරේකයක් විසි කරන බව පරීක්ෂා කිරීමට මට JUnit4 මුග්ධ ලෙස භාවිතා කළ හැක්කේ කෙසේද? මට නිසැකවම මේ වගේ දෙයක් කළ හැකි අතර: @Test public void testFooThrowsIndexOutOfBoundsException() { boolean thrown = false; try { foo.doStuff(); } catch (IndexOutOfBoundsException e) { thrown = true; } assertTrue(thrown); } මට මතකයි මේ …
2014 java  exception  junit  junit4  assert 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.