------------------------------------------------------------------------------- Test set: geniuswebtranslator.TranslatorTest ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.926 sec <<< FAILURE! translate(geniuswebtranslator.TranslatorTest) Time elapsed: 0.007 sec <<< ERROR! java.lang.IllegalArgumentException: Failed to translate geniusweb/issuevalue/BidTest.java at tudelft.utilities.j2p.PyModule.fromJavaFile(PyModule.java:86) at tudelft.utilities.j2p.PyProgram.fromDirectory(PyProgram.java:95) at geniuswebtranslator.TranslatorTest.(TranslatorTest.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217) at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: tudelft.utilities.j2p.t.TranslationException: Node of type not (yet) handled: class com.github.javaparser.ast.body.InitializerDeclaration at static { Map issuevalues = new HashMap<>(); issuevalues.put(ISSUE1, new DiscreteValue("b")); issuevalues.put(ISSUE2, new NumberValue(BigDecimal.ONE)); issuevalues.put("issue3", new NumberValue(new BigDecimal("9012345678901234567.89"))); bid = new Bid(issuevalues); // different order but that shouldn't matter Map issuevalues1 = new HashMap<>(); issuevalues1.put("issue3", new NumberValue(new BigDecimal("9012345678901234567.89"))); issuevalues1.put(ISSUE2, new NumberValue(BigDecimal.ONE)); issuevalues1.put(ISSUE1, new DiscreteValue("b")); bid1 = new Bid(issuevalues1); Map issuevaluesb = new HashMap<>(); issuevaluesb.put(ISSUE1, new DiscreteValue("b")); issuevaluesb.put(ISSUE2, new NumberValue(BigDecimal.ONE)); bidb = new Bid(issuevaluesb); // bidc and bidd have values swapped, so different issuevalues. Map issuevaluesc = new HashMap<>(); issuevaluesc.put(ISSUE1, VALUE1); issuevaluesc.put(ISSUE2, VALUE2); bidc = new Bid(issuevaluesc); Map issuevaluesd = new HashMap<>(); issuevaluesd.put(ISSUE1, VALUE3); bidd = new Bid(issuevaluesd); issuevaluesd.put(ISSUE1, VALUE3b); bidd2 = new Bid(issuevaluesd); } (line 31,col 2)-(line 64,col 2) at tudelft.utilities.j2p.t.Translator.translateAll(Translator.java:193) at tudelft.utilities.j2p.t.Translator.translate(Translator.java:618) at tudelft.utilities.j2p.t.Translator.translateAll(Translator.java:151) at tudelft.utilities.j2p.t.Translator.translate(Translator.java:282) at tudelft.utilities.j2p.PyModule.fromJavaFile(PyModule.java:83) ... 30 more