OLD | NEW |
1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 assertEquals(golden, responseString); | 1445 assertEquals(golden, responseString); |
1446 assertEquals(goldenMetadata, response.getMetadata()); | 1446 assertEquals(goldenMetadata, response.getMetadata()); |
1447 assertEquals(new Acl.Builder() | 1447 assertEquals(new Acl.Builder() |
1448 .setInheritFrom(new DocId("http://localhost:1/sites/SiteCollection/" | 1448 .setInheritFrom(new DocId("http://localhost:1/sites/SiteCollection/" |
1449 + "Lists/Custom List/Test Folder")) | 1449 + "Lists/Custom List/Test Folder")) |
1450 .setInheritanceType(Acl.InheritanceType.PARENT_OVERRIDES).build(), | 1450 .setInheritanceType(Acl.InheritanceType.PARENT_OVERRIDES).build(), |
1451 response.getAcl()); | 1451 response.getAcl()); |
1452 assertEquals(URI.create("http://localhost:1/sites/SiteCollection/Lists/" | 1452 assertEquals(URI.create("http://localhost:1/sites/SiteCollection/Lists/" |
1453 + "Custom%20List/DispForm.aspx?ID=2"), | 1453 + "Custom%20List/DispForm.aspx?ID=2"), |
1454 response.getDisplayUrl()); | 1454 response.getDisplayUrl()); |
1455 assertEquals(new Date(1335910446000L), response.getLastModified()); | 1455 assertEquals(new Date(1336166672000L), response.getLastModified()); |
1456 } | 1456 } |
1457 | 1457 |
1458 @Test | 1458 @Test |
1459 public void testGetDocContentListItemWithListAsParent() throws Exception { | 1459 public void testGetDocContentListItemWithListAsParent() throws Exception { |
1460 SiteDataSoap siteData = MockSiteData.blank() | 1460 SiteDataSoap siteData = MockSiteData.blank() |
1461 .register(SITES_SITECOLLECTION_S_CONTENT_EXCHANGE) | 1461 .register(SITES_SITECOLLECTION_S_CONTENT_EXCHANGE) |
1462 .register(SITES_SITECOLLECTION_LISTS_CUSTOMLIST_L_CONTENT_EXCHANGE) | 1462 .register(SITES_SITECOLLECTION_LISTS_CUSTOMLIST_L_CONTENT_EXCHANGE) |
1463 .register(SITES_SITECOLLECTION_LISTS_CUSTOMLIST_2_LI_CONTENT_EXCHANGE | 1463 .register(SITES_SITECOLLECTION_LISTS_CUSTOMLIST_2_LI_CONTENT_EXCHANGE |
1464 .replaceInContent("ows_Attachments='1'", "ows_Attachments='0'") | 1464 .replaceInContent("ows_Attachments='1'", "ows_Attachments='0'") |
1465 .replaceInContent("Inside Folder", "Under List") | 1465 .replaceInContent("Inside Folder", "Under List") |
(...skipping 1739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 return token; | 3205 return token; |
3206 } | 3206 } |
3207 ···· | 3207 ···· |
3208 @Override | 3208 @Override |
3209 public String getAuthenticationCookie(String token) throws IOException { | 3209 public String getAuthenticationCookie(String token) throws IOException { |
3210 return cookie; | 3210 return cookie; |
3211 } | 3211 } |
3212 } | 3212 } |
3213 ·· | 3213 ·· |
3214 } | 3214 } |
OLD | NEW |