File tree Expand file tree Collapse file tree
src/test/java/mujoco/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ dependencies {
2424 implementation group : ' org.bytedeco' , name : ' javacpp' , version : ' 1.5.7'
2525 // https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
2626 implementation group : ' javax.xml.bind' , name : ' jaxb-api' , version : ' 2.3.1'
27-
27+ implementation ' net.codesup.util:jaxb2-rich-contract-plugin:2.1.0'
28+
2829}
2930
3031
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 99import org .junit .Test ;
1010import org .mujoco .xml .MuJoCoXML ;
1111import org .mujoco .xml .Mujoco ;
12+ import org .mujoco .xml .Mujoco .Builder ;
1213
1314public class XMLtest {
1415
1516 @ Test
1617 public void marshal () throws JAXBException {
17- Mujoco m =new Mujoco ();
18- m .setModel (null );
18+
19+
20+ Builder <Void > builder = Mujoco .builder ();
21+ builder .addActuator ();
22+ builder .addActuator ();
23+
24+
25+ Mujoco m =builder .build ();
1926 String marshaled = MuJoCoXML .marshal (m );
2027
2128 System .out .println (marshaled );
You can’t perform that action at this time.
0 commit comments