@Test public void shouldExecuteFalse() throws Exception { when(wikiDescriptorManager.getCurrentWikiId()).thenReturn("subwiki"); when(wikiDescriptorManager.getMainWikiId()).thenReturn("mainWiki"); assertFalse(mocker.getComponentUnderTest().shouldExecute(null)); }
@Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }
WikiDescriptorMigrator extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); } }
WikiDescriptorMigrator extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }  }
WikiDescriptorMigrator extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }  @Override String getDescription(); @Override XWikiDBVersion getVersion(); @Override boolean shouldExecute(XWikiDBVersion startupVersion); }
WikiDescriptorMigrator extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }  @Override String getDescription(); @Override XWikiDBVersion getVersion(); @Override boolean shouldExecute(XWikiDBVersion startupVersion);  }