Skip to content

Commit

Permalink
SHIBUI-836: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Sep 12, 2018
1 parent b0b9502 commit 31f2fc7
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package edu.internet2.tier.shibboleth.admin.ui.service

import edu.internet2.tier.shibboleth.admin.ui.configuration.PlaceholderResolverComponentsConfiguration
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
import spock.lang.Subject

@ContextConfiguration(classes=[PlaceholderResolverComponentsConfiguration])
class TokenPlaceholderValueResolvingServiceTests extends Specification {

@Autowired
@Subject
TokenPlaceholderValueResolvingService placeholderValueResolvingService

def "resolves correctly existing properties from well-formed shibboleth idp style placeholder tokens: %{}"() {
when:
def idpHome = placeholderValueResolvingService.resolveValueFromTokenPlaceholder('%{idp.home}')

then:
idpHome
}


}

0 comments on commit 31f2fc7

Please sign in to comment.