camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject [05/12] camel git commit: fix test error
Date Wed, 12 Oct 2016 02:16:33 GMT
fix test error


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/329aca67
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/329aca67
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/329aca67

Branch: refs/heads/master
Commit: 329aca67f5d2fc0d4eaa8226a346c7c4c10ed871
Parents: d843200
Author: Jonathan Anstey <janstey@gmail.com>
Authored: Tue Oct 11 23:36:18 2016 -0230
Committer: Jonathan Anstey <janstey@gmail.com>
Committed: Tue Oct 11 23:36:18 2016 -0230

----------------------------------------------------------------------
 .../calendar/CalendarConfigurationTest.java       | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/329aca67/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/CalendarConfigurationTest.java
----------------------------------------------------------------------
diff --git a/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/CalendarConfigurationTest.java
b/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/CalendarConfigurationTest.java
index a70934e..c22915f 100644
--- a/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/CalendarConfigurationTest.java
+++ b/components/camel-google-calendar/src/test/java/org/apache/camel/component/google/calendar/CalendarConfigurationTest.java
@@ -16,28 +16,44 @@
  */
 package org.apache.camel.component.google.calendar;
 
+import java.util.Random;
+
 import org.apache.camel.CamelContext;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.google.calendar.internal.CalendarCalendarsApiMethod;
 import org.apache.camel.component.google.calendar.internal.GoogleCalendarApiCollection;
 import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.After;
+import org.junit.Before;
 import org.junit.Test;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import com.google.api.services.calendar.model.Calendar;
+
 public class CalendarConfigurationTest extends AbstractGoogleCalendarTestSupport {
 
     private static final Logger LOG = LoggerFactory.getLogger(CalendarConfigurationTest.class);
     private static final String PATH_PREFIX = GoogleCalendarApiCollection.getCollection().getApiName(CalendarCalendarsApiMethod.class).getName();
     private static final String TEST_URI = "google-calendar://" + PATH_PREFIX + "/get?clientId=a&clientSecret=b&applicationName=c&accessToken=d&refreshToken=e";
 
+    @Before
+    @Override    
+    public void createTestCalendar() {
+    }
+
+    @After
+    @Override
+    public void deleteTestCalendar() {
+    }
+    
     @Override
     protected CamelContext createCamelContext() throws Exception {
         final CamelContext context = new DefaultCamelContext(createRegistry());
 
         // add GoogleCalendarComponent to Camel context but don't set up configuration
         final GoogleCalendarComponent component = new GoogleCalendarComponent(context);
-        context.addComponent("google-drive", component);
+        context.addComponent("google-calendar", component);
 
         return context;
     }


Mime
View raw message