@Test public void testFindAll() { boolean isNonEmpty = false; List<Menu> list = new ArrayList<Menu>(); try { list = menuDAO.findAll(); isNonEmpty = !list.isEmpty(); } catch (DataAccessException e) { e.printStackTrace(); } finally { assertEquals( "The result for the operation testFindAll [" + isNonEmpty + "] " + "is different of the expected [" + SUCCESS_OPERATION + "].", SUCCESS_OPERATION, isNonEmpty); } }