Google Doc Integration: Fix system unit test failures

* Fixed spreadsheet download
  * Refactored use of DocService to improve reliability
  * Reuse security tokens 
  * Consolidate code as a result of above changes



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@30832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Roy Wetherall
2011-09-29 00:15:38 +00:00
parent acb0bbf7ee
commit 79508da9fc
6 changed files with 152 additions and 158 deletions

View File

@@ -216,16 +216,7 @@ public class GoogleDocumentServiceSystemTest extends TestCase implements GoogleD
private boolean isGoogleServiceAvailable()
{
boolean result = true;
try
{
googleDocsService.initialise();
}
catch (GoogleDocsServiceInitException e)
{
result = false;
}
return result;
return googleDocsService.isEnabled();
}
public void testGoogleDocUploadDownload() throws Exception