1 17 package org.apache.geronimo.common; 18 19 import java.net.URL ; 20 import java.net.URLConnection ; 21 22 import junit.framework.TestCase; 23 24 27 public class GeronimoEnvironmentTest extends TestCase { 28 29 public void testCaching() throws Exception { 30 GeronimoEnvironment.init(); 31 URL url = new URL ("jar:file:testFile.jar!/test"); 32 URLConnection conn = url.openConnection(); 33 assertFalse(conn.getUseCaches()); 34 assertFalse(conn.getDefaultUseCaches()); 35 } 36 } 37 | Popular Tags |