fix files.update testcase
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e78c5c9f Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e78c5c9f Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e78c5c9f Branch: refs/heads/master Commit: e78c5c9fb87bfc48447fa34681e3367570ae8ce1 Parents: fac889f Author: Jonathan Anstey <jans...@gmail.com> Authored: Tue Sep 2 22:22:21 2014 -0230 Committer: Jonathan Anstey <jans...@gmail.com> Committed: Mon Sep 8 09:06:09 2014 -0230 ---------------------------------------------------------------------- .../camel/component/google/drive/DriveFilesIntegrationTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/e78c5c9f/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIntegrationTest.java ---------------------------------------------------------------------- diff --git a/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIntegrationTest.java b/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIntegrationTest.java index c8cd5a6..3c88d39 100644 --- a/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIntegrationTest.java +++ b/components/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveFilesIntegrationTest.java @@ -124,7 +124,7 @@ public class DriveFilesIntegrationTest extends AbstractGoogleDriveTestSupport { @Ignore @Test public void testPatch() throws Exception { - // TODO have to support setting patch parameters before callinfg execute like: + // TODO have to support setting patch parameters before calling execute like: /* File file = new File(); file.setTitle(newTitle); @@ -197,11 +197,10 @@ public class DriveFilesIntegrationTest extends AbstractGoogleDriveTestSupport { // File's new metadata. file.setTitle("camel.png"); - file.setMimeType("application/vnd.google-apps.photo"); // File's new content. java.io.File fileContent = new java.io.File(TEST_UPLOAD_IMG); - FileContent mediaContent = new FileContent("application/vnd.google-apps.photo", fileContent); + FileContent mediaContent = new FileContent(null, fileContent); // Send the request to the API.