This is an automated email from the ASF dual-hosted git repository. acosentino 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 104c186 Changed conditional test execution 104c186 is described below commit 104c186d31626e6ba1493598d2c3c3f9c62634fe Author: Elvys Soares <e...@cin.ufpe.br> AuthorDate: Tue Mar 23 09:30:23 2021 -0300 Changed conditional test execution Signed-off-by: Elvys Soares <e...@cin.ufpe.br> --- .../google/drive/DriveChangesIntegrationTest.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIntegrationTest.java b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIntegrationTest.java index 3c59cd4..9b5423c 100644 --- a/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIntegrationTest.java +++ b/components/camel-google/camel-google-drive/src/test/java/org/apache/camel/component/google/drive/DriveChangesIntegrationTest.java @@ -27,6 +27,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assumptions.assumeFalse; /** * Test class for com.google.api.services.drive.Drive$Changes APIs. @@ -41,16 +42,16 @@ public class DriveChangesIntegrationTest extends AbstractGoogleDriveTestSupport public void testGet() throws Exception { final com.google.api.services.drive.model.ChangeList list = requestBody("direct://LIST", null); List<Change> items = list.getItems(); - if (!items.isEmpty()) { - Change change = items.get(0); - Long id = change.getId(); + assumeFalse(items.isEmpty()); - // using String message body for single parameter "changeId" - final com.google.api.services.drive.model.Change result = requestBody("direct://GET", id); + Change change = items.get(0); + Long id = change.getId(); - assertNotNull(result, "get result"); - LOG.debug("get: " + result); - } + // using String message body for single parameter "changeId" + final com.google.api.services.drive.model.Change result = requestBody("direct://GET", id); + + assertNotNull(result, "get result"); + LOG.debug("get: " + result); } @Test