@Ignore @Test public void b6460701_b6431651() throws Exception {
  URL[] urls=new URL[]{new URL("http://foobar.jar")};
  MyURLClassLoader ucl=new MyURLClassLoader(urls);
  ucl.addURL(null);
  ucl.addURL(new URL("http://foobar.jar"));
  ucl.addURL(null);
  ucl.addURL(new URL("http://foobar.jar"));
  ucl.addURL(null);
  ucl.addURL(new URL("http://foobar.jar"));
  urls=ucl.getURLs();
  if (urls.length != 1)   throw new RuntimeException("Failed: There should only be 1 url in the list of search URLs");
  URL url;
  for (int i=0; i < urls.length; i++) {
    url=urls[i];
    if (url == null || !url.equals(new URL("http://foobar.jar")))     throw new RuntimeException("Failed: The url should not be null and should be http://foobar.jar");
  }
}

@ Ignore @ Test public void b6460701_b6431651 ( ) throws Exception { URL [ ] urls = new URL [ ] { new URL ( "http://foobar.jar" ) } ; MyURLClassLoader ucl = new MyURLClassLoader ( urls ) ; ucl . addURL ( null ) ; ucl . addURL ( new URL ( "http://foobar.jar" ) ) ; ucl . addURL ( null ) ; ucl . addURL ( new URL ( "http://foobar.jar" ) ) ; ucl . addURL ( null ) ; ucl . addURL ( new URL ( "http://foobar.jar" ) ) ; urls = ucl . getURLs ( ) ; if ( urls . length != 1 ) throw new RuntimeException ( "Failed: There should only be 1 url in the list of search URLs" ) ; URL url ; for ( int i = 0 ; i < urls . length ; i ++ ) { url = urls [ i ] ; if ( url == null || ! url . equals ( new URL ( "http://foobar.jar" ) ) ) throw new RuntimeException ( "Failed: The url should not be null and should be http://foobar.jar" ) ; } }
6460701 : urlclassloader : addurl ri behavior inconsistent with a spec in case duplicate urls 6431651 : no description for addurl ( url url ) method of urlclassloader class in case null url
