Ensure native zlib actually loads.

This commit is contained in:
md_5 2016-01-16 13:33:09 +11:00
parent 7907610eeb
commit 255d7fde9a

View File

@ -20,7 +20,11 @@ public class NativeZlibTest
@Test @Test
public void doTest() throws DataFormatException public void doTest() throws DataFormatException
{ {
if ( NativeCode.isSupported() )
{
Assert.assertTrue( "Native code failed to load!", factory.load() );
test( factory.newInstance() ); test( factory.newInstance() );
}
test( new JavaZlib() ); test( new JavaZlib() );
} }