From 463d0589ebabda22505ddb0e182746a96a6a4102 Mon Sep 17 00:00:00 2001 From: psainics Date: Mon, 6 Jan 2025 17:08:38 +0530 Subject: [PATCH] Fix checkstyle --- .../connector/SuccessFactorsConnectorTest.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/test/java/io/cdap/plugin/successfactors/connector/SuccessFactorsConnectorTest.java b/src/test/java/io/cdap/plugin/successfactors/connector/SuccessFactorsConnectorTest.java index e8c2da4..03eb798 100644 --- a/src/test/java/io/cdap/plugin/successfactors/connector/SuccessFactorsConnectorTest.java +++ b/src/test/java/io/cdap/plugin/successfactors/connector/SuccessFactorsConnectorTest.java @@ -300,9 +300,12 @@ public void testOAuthEnterTokenMissingFields() { SuccessFactorsConnector connector = new SuccessFactorsConnector(pluginConfig.getConnection()); connector.test(context); Assert.assertEquals(4, collector.getValidationFailures().size()); - Assert.assertEquals("Required property 'clientId' is blank.", collector.getValidationFailures().get(0).getMessage()); - Assert.assertEquals("Required property 'companyId' is blank.", collector.getValidationFailures().get(1).getMessage()); - Assert.assertEquals("Required property 'assertionToken' is blank.", collector.getValidationFailures().get(2).getMessage()); + Assert.assertEquals("Required property 'clientId' is blank.", + collector.getValidationFailures().get(0).getMessage()); + Assert.assertEquals("Required property 'companyId' is blank.", + collector.getValidationFailures().get(1).getMessage()); + Assert.assertEquals("Required property 'assertionToken' is blank.", + collector.getValidationFailures().get(2).getMessage()); Assert.assertEquals("Unable to call SuccessFactorsEntity", collector.getValidationFailures().get(3).getMessage()); } @@ -321,9 +324,12 @@ public void testOAuthCreateTokenMissingFields() { SuccessFactorsConnector connector = new SuccessFactorsConnector(pluginConfig.getConnection()); connector.test(context); Assert.assertEquals(5, collector.getValidationFailures().size()); - Assert.assertEquals("Required property 'clientId' is blank.", collector.getValidationFailures().get(0).getMessage()); - Assert.assertEquals("Required property 'companyId' is blank.", collector.getValidationFailures().get(1).getMessage()); - Assert.assertEquals("Required property 'privateKey' is blank.", collector.getValidationFailures().get(2).getMessage()); + Assert.assertEquals("Required property 'clientId' is blank.", + collector.getValidationFailures().get(0).getMessage()); + Assert.assertEquals("Required property 'companyId' is blank.", + collector.getValidationFailures().get(1).getMessage()); + Assert.assertEquals("Required property 'privateKey' is blank.", + collector.getValidationFailures().get(2).getMessage()); Assert.assertEquals("Required property 'userId' is blank.", collector.getValidationFailures().get(3).getMessage()); Assert.assertEquals("Unable to call SuccessFactorsEntity", collector.getValidationFailures().get(4).getMessage()); }