--- /dev/null
+/*\r
+ * Copyright 2000-2011 JetBrains s.r.o.\r
+ *\r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+package jetbrains.buildServer.nuget.tests;\r
+\r
+import jetbrains.buildServer.BaseTestCase;\r
+import jetbrains.buildServer.nuget.server.install.PackagesInstallerRunType;\r
+import jetbrains.buildServer.web.openapi.PluginDescriptor;\r
+import org.jmock.Mockery;\r
+import org.testng.Assert;\r
+import org.testng.annotations.BeforeMethod;\r
+import org.testng.annotations.Test;\r
+\r
+/**\r
+ * Created by Eugene Petrenko (eugene.petrenko@gmail.com)\r
+ * Date: 21.07.11 19:03\r
+ */\r
+public class RunTypeNameTest extends BaseTestCase {\r
+ private Mockery m;\r
+ private PluginDescriptor descr;\r
+\r
+ @BeforeMethod\r
+ @Override\r
+ protected void setUp() throws Exception {\r
+ super.setUp();\r
+ m = new Mockery();\r
+ descr = m.mock(PluginDescriptor.class);\r
+ }\r
+\r
+ @Test\r
+ public void test_installPackagesRunTypeIdLendth() {\r
+ final String type = new PackagesInstallerRunType(descr).getType();\r
+ Assert.assertTrue(type.length() < 30);\r
+ }\r
+}\r
\r
<test name="fast tests">\r
<classes>\r
+ <class name="jetbrains.buildServer.nuget.tests.RunTypeNameTest"/>\r
+\r
<class name="jetbrains.buildServer.nuget.tests.agent.NuGetPackagesConfigParserTest"/>\r
<class name="jetbrains.buildServer.nuget.tests.agent.PackagesWatcherTest"/>\r
<class name="jetbrains.buildServer.nuget.tests.agent.LocateNuGetConfigBuildProcessTest"/>\r