@Test public void testCheckValidityNullInList() { exception.expect(IllegalArgumentException.class); testConstructor(); // Setup from constructor test List<Option> opts = new ArrayList<>(); opts.add(null); man.checkValidity(mockModel, opts); }
@Test public void testCheckValidityNullList() { exception.expect(IllegalArgumentException.class); testConstructor(); // Setup from constructor test man.checkValidity(mockModel, null); }
@Test public void testCheckValidity() { testConstructor(); // Setup from constructor test assertTrue(man.checkValidity(mockModel, mockListPass)); assertFalse(man.checkValidity(mockModel, mockListFail)); }