Skip to content

Commit

Permalink
[SHIBUI-839]
Browse files Browse the repository at this point in the history
Updated test to not use String.trim().
  • Loading branch information
Bill Smith committed Sep 20, 2018
1 parent 19222e9 commit 35a1f0b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,14 @@ class MetadataResolversControllerIntegrationTests extends Specification {
given:
def resolver = generator.buildRandomMetadataResolverOfType('DynamicHttp')
resolver.name = ' This name has spaces '
def expectedName = 'This name has spaces'

when:
def result = this.restTemplate.postForEntity(BASE_URI, createRequestHttpEntityFor { mapper.writeValueAsString(resolver) }, String)

then:
def metadataResolverMap = new JsonSlurper().parseText(result.body)
metadataResolverMap.name == resolver.name.trim()
metadataResolverMap.name == expectedName
}

@Unroll
Expand Down

0 comments on commit 35a1f0b

Please sign in to comment.