import org.junit.Test; import org.junit.Ignore; public class JunitTest { @Test void test1(){ } @Test @Ignore void test1(){ } }
@Test public void test(){ Employee employee = new Employee(); employee.setId(123l); DBAccess dbAccess = Mockito.mock(DBAccess.class); Mockito.when(dbAccess.getEmployeeInfo(Mockito.anyLong()).thenReturn(null); }