From 4e53fd470f305efd24f7c00e0eeee6239b042fa4 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Mon, 23 Jul 2018 12:54:12 -0400 Subject: [PATCH] Fix test for latest SF compatibility * Remove Travis config an unreachable artifact To make PRs work with Travis CI, we need to have `.travis.yml` in the root of project, but at the same time we don't know from there what `./gradlew` to call from the root in PR --- spring-integration-social-twitter/.travis.yml | 12 ------------ .../TwitterSearchOutboundGatewayParserTests.java | 5 +++-- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 spring-integration-social-twitter/.travis.yml diff --git a/spring-integration-social-twitter/.travis.yml b/spring-integration-social-twitter/.travis.yml deleted file mode 100644 index 46fc5f8..0000000 --- a/spring-integration-social-twitter/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: java -jdk: oraclejdk8 -sudo: false -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock -cache: - directories: - - $HOME/.gradle/caches/ - - $HOME/.gradle/wrapper/ -install: true -script: - - ./gradlew check --refresh-dependencies --no-daemon diff --git a/spring-integration-social-twitter/src/test/java/org/springframework/integration/twitter/config/TwitterSearchOutboundGatewayParserTests.java b/spring-integration-social-twitter/src/test/java/org/springframework/integration/twitter/config/TwitterSearchOutboundGatewayParserTests.java index 68aa6ad..b0422de 100644 --- a/spring-integration-social-twitter/src/test/java/org/springframework/integration/twitter/config/TwitterSearchOutboundGatewayParserTests.java +++ b/spring-integration-social-twitter/src/test/java/org/springframework/integration/twitter/config/TwitterSearchOutboundGatewayParserTests.java @@ -20,7 +20,7 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertThat; -import java.util.ArrayList; +import java.util.List; import org.hamcrest.Matchers; import org.junit.Test; @@ -39,6 +39,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; /** * @author Gary Russell + * @author Artem Bilan */ @ContextConfiguration @RunWith(SpringJUnit4ClassRunner.class) @@ -73,7 +74,7 @@ public class TwitterSearchOutboundGatewayParserTests { @Test public void testAdvised() { assertSame(twitter, TestUtils.getPropertyValue(polledAndAdvisedTSOG, "handler.twitter")); - assertThat(TestUtils.getPropertyValue(polledAndAdvisedTSOG, "handler.adviceChain", ArrayList.class).get(0), + assertThat(TestUtils.getPropertyValue(polledAndAdvisedTSOG, "handler.adviceChain", List.class).get(0), Matchers.instanceOf(RequestHandlerRetryAdvice.class)); }