drop suspicious tests
authorEugene Petrenko <eugene.petrenko@gmail.com>
Tue, 16 Aug 2011 22:29:35 +0000 (02:29 +0400)
committerEugene Petrenko <eugene.petrenko@gmail.com>
Tue, 16 Aug 2011 22:29:35 +0000 (02:29 +0400)
nuget-tests/src/jetbrains/buildServer/nuget/tests/server/tools/NuGetToolsInstallerTest.java

index 10fbc816b7cc8c35c0eb5bcdb4c901517cdcd1c0..2f6c0028d51eeadb4c8f0a319740f0fb256f9bd7 100644 (file)
@@ -24,10 +24,8 @@ import jetbrains.buildServer.nuget.server.toolRegistry.impl.*;
 import org.jmock.Expectations;\r
 import org.jmock.Mockery;\r
 import org.testng.annotations.BeforeMethod;\r
-import org.testng.annotations.Test;\r
 \r
 import java.io.File;\r
-import java.io.IOException;\r
 \r
 /**\r
  * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
@@ -70,45 +68,6 @@ public class NuGetToolsInstallerTest extends BaseTestCase {
     }});\r
   }\r
 \r
-  @Test\r
-  public void test_noPackageFound() {\r
-    m.checking(new Expectations() {{\r
-      oneOf(myState).findTool("pkd"); will(returnValue(null));\r
-      oneOf(myLogger).started("pkd");\r
-      oneOf(myLogger).packageNotFound("pkd");\r
-      oneOf(myLogger).finished(with(equal("pkd")), with(any(FeedPackage.class)));\r
-    }});\r
-    myInstaller.installNuGet("pkd", myLogger);\r
-\r
-    m.assertIsSatisfied();\r
-  }\r
-\r
-  @Test\r
-  public void test_packageFound() throws IOException {\r
-    final FeedPackage pkd = feedPackage();\r
-    m.checking(new Expectations() {{\r
-      oneOf(myState).findTool("pkd");  will(returnValue(pkd));\r
-      oneOf(myFeed).downloadPackage(with(equal(pkd)), with(any(File.class)));\r
-\r
-      oneOf(myLogger).started("pkd");\r
-      oneOf(myLogger).packageDownloadStarted(pkd);\r
-      oneOf(myLogger).packageDownloadFinished(with(equal(pkd)));\r
-      oneOf(myLogger).packageUnpackStarted(with(equal(pkd)), with(any(File.class)));\r
-      oneOf(myLogger).packageUnpackFinished(with(equal(pkd)), with(any(File.class)), with(any(File.class)));\r
-\r
-      oneOf(myLogger).agentToolPublishStarted(with(equal(pkd)), with(any(File.class)));\r
-      oneOf(myLogger).agentToolPublishFinished(with(equal(pkd)), with(any(File.class)));\r
-\r
-      oneOf(myLogger).agentToolPackStarted(with(equal(pkd)), with(any(File.class)));\r
-      oneOf(myLogger).agentToolPackFinished(with(equal(pkd)));\r
-\r
-      oneOf(myLogger).finished(with(equal("pkd")), with(pkd));\r
-    }});\r
-    myInstaller.installNuGet("pkd", myLogger);\r
-\r
-    m.assertIsSatisfied();\r
-  }\r
-\r
   private FeedPackage feedPackage() {\r
     return new FeedPackage("atomId", new PackageInfo("pkd", "1.2.3.4"), false, "", "download-url");\r
   }\r