Skip to content

Commit efdffff

Browse files
committed
updating the test
1 parent 7520e08 commit efdffff

3 files changed

Lines changed: 11 additions & 114 deletions

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

build.xml

Lines changed: 0 additions & 111 deletions
This file was deleted.

src/test/java/mujoco/java/XMLtest.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,20 @@
99
import org.junit.Test;
1010
import org.mujoco.xml.MuJoCoXML;
1111
import org.mujoco.xml.Mujoco;
12+
import org.mujoco.xml.Mujoco.Builder;
1213

1314
public 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);

0 commit comments

Comments
 (0)