@Test public void testProcessExceptions_noException() throws Exception { Logger logger = Logger.getLogger(getClass().getName()); List<Exception> exceptions = new ArrayList<>(0); InstancesMngrImpl.processExceptions(logger, exceptions, "whatever"); }
@Test(expected = IOException.class) public void testProcessExceptions_withException() throws Exception { Logger logger = Logger.getLogger(getClass().getName()); List<Exception> exceptions = new ArrayList<>(1); exceptions.add(new Exception("oops")); InstancesMngrImpl.processExceptions(logger, exceptions, "whatever"); }