Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit b162510

Browse files
author
josebarrueta
committed
1194 Refactor how to get a single item of a collection. Remove unnecessary blank line.
1 parent 55adf3a commit b162510

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

extensions/httpclient/src/test/groovy/com/stormpath/sdk/impl/saml/AbstractSamlIT.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ xu/vQr6stjuzJIsDNAtW1FlG8WALOMjV
8787
}
8888

8989
protected SamlIdentityProvider getSamlIdentityProviderForAdministratorsApplication() {
90-
def app = client.currentTenant.getApplications(Applications.where(Applications.name().eqIgnoreCase("Stormpath"))).asList().get(0)
90+
def app = client.currentTenant.getApplications(Applications.where(Applications.name().eqIgnoreCase("Stormpath"))).single()
9191
return getSamlIdentityProviderForApplication(app)
9292
}
9393

extensions/httpclient/src/test/groovy/com/stormpath/sdk/impl/saml/RegisteredSamlServiceProviderIT.groovy

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,7 @@ class RegisteredSamlServiceProviderIT extends AbstractSamlIT {
377377

378378
@Test
379379
void testSearchIdentityProviderCollectionOfRegisteredSamlServiceProvidersByDifferentProperties(){
380-
381380
def application = createTempApp()
382-
383381
def identityProvider = getSamlIdentityProviderForApplication(application)
384382

385383
def serviceProvider = client.instantiate(RegisteredSamlServiceProvider)
@@ -428,9 +426,7 @@ class RegisteredSamlServiceProviderIT extends AbstractSamlIT {
428426

429427
@Test
430428
void testDeletion() {
431-
432429
def application = createTempApp()
433-
434430
def identityProvider = getSamlIdentityProviderForApplication(application)
435431

436432
def serviceProvider = client.instantiate(RegisteredSamlServiceProvider)

0 commit comments

Comments
 (0)