@Override protected void setUp() throws Exception { super.setUp(); GitTestUtil.createRepository(myProject, myProjectPath, false); myRebaser = new GitRebaser( myProject, ServiceManager.getService(Git.class), new EmptyProgressIndicator()); myFirstCommit = makeCommit(); BuiltInServerManager.getInstance().waitForStart(); }
public void setUp() throws Exception { super.setUp(); List<VcsLogProvider> providers = ContainerUtil.filter( Extensions.getExtensions(VcsLogManager.LOG_PROVIDER_EP, myProject), new Condition<VcsLogProvider>() { @Override public boolean value(VcsLogProvider provider) { return provider.getSupportedVcs().equals(GitVcs.getKey()); } }); assertEquals("Incorrect number of GitLogProviders", 1, providers.size()); myLogProvider = (GitLogProvider) providers.get(0); myObjectsFactory = ServiceManager.getService(myProject, VcsLogObjectsFactory.class); }