Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
psainics committed Jan 6, 2025
1 parent 4a0211c commit 463d058
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand All @@ -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());
}
Expand Down

0 comments on commit 463d058

Please sign in to comment.