Skip to content

Commit

Permalink
Tests polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed May 18, 2018
1 parent e1e8fcc commit a4eaecc
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,27 @@ class FileBackedHttpMetadataResolverRepositoryTests extends Specification {
when:
def mdr = new FileBackedHttpMetadataResolver().with {
it.name = "FileBackedHttpMetadata"
it.httpMetadataResolverAttributes = new HttpMetadataResolverAttributes()
it.reloadableMetadataResolverAttributes = new ReloadableMetadataResolverAttributes()

it.httpMetadataResolverAttributes.connectionRequestTimeout = "PT05"
it.httpMetadataResolverAttributes.disregardTLSCertificate = true
it.httpMetadataResolverAttributes.httpCaching = memory
it.reloadableMetadataResolverAttributes.indexesRef = "indexesSpringBeanId"
it.httpMetadataResolverAttributes = new HttpMetadataResolverAttributes().with {
it.connectionRequestTimeout = "PT05"
it.disregardTLSCertificate = true
it.httpCaching = memory
it
}
it.reloadableMetadataResolverAttributes = new ReloadableMetadataResolverAttributes().with {
it.indexesRef = "indexesSpringBeanId"
it
}

it.metadataFilters.add(new EntityAttributesFilter().with {
it.entityAttributesFilterTarget = new EntityAttributesFilterTarget().with {
it.entityAttributesFilterTargetType = ENTITY
it.setValue(["hola"])
return it
it
}
return it
it
})
return it
it
}
repositoryUnderTest.save(mdr)

Expand Down

0 comments on commit a4eaecc

Please sign in to comment.