public void ___testGetBase() { NRC_HTMLDocumentByCobra doc = null; try { doc = new NRC_HTMLDocumentByCobra("http://localhost/tests/testTranslit.html"); String base = doc.getBaseURI(); doc.close(); assertEquals( "Le nom de la base retourné ne correspond pas au nom escompté", "http://localhost/tests/testTranslit.html", base); } catch (Exception e) { e.printStackTrace(); if (doc != null) doc.close(); fail(); } }