Skip to content

Commit

Permalink
SHIBUI-836: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Sep 12, 2018
1 parent 72eaf87 commit 978a676
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
import spock.lang.Subject

import static edu.internet2.tier.shibboleth.admin.ui.service.TestProps.IDP_HOME
import static edu.internet2.tier.shibboleth.admin.ui.service.TestProps.REFRESH_INTERVAL


/**
* @author Dmitriy Kopylenko
*/
Expand All @@ -26,6 +22,9 @@ class TokenPlaceholderValueResolvingServiceTests extends Specification {
@Autowired
ConfigurableEnvironment environment

static final IDP_HOME = '/tmp/test/idp'
static final REFRESH_INTERVAL = 'PT5M'

def setup() {
def propPairs = ["idp.home=$IDP_HOME".toString(), "refresh.interval=$REFRESH_INTERVAL".toString()]
TestPropertyValues.of(propPairs).applyTo(environment)
Expand All @@ -41,8 +40,3 @@ class TokenPlaceholderValueResolvingServiceTests extends Specification {
refreshInterval == REFRESH_INTERVAL
}
}

class TestProps {
static final IDP_HOME = '/tmp/test/idp'
static final REFRESH_INTERVAL = 'PT5M'
}

0 comments on commit 978a676

Please sign in to comment.