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

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() {
dataClass = newClass("interop.Data")
return dataClass.new()
return dataClass.`new`()
}
def assertObjectArray(obj) {

View File

@ -6,7 +6,7 @@ def testTryOnly() {
}
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)
}