Skip to content

Commit

Permalink
Add DirtiesContext
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Sep 10, 2018
1 parent c6cc829 commit 64efd4e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.springframework.boot.test.web.client.TestRestTemplate
import org.springframework.context.annotation.Bean
import org.springframework.http.HttpEntity
import org.springframework.http.HttpHeaders
import org.springframework.test.annotation.DirtiesContext
import org.springframework.test.context.ActiveProfiles
import spock.lang.Specification
import spock.lang.Unroll
Expand Down Expand Up @@ -150,6 +151,7 @@ class MetadataResolversControllerIntegrationTests extends Specification {
}

@Unroll
@DirtiesContext
def "POST new concrete MetadataResolver of type #resolverType -> /api/MetadataResolvers"(String resolverType) {
given: 'New MetadataResolver JSON representation'
def resolver = generator.buildRandomMetadataResolverOfType(resolverType)
Expand Down

0 comments on commit 64efd4e

Please sign in to comment.