Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @Test
  2. public void testConstructorEmpty() {
  3. System.out.println("* StatisticsJUnit4Test: method 1.3 - constructor (some values out of range)");
  4. int[] x = {};
  5. Statistics instance = new Statistics(x, 30);
  6. int[] result = instance.getValues();
  7. int[] empty = {};
  8. assertArrayEquals(empty, result);
  9. // TODO review the generated test code and remove the default call to fail.
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement