rename server PackageInfo class to SourcePackageInfo
[teamcity/dotNetPackagesSupport.git] / nuget-tests / src / jetbrains / buildServer / nuget / tests / server / NamedPackagesUpdateCheckerTest.java
index 208e265b9d50454090364f5739280b30cb209d93..ebb15bbc90f84950de68cf2a7411e7dd529b6537 100644 (file)
@@ -20,7 +20,7 @@ import jetbrains.buildServer.BaseTestCase;
 import jetbrains.buildServer.buildTriggers.BuildTriggerDescriptor;\r
 import jetbrains.buildServer.buildTriggers.BuildTriggerException;\r
 import jetbrains.buildServer.nuget.server.exec.ListPackagesCommand;\r
-import jetbrains.buildServer.nuget.server.exec.PackageInfo;\r
+import jetbrains.buildServer.nuget.server.exec.SourcePackageInfo;\r
 import jetbrains.buildServer.nuget.server.trigger.NamedPackagesUpdateChecker;\r
 import jetbrains.buildServer.nuget.server.trigger.TriggerConstants;\r
 import jetbrains.buildServer.nuget.tests.integration.Paths;\r
@@ -75,7 +75,7 @@ public class NamedPackagesUpdateCheckerTest extends BaseTestCase {
   public void test_check_first_time_should_not_trigger() {\r
     m.checking(new Expectations(){{\r
       oneOf(cmd).checkForChanges(nugetFakePath, null, "NUnit", null);\r
-      will(returnValue(Arrays.asList(new PackageInfo("src", "pkg", "5.6.87"))));\r
+      will(returnValue(Arrays.asList(new SourcePackageInfo("src", "pkg", "5.6.87"))));\r
 \r
       oneOf(store).getValue("hash"); will(returnValue(null));\r
       oneOf(store).putValue(with(equal("hash")), with(any(String.class)));\r
@@ -88,10 +88,10 @@ public class NamedPackagesUpdateCheckerTest extends BaseTestCase {
   public void test_check_should_not_trigger_twice() {\r
     m.checking(new Expectations(){{\r
       oneOf(cmd).checkForChanges(nugetFakePath, null, "NUnit", null);\r
-      will(returnValue(Arrays.asList(new PackageInfo("src", "pkg", "5.6.87"))));\r
+      will(returnValue(Arrays.asList(new SourcePackageInfo("src", "pkg", "5.6.87"))));\r
 \r
       oneOf(cmd).checkForChanges(nugetFakePath, null, "NUnit", null);\r
-      will(returnValue(Arrays.asList(new PackageInfo("src", "pkg", "5.6.87"))));\r
+      will(returnValue(Arrays.asList(new SourcePackageInfo("src", "pkg", "5.6.87"))));\r
 \r
       oneOf(store).getValue("hash"); will(returnValue("aaa"));\r
       oneOf(store).putValue("hash", "|s:src|p:pkg|v:5.6.87");\r