-
Notifications
You must be signed in to change notification settings - Fork 290
Description
hi , I am using java 1.6 SDK, node 10.3.3.
npm install java works well.
Then I tried to run the packaged tests, There are two packaged test folders -- test and test8
Test8 contains lambda, so it will fail in my environment as I have SDK 1.6.
I modify the package.json to invoke the test folder. (instead of test8 folder).
Then I try the npm test, this fails with the following assertions:
java-staticField-test
✖ Java - Static Field - getStaticFieldValue int
AssertionError: 200 == 42
at Object.equal (/home/o/testJava/node_modules/java/node_modules/nodeunit/lib/types.js:83:39)
✔ Java - Static Field - setStaticFieldValue int
✖ Java - Static Field - getStaticFieldValue double
AssertionError: 112 == 42.5
at Object.equal (/home/o/testJava/node_modules/java/node_modules/nodeunit/lib/types.js:83:39)
javaObject-test
✖ Java Object - field
TypeError: Cannot read property 'nonstaticInt' of undefined
at Object.exports.Java Object.nodeunit.testCase.field (/home/o/testJava/node_modules/java/test/javaOb ject-test.js:14:28)
at Object. (/home//testJava/node_modules/java/node_modules/nodeunit/lib/core.js:236:16)
at Object. (/home/o/testJava/node_modules/java/node_modules/nodeunit/lib/core.js:236:16)
at /home/ivyho/testJava/node_modules/java/node_modules/nodeunit/lib/core.js:236:16
at Object.exports.runTest (/home/io/testJava/node_modules/java/node_modules/nodeunit/lib/core.js:70:9)
at /home/o/testJava/node_modules/java/node_modules/nodeunit/lib/core.js:118:25
at /home/o/testJava/node_modules/java/node_modules/nodeunit/deps/async.js:513:13
at iterate (/home/o/testJava/node_modules/java/node_modules/nodeunit/deps/async.js:123:13)
at async.forEachSeries (/home/io/testJava/node_modules/java/node_modules/nodeunit/deps/async.js:139:9)
at _concat (/home/o/testJava/node_modules/java/node_modules/nodeunit/deps/async.js:512:9)
utils-types-test
✖ Utils - Types - Array of Objects
AssertionError: [{"nonstaticInt":42},{"nonstaticInt":42},{"nonstaticInt":42}] == null
at Object.equal (/home/o/testJava/node_modules/java/node_modules/nodeunit/lib/types.js:83:39)
*** ERROR: Lost reference to the dynamic proxy. You must maintain a reference in javascript land using ref() and unref(). (0x1b95bf0) ***
✔ Utils - Types - Static Method Overload
✔ Utils - Types - Method Overload
FAILURES: 6/369 assertions failed (1029ms)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
Are these expected failures? Thank you in advance.