public static int test(URL documentBase, URL codeBase) { int error = 0; MLetContent mc = new MLetContent( documentBase, new HashMap<String,String>(), new ArrayList<String>(), new ArrayList<String>()); System.out.println("\nACTUAL DOCUMENT BASE = " + mc.getDocumentBase()); System.out.println("EXPECTED DOCUMENT BASE = " + documentBase); if (!documentBase.equals(mc.getDocumentBase())) { System.out.println("ERROR: Wrong document base"); error++; }; System.out.println("ACTUAL CODEBASE = " + mc.getCodeBase()); System.out.println("EXPECTED CODEBASE = " + codeBase); if (!codeBase.equals(mc.getCodeBase())) { System.out.println("ERROR: Wrong code base"); error++; }; return error; }