\r
@Test\r
public void test_01_online_sources() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
\r
fetchPackages(new File(myRoot, "sln1-lib.sln"), Collections.<String>emptyList(), false, false,\r
Arrays.asList(\r
}\r
\r
@NotNull\r
- private File getTestDataPath() {\r
- return Paths.getTestDataPath("integration/test-01.zip");\r
+ private File getTestDataPath(final String path) {\r
+ return Paths.getTestDataPath("integration/" + path);\r
}\r
\r
@Test\r
public void test_01_online_sources_update_forConfig() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
\r
m.checking(new Expectations() {{\r
allowing(myLogger).activityStarted(with(equal("update")), with(any(String.class)), with(equal("nuget")));\r
\r
@Test\r
public void test_01_online_sources_update_forSln() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
\r
m.checking(new Expectations() {{\r
allowing(myLogger).activityStarted(with(equal("update")), with(any(String.class)), with(equal("nuget")));\r
\r
@Test\r
public void test_01_online_sources_update_safe() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
\r
m.checking(new Expectations() {{\r
allowing(myLogger).activityStarted(with(equal("update")), with(any(String.class)), with(equal("nuget")));\r
\r
@Test\r
public void test_01_online_sources_ecludeVersion() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
\r
fetchPackages(new File(myRoot, "sln1-lib.sln"), Collections.<String>emptyList(), true, false,\r
Arrays.asList(\r
\r
@Test(enabled = false, dependsOnGroups = "Need to understand how to check NuGet uses only specified sources")\r
public void test_01_local_sources() throws RunBuildException {\r
- ArchiveUtil.unpackZip(getTestDataPath(), "", myRoot);\r
+ ArchiveUtil.unpackZip(getTestDataPath("test-01.zip"), "", myRoot);\r
File sourcesDir = new File(myRoot, "js");\r
ArchiveUtil.unpackZip(Paths.getTestDataPath("test-01-sources.zip"), "", sourcesDir);\r
\r