Исправлены тесты

This commit is contained in:
Victor 2019-09-24 23:07:51 +03:00
parent c82114d34a
commit 7711170601
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ def testInvokeMethodSameName() {
def createObject() { def createObject() {
dataClass = newClass("interop.Data") dataClass = newClass("interop.Data")
return dataClass.new() return dataClass.`new`()
} }
def assertObjectArray(obj) { def assertObjectArray(obj) {

View File

@ -6,7 +6,7 @@ def testTryOnly() {
} }
def testCatchFunction() { def testCatchFunction() {
actual = try(def() = parseInt("oops"), def(class, cause) = class) actual = try(def() = parseInt("oops"), def(clazz, cause) = clazz)
assertEquals("java.lang.NumberFormatException", actual) assertEquals("java.lang.NumberFormatException", actual)
} }