Fix build: remove CtsSetupTest.

Change-Id: I319ff94876f8ef114c58c96740c56937fb6433c1
diff --git a/tools/tradefed-host/tests/src/com/android/cts/tradefed/UnitTests.java b/tools/tradefed-host/tests/src/com/android/cts/tradefed/UnitTests.java
index 432c125..9a62af3 100644
--- a/tools/tradefed-host/tests/src/com/android/cts/tradefed/UnitTests.java
+++ b/tools/tradefed-host/tests/src/com/android/cts/tradefed/UnitTests.java
@@ -16,7 +16,6 @@
 package com.android.cts.tradefed;
 
 import com.android.cts.tradefed.result.CtsXmlResultReporterTest;
-import com.android.cts.tradefed.targetprep.CtsSetupTest;
 import com.android.cts.tradefed.testtype.CtsTestTest;
 import com.android.cts.tradefed.testtype.JarHostTestTest;
 import com.android.cts.tradefed.testtype.TestPackageDefTest;
@@ -37,7 +36,6 @@
     public UnitTests() {
         super();
         addTestSuite(CtsXmlResultReporterTest.class);
-        addTestSuite(CtsSetupTest.class);
         addTestSuite(JarHostTestTest.class);
         addTestSuite(CtsTestTest.class);
         addTestSuite(TestPlanTest.class);
diff --git a/tools/tradefed-host/tests/src/com/android/cts/tradefed/targetprep/CtsSetupTest.java b/tools/tradefed-host/tests/src/com/android/cts/tradefed/targetprep/CtsSetupTest.java
deleted file mode 100644
index 949cfd5..0000000
--- a/tools/tradefed-host/tests/src/com/android/cts/tradefed/targetprep/CtsSetupTest.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Copyright (C) 2010 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.android.cts.tradefed.targetprep;
-
-import com.android.cts.tradefed.build.CtsBuildHelper;
-import com.android.cts.tradefed.build.StubCtsBuildHelper;
-import com.android.tradefed.build.IBuildInfo;
-import com.android.tradefed.build.IFolderBuildInfo;
-import com.android.tradefed.device.DeviceNotAvailableException;
-import com.android.tradefed.device.ITestDevice;
-import com.android.tradefed.targetprep.BuildError;
-import com.android.tradefed.targetprep.TargetSetupError;
-
-import org.easymock.EasyMock;
-
-import java.io.File;
-
-import junit.framework.TestCase;
-
-/**
- * Unit tests for {@link CtsSetup}.
- */
-public class CtsSetupTest extends TestCase {
-
-    private CtsSetup mSetup;
-    private ITestDevice mMockDevice;
-
-    /**
-     * {@inheritDoc}
-     */
-    @Override
-    protected void setUp() throws Exception {
-        super.setUp();
-        mSetup = new CtsSetup() {
-            @Override
-            CtsBuildHelper createBuildHelper(File rootDir) {
-                return new StubCtsBuildHelper();
-            }
-        };
-        mMockDevice = EasyMock.createMock(ITestDevice.class);
-    }
-
-    /**
-     * Test {@link CtsSetup#setUp(ITestDevice, IBuildInfo)} when provided buildInfo is the incorrect
-     * type
-     */
-    public void testSetUp_wrongBuildInfo() throws TargetSetupError, BuildError,
-            DeviceNotAvailableException {
-        try {
-            mSetup.setUp(mMockDevice, EasyMock.createMock(IBuildInfo.class));
-            fail("IllegalArgumentException not thrown");
-        } catch (IllegalArgumentException e) {
-            // expected
-        }
-    }
-
-    /**
-     * Test normal case for {@link CtsSetup#setUp(ITestDevice, IBuildInfo)}
-     */
-    public void testSetUp() throws TargetSetupError, BuildError, DeviceNotAvailableException {
-        IFolderBuildInfo ctsBuild = EasyMock.createMock(IFolderBuildInfo.class);
-        EasyMock.expect(ctsBuild.getRootDir()).andReturn(
-                new File("tmp")).anyTimes();
-        EasyMock.expect(ctsBuild.getBuildId()).andStubReturn("0");
-        EasyMock.expect(
-                mMockDevice.installPackage((File)EasyMock.anyObject(), EasyMock.anyBoolean()))
-                .andReturn(null)
-                .anyTimes();
-        EasyMock.replay(ctsBuild, mMockDevice);
-        mSetup.setUp(mMockDevice, ctsBuild);
-    }
-}