manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1625108 - /manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java
Date Mon, 15 Sep 2014 18:45:13 GMT
Author: kwright
Date: Mon Sep 15 18:45:13 2014
New Revision: 1625108

URL: http://svn.apache.org/r1625108
Log:
Fix SharePoint test compilation.  Part of CONNECTORS-977.

Modified:
    manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java

Modified: manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java?rev=1625108&r1=1625107&r2=1625108&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java
(original)
+++ manifoldcf/trunk/connectors/sharepoint/connector/src/test/java/org/apache/manifoldcf/crawler/connectors/sharepoint/XMLGenTest.java
Mon Sep 15 18:45:13 2014
@@ -46,10 +46,10 @@ public class XMLGenTest
   public void buildViewFieldsTest()
     throws Exception
   {
-    ArrayList list = new ArrayList();
+    List<String> list = new ArrayList<String>();
     list.add("foo");
     list.add("bar");
-    String viewFieldsXML = SPSProxyHelper.buildViewFields(list).get_any()[0].toString();
+    String viewFieldsXML = SPSProxyHelper.buildViewFields(list.toArray(new String[0])).get_any()[0].toString();
     assertEquals("<ViewFields><FieldRef Name=\"foo\"/><FieldRef Name=\"bar\"/></ViewFields>",viewFieldsXML);
   }
   



Mime
View raw message