mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-04-01 09:24:51 +02:00
java: fixes cross-language test case
This commit is contained in:
parent
fdfabc9f88
commit
d7469e4694
@ -21,9 +21,6 @@ public class TestCases {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCases() throws Exception {
|
public void testCases() throws Exception {
|
||||||
System.out.println( new File(".").getAbsoluteFile().getParent() );
|
|
||||||
|
|
||||||
|
|
||||||
Unpacker pac = new Unpacker();
|
Unpacker pac = new Unpacker();
|
||||||
Unpacker pac_compact = new Unpacker();
|
Unpacker pac_compact = new Unpacker();
|
||||||
|
|
||||||
@ -34,13 +31,10 @@ public class TestCases {
|
|||||||
while(pac.next(result)) {
|
while(pac.next(result)) {
|
||||||
UnpackResult result_compact = new UnpackResult();
|
UnpackResult result_compact = new UnpackResult();
|
||||||
assertTrue( pac_compact.next(result_compact) );
|
assertTrue( pac_compact.next(result_compact) );
|
||||||
System.out.println("obj: "+result_compact.getData());
|
|
||||||
if(!result.getData().equals(result_compact.getData())) {
|
|
||||||
System.out.println("compact: "+result_compact.getData().asString());
|
|
||||||
System.out.println("data : "+result.getData().asString());
|
|
||||||
}
|
|
||||||
assertTrue( result.getData().equals(result_compact.getData()) );
|
assertTrue( result.getData().equals(result_compact.getData()) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assertFalse( pac_compact.next(result) );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user