@Test public void shouldExecuteTrue() throws Exception { when(wikiDescriptorManager.getCurrentWikiId()).thenReturn("mainWiki"); XWikiDBVersion version = new XWikiDBVersion(52000); assertTrue(mocker.getComponentUnderTest().shouldExecute(version)); }
@Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }
WikiTemplateMigration extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); } }
WikiTemplateMigration extends AbstractHibernateDataMigration { @Override public boolean shouldExecute(XWikiDBVersion startupVersion) { return wikiDescriptorManager.getCurrentWikiId().equals(wikiDescriptorManager.getMainWikiId()); }  }
WikiTemplateMigration 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); }
WikiTemplateMigration 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);  }