minor corrections

This commit is contained in:
jomu
2015-02-04 00:18:28 +00:00
parent cae65ce01d
commit 57f0dd007a
4 changed files with 567 additions and 577 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@ import de.muehlencord.shared.sharepoint.api.sites.SPSite;
import java.net.MalformedURLException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import org.junit.Ignore;
import org.junit.Test;
/**
@ -14,6 +15,7 @@ public class NtlmAuthenticatorTest extends BaseTest {
@Test
@Ignore // Depends on available sharepoint currently
public void testAuthentication() throws MalformedURLException, NoSuchAlgorithmException, KeyManagementException {
SPSite instance = new SPSite(context);
instance.getRootWeb();

View File

@ -35,17 +35,11 @@ public class SPListTest extends BaseTest {
IOException {
SPLists instance = new SPLists(context);
SPList list = instance.getSpListByTitle("Test");
SPList list = instance.getSpListByTitle("Count");
assertNotNull(list);
String listName = list.getListName();
assertEquals("Listname", "{D8C8D97E-1065-4674-A8F2-026D6D478794}", listName);
// get list of all country codes
java.util.List<String> columns = new ArrayList<>();
columns.add("Title");
columns.add("ID");
java.util.List<java.util.List<String>> countryCodes = list.getListItems(columns, "300");
Map<String, String> data = new HashMap<>();
data.put("Title", "Test");
data.put("Choice", "Enter Choice #1"); // is not checked, possible to add wrong value
@ -56,7 +50,7 @@ public class SPListTest extends BaseTest {
}
@Test
// @Ignore // Depends on available sharepoint currently
@Ignore // Depends on available sharepoint currently
public void addListItemBigList() throws NoSuchAlgorithmException, KeyManagementException, JAXBException, SAXException, ParserConfigurationException,
IOException {

View File

@ -3,12 +3,8 @@ package de.muehlencord.shared.sharepoint.api.lists;
import de.muehlencord.shared.sharepoint.api.BaseTest;
import static de.muehlencord.shared.sharepoint.api.BaseTest.readFileContentFromTest;
import java.io.IOException;
import java.net.MalformedURLException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import javax.xml.bind.JAXBException;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.xml.sax.SAXException;
@ -22,7 +18,6 @@ public class SPListsTest extends BaseTest {
@Test
//@Ignore
public void testFromXML() throws IOException, JAXBException, SAXException {
String xmlString = readFileContentFromTest("lists/testlists.xml", "UTF-8");
SPLists lists = new SPLists(context);