diff --git a/build.gradle.kts b/build.gradle.kts index 03d99ac..2e39c2f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -54,7 +54,7 @@ object Config { const val COMMONS_LANG3 = "3.14.0" const val COMMONS_TEXT = "1.11.0" const val JACKSON = "2.16.1" - const val JAVET = "3.0.3" + const val JAVET = "3.0.4" const val JUNIT = "5.10.1" const val SLF4J = "2.0.11" } diff --git a/scripts/node/test/test_transform.js b/scripts/node/test/test_transform.js index c1803bf..fc1e237 100644 --- a/scripts/node/test/test_transform.js +++ b/scripts/node/test/test_transform.js @@ -424,14 +424,14 @@ function testMethod() { methodNames.push(methodName); if (methodName == 'names') { const modifiers = node.modifiers; - assert.isEmpty(modifiers.toString()); - assert.isEmpty(modifiers.annotations); - assert.isEmpty(modifiers.flags); - assert.isEmpty(node.parameters); + assert.isEmpty(modifiers.toString(), 'modifiers.toString() should be empty'); + assert.isEmpty(modifiers.annotations, 'modifiers.annotations should be empty'); + assert.isEmpty(modifiers.flags, 'modifiers.flags should be empty'); + assert.isEmpty(node.parameters, 'node.parameters should be empty'); assert.isNull(node.receiverParameter); - assert.isEmpty(node.returnType); - assert.isEmpty(node.throwExpressions); - assert.isEmpty(node.typeParameters); + assert.equal('String[]', node.returnType.toString(), 'node.returnType should be String[]'); + assert.isEmpty(node.throwExpressions, 'node.throwExpressions should be empty'); + assert.isEmpty(node.typeParameters, 'node.typeParameters should be empty'); assert.equal('com.caoccao.jaspiler.trees.JTNewArray', node.defaultValue.className); assert.equal('{"A", "B"}', node.defaultValue.toString()); node.defaultValue = jaspiler.createFieldAccess('ABC');