I worked with fitnesse a long time ago, and I am trying to use it again on Windows 11 to test some java code. But I have encountered the following problems:
I have create a fixture called SlimVarDbl, and I can see the SlimVarDbl.class file in the folder C:\Users\Cheng\Documents\Proj\VarianceArithemtic\Java\bin\fitnesse. I am sure that I can call new SlimVarDbl() to construct an instance.
So I created a test page as the following:
!define TEST_SYSTEM {slim}
!path C:\Users\Cheng\Documents\Proj\VarianceArithemtic\Java\bin\fitnesse\
!|Slim Var Dbl |
|value tolerance|dev tolerance|comment|
|3E-15 |3E-15 |52-bit |
But when I try to run the test, the error is:
Could not invoke constructor for SlimVarDbl[0]
As if the fitnesse cannot recognize the class file.
The version for fitnesse-standalone.jar is v20230503. My current java version is 1.8.0_361.
If I upgrade my java version to jdk 20, I got the following error when trying to test the page:
Test system terminated with exception [fitnesse.testsystems.TestExecutionException: java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release]
Is this a java version issue or something else?