You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2018/06/07 05:18:42 UTC

[camel] branch master updated: fix camel-telegram tests

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 784f1cd  fix camel-telegram tests
784f1cd is described below

commit 784f1cdab8483eb8afb490b16a35df9171bc4e16
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Thu Jun 7 07:18:18 2018 +0200

    fix camel-telegram tests
---
 .../apache/camel/component/telegram/util/TelegramTestSupport.java   | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/util/TelegramTestSupport.java b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/util/TelegramTestSupport.java
index ed31c27..4663802 100644
--- a/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/util/TelegramTestSupport.java
+++ b/components/camel-telegram/src/test/java/org/apache/camel/component/telegram/util/TelegramTestSupport.java
@@ -21,14 +21,12 @@ import java.io.InputStream;
 import java.util.Arrays;
 
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.apache.camel.component.telegram.TelegramService;
 import org.apache.camel.component.telegram.TelegramServiceProvider;
 import org.apache.camel.component.telegram.model.InlineKeyboardButton;
 import org.apache.camel.component.telegram.model.OutgoingTextMessage;
 import org.apache.camel.component.telegram.model.ReplyKeyboardMarkup;
 import org.apache.camel.test.junit4.CamelTestSupport;
-import org.junit.After;
 import org.mockito.Mockito;
 
 /**
@@ -44,8 +42,8 @@ public class TelegramTestSupport extends CamelTestSupport {
     /**
      * Restores the status of {@code TelegramServiceProvider} if it has been mocked.
      */
-    @After
-    public void tearDown() {
+    @Override
+    public void doPostTearDown() throws Exception {
         if (telegramServiceMocked) {
             TelegramServiceProvider.get().restoreDefaultService();
             this.telegramServiceMocked = false;

-- 
To stop receiving notification emails like this one, please contact
lburgazzoli@apache.org.