Skip to content

Commit

Permalink
[NOISSUE]
Browse files Browse the repository at this point in the history
more test config
  • Loading branch information
jj committed Aug 29, 2018
1 parent 234b35a commit d720837
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import org.springframework.test.annotation.DirtiesContext
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification

import java.nio.file.Files

/**
* @author Bill Smith (wsmith@unicon.net)
*/
Expand Down Expand Up @@ -59,17 +61,22 @@ class EntityDescriptorTest extends Specification {

def "entity descriptors properly marshall to xml"() {
given:
def tempDir = Files.createTempDirectory('test')
((OpenSamlChainingMetadataResolver)metadataResolver).resolvers.remove(0)
((OpenSamlChainingMetadataResolver)metadataResolver).resolvers.add(
new OpenSamlFileBackedHTTPMetadataResolver(
openSamlObjects.parserPool,
indexWriterService.getIndexWriter('testme'),
new FileBackedHttpMetadataResolver(
metadataURL: 'https://idp.unicon.net/idp/shibboleth',
backingFile: '/x.xml',
backingFile: "${tempDir.toString()}/test.xml",
reloadableMetadataResolverAttributes: new ReloadableMetadataResolverAttributes(),
httpMetadataResolverAttributes: new HttpMetadataResolverAttributes()
)
)
).with {
it.initialize()
it
}
)

when:
Expand Down

0 comments on commit d720837

Please sign in to comment.