From: Eugene Petrenko Date: Thu, 14 Jul 2011 14:57:18 +0000 (+0400) Subject: add test for processor and non-zero output X-Git-Tag: v0.2~10 X-Git-Url: https://git.jetbrains.org/?p=teamcity%2FdotNetPackagesSupport.git;a=commitdiff_plain;h=dbe5716ad1d2b23ffd7d1bb82ad1398ea60a6517 add test for processor and non-zero output --- diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/ListPackagesCommandProcessorTest.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/ListPackagesCommandProcessorTest.java index 000ef00..0877e22 100644 --- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/ListPackagesCommandProcessorTest.java +++ b/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/ListPackagesCommandProcessorTest.java @@ -45,6 +45,16 @@ public class ListPackagesCommandProcessorTest extends BaseTestCase { Assert.assertTrue(p.getResult().isEmpty()); } + @Test + public void test_should_throw_on_exit_code() { + try { + p.onFinished(1); + } catch (RuntimeException e) { + return; + } + Assert.fail("Exception expected"); + } + @Test public void test_some_output() { for(int i =0; i <100; i++) {