CoreModule extends ModuleDefine { @Override public Class[] services() { List<Class> classes = new ArrayList<>(); classes.add(ConfigService.class); classes.add(DownSamplingConfigService.class); classes.add(NamingControl.class); classes.add(IComponentLibraryCatalogService.class); classes.add(IWorkerInstanceGetter.class); classes.add(IWorkerInstanceSetter.class); classes.add(MeterSystem.class); addServerInterface(classes); addReceiverInterface(classes); addInsideService(classes); addCacheService(classes); addQueryService(classes); addProfileService(classes); addOALService(classes); addManagementService(classes); classes.add(CommandService.class); return classes.toArray(new Class[]{}); } CoreModule(); @Override Class[] services(); static final String NAME; }
@Test public void testOpenServiceList() { CoreModule coreModule = new CoreModule(); Assert.assertEquals(32, coreModule.services().length); }