public void ___testGetInuktitutFonts() { NRC_HTMLDocumentByCobra doc = null; try { doc = new NRC_HTMLDocumentByCobra("http://localhost/tests/testfonts.html"); String[] fontNames = doc.getInuktitutFonts(); doc.close(); Arrays.sort(fontNames); String[] namesExpected = new String[] {"nunacom", "Naamajut", "PROSYL"}; Arrays.sort(namesExpected); assertTrue( "Les noms des polices inuktitut retournés pour testfonts.html ne sont pas corrects", Arrays.hashCode(fontNames) == Arrays.hashCode(namesExpected)); } catch (Exception e) { e.printStackTrace(); if (doc != null) doc.close(); fail(); } }