MCPcopy Create free account
hub / github.com/diffplug/matfilerw / testJavaObject

Method testJavaObject

src/test/java/com/jmatio/io/MatIOTest.java:1160–1169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1158 }
1159
1160 @Test
1161 public void testJavaObject() throws Exception {
1162 MatFileReader mfr = new MatFileReader();
1163 Map<String, MLArray> content = mfr.read(getTestFile("java.mat"));
1164
1165 MLJavaObject mlJavaObject = (MLJavaObject) content.get("f");
1166
1167 assertEquals("java.io.File", mlJavaObject.getClassName());
1168 // assertEquals( new File("c:/temp"), mlJavaObject.getObject() );
1169 }
1170
1171 @Test
1172 public void testObject() throws Exception {

Callers

nothing calls this directly

Calls 4

readMethod · 0.95
getTestFileMethod · 0.95
getClassNameMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected