Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
[#30] Improved Component used by tests (line wrapping and missing ret…
Browse files Browse the repository at this point in the history
…urn)
  • Loading branch information
MaciejZiarko committed Sep 21, 2014
1 parent 380954b commit 146db90
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ class ComponentWithMultipleDependencies {
}

boolean hasDependenciesInjectedCorrectly() {
return serviceRestClient != null &&
restOperations != null &&
restOperationsImplementedBySpring()
return nonNullDependencies() && restOperationsImplementedBySpring()
}

private boolean restOperationsImplementedBySpring() {
restOperations.getClass() == RestTemplate
return restOperations.getClass() == RestTemplate
}

private boolean nonNullDependencies() {
return serviceRestClient != null && restOperations != null
}
}

0 comments on commit 146db90

Please sign in to comment.