prototype feed reader
[teamcity/dotNetPackagesSupport.git] / nuget-tests / src / jetbrains / buildServer / nuget / tests / integration / FeedReaderTest.java
index bd26772ecd690ff1fade52ca22c6874bd23bcb9e..cb9dd79d807db3e51d3c1958448ec0518f818e43 100644 (file)
@@ -20,6 +20,10 @@ import jetbrains.buildServer.BaseTestCase;
 import jetbrains.buildServer.nuget.server.feed.reader.FeedClient;\r
 import jetbrains.buildServer.nuget.server.feed.reader.FeedConstants;\r
 import jetbrains.buildServer.nuget.server.feed.reader.NuGetFeedReader;\r
+import org.apache.log4j.ConsoleAppender;\r
+import org.apache.log4j.Level;\r
+import org.apache.log4j.Logger;\r
+import org.apache.log4j.SimpleLayout;\r
 import org.testng.annotations.AfterMethod;\r
 import org.testng.annotations.BeforeMethod;\r
 import org.testng.annotations.Test;\r
@@ -51,6 +55,12 @@ public class FeedReaderTest extends BaseTestCase {
 \r
   @Test\r
   public void testRead() throws IOException {\r
+    enableDebug();\r
+\r
+    final Logger logger = Logger.getLogger("org.apache.commons");\r
+    logger.setLevel(Level.DEBUG);\r
+    logger.addAppender(new ConsoleAppender(new SimpleLayout()));\r
+\r
     myReader.queryPackage(FeedConstants.FEED_URL, "NuGet.CommandLine");\r
   }\r
 }\r