Skip to content

Commit

Permalink
Merge branch 'feature/SHIBUI-2270-property-list' of bitbucket.org:uni…
Browse files Browse the repository at this point in the history
…con/shib-idp-ui into feature/SHIBUI-2270-property-list
  • Loading branch information
rmathis committed Sep 2, 2022
2 parents 31ef5a3 + be32e86 commit 261b369
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ class ShibConfigurationServiceTests extends AbstractBaseDataJpaTest {
* We use the object mapper to transform to json and then back to new objects so that what we send to the service is never
* the actual hibernate entity from the db, but an unattached copy (ie what the service would be getting as input in reality)
*/
def ObjectMapper objectMapper = new ObjectMapper();
ObjectMapper objectMapper = new ObjectMapper()

@Transactional
def setup() {
ShibPropertySetting prop1 = new ShibPropertySetting().with { it ->
it.propertyName = 'foo'
it.configFile = 'defaults.properties'
it.propertyValue = 'bar'
it.displayType = 'string'

it
}
Expand All @@ -46,6 +47,7 @@ class ShibConfigurationServiceTests extends AbstractBaseDataJpaTest {
it.propertyName = 'foo2'
it.configFile = 'defaults.properties'
it.propertyValue = 'bar2'
it.displayType = 'string'

it
}
Expand All @@ -68,8 +70,8 @@ class ShibConfigurationServiceTests extends AbstractBaseDataJpaTest {

def "check delete"() {
given:
def long setCount = propertySetRepo.count()
def long propsCount = propertySettingRepo.count()
long setCount = propertySetRepo.count()
long propsCount = propertySettingRepo.count()

expect:
setCount == 1
Expand Down Expand Up @@ -120,6 +122,7 @@ class ShibConfigurationServiceTests extends AbstractBaseDataJpaTest {
it.propertyName = 'food.for.thought'
it.configFile = 'defaults.properties'
it.propertyValue = 'true'
it.displayType = 'boolean'
it
}
Expand Down

0 comments on commit 261b369

Please sign in to comment.