Skip to content

Commit

Permalink
Fixes test because NullObject's constructor is private now
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jul 18, 2023
1 parent 859d8d3 commit 97168a6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.grails.web.converters
import spock.lang.Specification

import org.codehaus.groovy.runtime.NullObject
import org.grails.web.converters.ConverterUtil;

class ConverterUtilSpec extends Specification {

Expand All @@ -25,7 +24,7 @@ class ConverterUtilSpec extends Specification {

when:

def result = converterUtil.invokeOriginalAsTypeMethod(new NullObject(), Long)
def result = converterUtil.invokeOriginalAsTypeMethod(NullObject.getNullObject(), Long)

then:
result == null
Expand Down

0 comments on commit 97168a6

Please sign in to comment.