FedBalance extends Configured implements Tool { @VisibleForTesting static Configuration getDefaultConf() { Configuration config = new Configuration(); config.addResource(FED_BALANCE_DEFAULT_XML); config.addResource(FED_BALANCE_SITE_XML); return config; } FedBalance(); @Override int run(String[] args); static void main(String[] argv); static final Logger LOG; }
@Test public void testLoadFedBalanceDefaultConf() { Configuration conf = FedBalance.getDefaultConf(); assertNotNull(conf.get(SCHEDULER_JOURNAL_URI)); assertNotNull(conf.get(WORK_THREAD_NUM)); }