@Test public void testRequiredConfMissing() { Properties properties = new Properties(); properties.put("transport.heartbeat", true); ZebraSeataConfiguration zebraSeataConfiguration = new ZebraSeataConfiguration(properties); try { ZebraSeataConfigurationValidator.validate(zebraSeataConfiguration); fail("Must have exception"); } catch (IllegalArgumentException e) { assertThat(e.getMessage(), is("service.default.grouplist is required.")); } }
public static void validate(ZebraSeataConfiguration zebraSeataConfiguration) { validateRequiredConf(zebraSeataConfiguration); }
ZebraSeataConfigurationValidator { public static void validate(ZebraSeataConfiguration zebraSeataConfiguration) { validateRequiredConf(zebraSeataConfiguration); } }
ZebraSeataConfigurationValidator { public static void validate(ZebraSeataConfiguration zebraSeataConfiguration) { validateRequiredConf(zebraSeataConfiguration); } private  ZebraSeataConfigurationValidator(); }
ZebraSeataConfigurationValidator { public static void validate(ZebraSeataConfiguration zebraSeataConfiguration) { validateRequiredConf(zebraSeataConfiguration); } private  ZebraSeataConfigurationValidator(); static void validate(ZebraSeataConfiguration zebraSeataConfiguration); }
ZebraSeataConfigurationValidator { public static void validate(ZebraSeataConfiguration zebraSeataConfiguration) { validateRequiredConf(zebraSeataConfiguration); } private  ZebraSeataConfigurationValidator(); static void validate(ZebraSeataConfiguration zebraSeataConfiguration);  }