@Test(expected = IllegalArgumentException.class) public void changeDriverMapperNullTest() throws Exception { DriverManager.changeDriverMapper(null); }
public static void changeDriverMapper(DriverMapper newMapper) { ParametersChecker.checkParameter("The mapper cannot be null", newMapper); mapper = Optional.of(newMapper); }
DriverManager { public static void changeDriverMapper(DriverMapper newMapper) { ParametersChecker.checkParameter("The mapper cannot be null", newMapper); mapper = Optional.of(newMapper); } }
DriverManager { public static void changeDriverMapper(DriverMapper newMapper) { ParametersChecker.checkParameter("The mapper cannot be null", newMapper); mapper = Optional.of(newMapper); } private  DriverManager(); }
DriverManager { public static void changeDriverMapper(DriverMapper newMapper) { ParametersChecker.checkParameter("The mapper cannot be null", newMapper); mapper = Optional.of(newMapper); } private  DriverManager(); static Driver addDriver(Driver driver); static void changeDriverMapper(DriverMapper newMapper); static void addOfferToDriver(String name, String offerId); static void addOffersToDriver(String name, List<String> offerIds); static void removeOffer(String offerId); static Driver getDriverFor(String offerId); }
DriverManager { public static void changeDriverMapper(DriverMapper newMapper) { ParametersChecker.checkParameter("The mapper cannot be null", newMapper); mapper = Optional.of(newMapper); } private  DriverManager(); static Driver addDriver(Driver driver); static void changeDriverMapper(DriverMapper newMapper); static void addOfferToDriver(String name, String offerId); static void addOffersToDriver(String name, List<String> offerIds); static void removeOffer(String offerId); static Driver getDriverFor(String offerId);  }