@Test public void shouldBroadcastRegenerateMdsDataBundleEventAndRegenerateTheBundle() { mdsBundleRegenerationService.regenerateMdsDataBundle(); verify(jarGeneratorService).regenerateMdsDataBundle(schemaHolder); verify(osgiEventProxy).broadcastEvent(eq(REGENERATE_MDS_DATA_BUNDLE), argThat(new ParamsMatcher(null)), eq(true)); }
@Override public void regenerateMdsDataBundle() { broadcast(REGENERATE_MDS_DATA_BUNDLE); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundle(schemaHolder); }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundle() { broadcast(REGENERATE_MDS_DATA_BUNDLE); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundle(schemaHolder); } }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundle() { broadcast(REGENERATE_MDS_DATA_BUNDLE); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundle(schemaHolder); }  }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundle() { broadcast(REGENERATE_MDS_DATA_BUNDLE); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundle(schemaHolder); }  @Override void regenerateMdsDataBundle(); @Override void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames); @Override void handleEvent(Event event); @Autowired void setOsgiEventProxy(OsgiEventProxy osgiEventProxy); @Autowired void setJarGeneratorService(JarGeneratorService jarGeneratorService); @Autowired void setEntityService(EntityService entityService); }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundle() { broadcast(REGENERATE_MDS_DATA_BUNDLE); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundle(schemaHolder); }  @Override void regenerateMdsDataBundle(); @Override void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames); @Override void handleEvent(Event event); @Autowired void setOsgiEventProxy(OsgiEventProxy osgiEventProxy); @Autowired void setJarGeneratorService(JarGeneratorService jarGeneratorService); @Autowired void setEntityService(EntityService entityService);  }