This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit dd148a10844a44b769f600a853d953f5ea24d91b Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Wed Mar 17 10:11:06 2021 +0100 Fix typo in AbstractBoxTestSupport --- .../org/apache/camel/component/box/AbstractBoxTestSupport.java | 4 ++-- .../camel/component/box/BoxUsersManagerIntegrationTest.java | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/AbstractBoxTestSupport.java b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/AbstractBoxTestSupport.java index 59bc29d..71ae355 100644 --- a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/AbstractBoxTestSupport.java +++ b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/AbstractBoxTestSupport.java @@ -39,7 +39,7 @@ public class AbstractBoxTestSupport extends CamelTestSupport { protected BoxFolder testFolder; protected BoxFile testFile; - protected boolean jwtAuthentoication; + protected boolean jwtAuthentication; protected Map<String, Object> options; @Override @@ -72,7 +72,7 @@ public class AbstractBoxTestSupport extends CamelTestSupport { //initialize flag, whether is box configuration JWT String authenticationType = properties.getProperty("authenticationType"); - jwtAuthentoication = !BoxConfiguration.STANDARD_AUTHENTICATION.equals(authenticationType); + jwtAuthentication = !BoxConfiguration.STANDARD_AUTHENTICATION.equals(authenticationType); return context; } diff --git a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxUsersManagerIntegrationTest.java b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxUsersManagerIntegrationTest.java index 017435c..2001548 100644 --- a/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxUsersManagerIntegrationTest.java +++ b/components/camel-box/camel-box-component/src/test/java/org/apache/camel/component/box/BoxUsersManagerIntegrationTest.java @@ -86,7 +86,7 @@ public class BoxUsersManagerIntegrationTest extends AbstractBoxTestSupport { @Test public void testCreateAppUser() throws Exception { //This test makes sense only with JWT authentication. With standard (OAuth) it will always fail. - assumeTrue(jwtAuthentoication, "Test has to be executed with standard authentication."); + assumeTrue(jwtAuthentication, "Test has to be executed with standard authentication."); com.box.sdk.BoxUser result = null; @@ -117,7 +117,7 @@ public class BoxUsersManagerIntegrationTest extends AbstractBoxTestSupport { @Test public void testCreateEnterpriseUser() throws Exception { //This test makes sense only with standard (OAuth) authentication, with JWT it will always fail with return code 403 - assumeFalse(jwtAuthentoication, "Test has to be executed with standard authentication."); + assumeFalse(jwtAuthentication, "Test has to be executed with standard authentication."); String enterpriseUser1Login = (String) options.get(CAMEL_TEST_ENTERPRISE_USER_LOGIN_KEY); if (enterpriseUser1Login != null && "".equals(enterpriseUser1Login.trim())) { @@ -158,7 +158,7 @@ public class BoxUsersManagerIntegrationTest extends AbstractBoxTestSupport { @Test public void testDeleteUser() throws Exception { //This test makes sense only with JWT authentication. With standard (OAuth) it will always fail. - assumeTrue(jwtAuthentoication, "Test has to be executed with standard authentication."); + assumeTrue(jwtAuthentication, "Test has to be executed with standard authentication."); BoxUser.Info info = BoxUser.createAppUser(getConnection(), CAMEL_TEST_CREATE_APP_USER_NAME); @@ -245,7 +245,7 @@ public class BoxUsersManagerIntegrationTest extends AbstractBoxTestSupport { @Test public void testUpdateUserInfo() throws Exception { //This test makes sense only with standard (OAuth) authentication, with JWT it will always fail with return code 403 - assumeFalse(jwtAuthentoication, "Test has to be executed with standard authentication."); + assumeFalse(jwtAuthentication, "Test has to be executed with standard authentication."); BoxUser.Info info = testUser.getInfo(); info.setJobTitle(CAMEL_TEST_USER_JOB_TITLE); @@ -269,7 +269,7 @@ public class BoxUsersManagerIntegrationTest extends AbstractBoxTestSupport { @Test public void testmMoveFolderToUser() throws Exception { //This test makes sense only with standard (OAuth) authentication, with JWT it will always fail with return code 403 - assumeFalse(jwtAuthentoication, "Test has to be executed with standard authentication."); + assumeFalse(jwtAuthentication, "Test has to be executed with standard authentication."); String enterpriseUser1Login = (String) options.get(CAMEL_TEST_ENTERPRISE_USER_LOGIN_KEY); String enterpriseUser2Login = (String) options.get(CAMEL_TEST_ENTERPRISE_USER2_LOGIN_KEY);