package com.google.cloud.tools.eclipse.appengine.newproject.maven;

import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.m2e.core.project.IProjectConfigurationManager;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import java.lang.reflect.InvocationTargetException;;

@RunWith(MockitoJUnitRunner.class)
public class CreateMavenBasedAppEngineStandardProjectTest {

  @Mock
  private IProjectConfigurationManager manager;

  private NullProgressMonitor monitor = new NullProgressMonitor();
  
  @Before
  public void setUp() throws CoreException {
    IWorkspace workspace = ResourcesPlugin.getWorkspace();
  }
  
  @After
  public void cleanUp() throws CoreException {
  }
  
  @Test
  public void testConstructor()
      throws InvocationTargetException, CoreException, InterruptedException {
    CreateMavenBasedAppEngineStandardProject operation =
        new CreateMavenBasedAppEngineStandardProject();
    operation.setGroupId("group");
    operation.setArtifactId("artifact");

    operation.projectConfigurationManager = manager;

    operation.execute(monitor);
  }

}

@@ -65,105 +65,8 @@
 n;%0A%0A
-import org.eclipse.core.resources.IWorkspace;%0Aimport org.eclipse.core.resources.ResourcesPlugin;%0A
 impo
@@ -108,16 +108,16 @@
 eption;%0A
+
 import o
@@ -231,57 +231,8 @@
 er;%0A
-import org.junit.After;%0Aimport org.junit.Before;%0A
 impo
@@ -563,16 +563,16 @@
 nager;%0A%0A
+
   privat
@@ -637,192 +637,8 @@
 %0A  %0A
-  @Before%0A  public void setUp() throws CoreException %7B%0A    IWorkspace workspace = ResourcesPlugin.getWorkspace();%0A  %7D%0A  %0A  @After%0A  public void cleanUp() throws CoreException %7B%0A  %7D%0A  %0A
   @T

remove unused code (#208)