Skip to content

Commit

Permalink
SHIBUI-2270
Browse files Browse the repository at this point in the history
fixed broken test
  • Loading branch information
chasegawa committed Sep 2, 2022
1 parent 7eead4a commit be32e86
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 be32e86

Please sign in to comment.