source: java2python/geniuswebtranslator/target/surefire-reports/TEST-geniuswebtranslator.TranslatorTest.xml@ 642

Last change on this file since 642 was 595, checked in by wouter, 14 months ago

#197 working on translating @Test annotations.
added (expected-..) support.
Fixed poms that suddenly require https and /maven2

File size: 10.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8" ?>
2<testsuite tests="1" failures="0" name="geniuswebtranslator.TranslatorTest" time="0.007" errors="1" skipped="0">
3 <properties>
4 <property name="java.runtime.name" value="OpenJDK Runtime Environment"/>
5 <property name="sun.boot.library.path" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64"/>
6 <property name="java.vm.version" value="25.292-b10"/>
7 <property name="java.vm.vendor" value="Private Build"/>
8 <property name="maven.multiModuleProjectDirectory" value="/documents/Utilities/ROOT UTILITIES/java2python/geniuswebtranslator"/>
9 <property name="java.vendor.url" value="http://java.oracle.com/"/>
10 <property name="path.separator" value=":"/>
11 <property name="guice.disable.misplaced.annotation.check" value="true"/>
12 <property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/>
13 <property name="file.encoding.pkg" value="sun.io"/>
14 <property name="user.country" value="US"/>
15 <property name="sun.java.launcher" value="SUN_STANDARD"/>
16 <property name="sun.os.patch.level" value="unknown"/>
17 <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
18 <property name="user.dir" value="/documents/Utilities/ROOT UTILITIES/java2python/geniuswebtranslator"/>
19 <property name="java.runtime.version" value="1.8.0_292-8u292-b10-0ubuntu1~20.04-b10"/>
20 <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
21 <property name="java.endorsed.dirs" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed"/>
22 <property name="os.arch" value="amd64"/>
23 <property name="java.io.tmpdir" value="/tmp"/>
24 <property name="line.separator" value="
25"/>
26 <property name="java.vm.specification.vendor" value="Oracle Corporation"/>
27 <property name="os.name" value="Linux"/>
28 <property name="classworlds.conf" value="/usr/share/maven/bin/m2.conf"/>
29 <property name="sun.jnu.encoding" value="UTF-8"/>
30 <property name="java.library.path" value="/opt/ThirdParty-10/platforms/linux64Gcc/gperftools-svn/lib:/opt/openfoam10/platforms/linux64GccDPInt32Opt/lib/paraview-5.10:/opt/paraviewopenfoam510/lib:/opt/openfoam10/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-10/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/wouter/OpenFOAM/wouter-10/platforms/linux64GccDPInt32Opt/lib:/opt/site/10/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam10/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-10/platforms/linux64GccDPInt32/lib:/opt/openfoam10/platforms/linux64GccDPInt32Opt/lib/dummy:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib"/>
31 <property name="maven.conf" value="/usr/share/maven/conf"/>
32 <property name="java.specification.name" value="Java Platform API Specification"/>
33 <property name="java.class.version" value="52.0"/>
34 <property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
35 <property name="os.version" value="5.13.0-1020-oem"/>
36 <property name="library.jansi.path" value="/usr/share/maven/lib/jansi-native"/>
37 <property name="user.home" value="/home/wouter"/>
38 <property name="user.timezone" value="Europe/Amsterdam"/>
39 <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
40 <property name="java.specification.version" value="1.8"/>
41 <property name="file.encoding" value="UTF-8"/>
42 <property name="user.name" value="wouter"/>
43 <property name="java.class.path" value="/usr/share/maven/boot/plexus-classworlds-2.x.jar"/>
44 <property name="java.vm.specification.version" value="1.8"/>
45 <property name="sun.arch.data.model" value="64"/>
46 <property name="java.home" value="/usr/lib/jvm/java-8-openjdk-amd64/jre"/>
47 <property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher clean package"/>
48 <property name="java.specification.vendor" value="Oracle Corporation"/>
49 <property name="user.language" value="en"/>
50 <property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
51 <property name="java.vm.info" value="mixed mode"/>
52 <property name="java.version" value="1.8.0_292"/>
53 <property name="java.ext.dirs" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext"/>
54 <property name="securerandom.source" value="file:/dev/./urandom"/>
55 <property name="sun.boot.class.path" value="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes"/>
56 <property name="java.vendor" value="Private Build"/>
57 <property name="maven.home" value="/usr/share/maven"/>
58 <property name="file.separator" value="/"/>
59 <property name="java.vendor.url.bug" value="http://bugreport.sun.com/bugreport/"/>
60 <property name="sun.cpu.endian" value="little"/>
61 <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
62 <property name="sun.desktop" value="gnome"/>
63 <property name="sun.cpu.isalist" value=""/>
64 </properties>
65 <testcase classname="geniuswebtranslator.TranslatorTest" name="translate" time="0.007">
66 <error message="Failed to translate geniusweb/issuevalue/BidTest.java" type="java.lang.IllegalArgumentException">java.lang.IllegalArgumentException: Failed to translate geniusweb/issuevalue/BidTest.java
67 at tudelft.utilities.j2p.PyModule.fromJavaFile(PyModule.java:86)
68 at tudelft.utilities.j2p.PyProgram.fromDirectory(PyProgram.java:95)
69 at geniuswebtranslator.TranslatorTest.&lt;init&gt;(TranslatorTest.java:17)
70 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
71 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
72 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
73 at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
74 at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
75 at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
76 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
77 at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
78 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
79 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
80 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
81 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
82 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
83 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
84 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
85 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
86 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
87 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
88 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
89 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
90 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
91 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
92 at java.lang.reflect.Method.invoke(Method.java:498)
93 at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
94 at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
95 at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
96 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
97 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
98Caused by: tudelft.utilities.j2p.t.TranslationException: Node of type not (yet) handled: class com.github.javaparser.ast.body.InitializerDeclaration at static {
99 Map&lt;String, Value&gt; issuevalues = new HashMap&lt;&gt;();
100 issuevalues.put(ISSUE1, new DiscreteValue(&quot;b&quot;));
101 issuevalues.put(ISSUE2, new NumberValue(BigDecimal.ONE));
102 issuevalues.put(&quot;issue3&quot;, new NumberValue(new BigDecimal(&quot;9012345678901234567.89&quot;)));
103 bid = new Bid(issuevalues);
104 // different order but that shouldn&apos;t matter
105 Map&lt;String, Value&gt; issuevalues1 = new HashMap&lt;&gt;();
106 issuevalues1.put(&quot;issue3&quot;, new NumberValue(new BigDecimal(&quot;9012345678901234567.89&quot;)));
107 issuevalues1.put(ISSUE2, new NumberValue(BigDecimal.ONE));
108 issuevalues1.put(ISSUE1, new DiscreteValue(&quot;b&quot;));
109 bid1 = new Bid(issuevalues1);
110 Map&lt;String, Value&gt; issuevaluesb = new HashMap&lt;&gt;();
111 issuevaluesb.put(ISSUE1, new DiscreteValue(&quot;b&quot;));
112 issuevaluesb.put(ISSUE2, new NumberValue(BigDecimal.ONE));
113 bidb = new Bid(issuevaluesb);
114 // bidc and bidd have values swapped, so different issuevalues.
115 Map&lt;String, Value&gt; issuevaluesc = new HashMap&lt;&gt;();
116 issuevaluesc.put(ISSUE1, VALUE1);
117 issuevaluesc.put(ISSUE2, VALUE2);
118 bidc = new Bid(issuevaluesc);
119 Map&lt;String, Value&gt; issuevaluesd = new HashMap&lt;&gt;();
120 issuevaluesd.put(ISSUE1, VALUE3);
121 bidd = new Bid(issuevaluesd);
122 issuevaluesd.put(ISSUE1, VALUE3b);
123 bidd2 = new Bid(issuevaluesd);
124} (line 31,col 2)-(line 64,col 2)
125 at tudelft.utilities.j2p.t.Translator.translateAll(Translator.java:193)
126 at tudelft.utilities.j2p.t.Translator.translate(Translator.java:618)
127 at tudelft.utilities.j2p.t.Translator.translateAll(Translator.java:151)
128 at tudelft.utilities.j2p.t.Translator.translate(Translator.java:282)
129 at tudelft.utilities.j2p.PyModule.fromJavaFile(PyModule.java:83)
130 ... 30 more
131</error>
132 <system-out>WARNING NOT YET IMPLEMENTED. found multiple comments [/**
133 * Deserializes a Value. Special deserializer is needed because by default
134 * jackson deserializes numbers as double and thus cause rounding errors.
135 */
136, /*#PY
137 * from pyson.Deserializer import Deserializer
138 * from decimal import Decimal
139 *
140 * class ValueDeserializer (Deserializer):
141 * def deserialize(self, data:object, clas: object) -&gt; &apos;Value&apos;:
142 * if isinstance(data, float) or isinstance(data, int):
143 * return Value(data)
144 * if isinstance(data,str):
145 * return Value(data)
146 * raise ValueError(&quot;Expected number or double quoted string but found &quot; + str(data)
147 * + &quot; of type &quot; + str(type(data)))
148 */
149]. Using only the last one.
150</system-out>
151 </testcase>
152</testsuite>
Note: See TracBrowser for help on using the repository browser.