Code example for JarEntry

Methods: getName

0
	/** 
	 * Given a {@link JarFileUrlConnection} when getEntryName is called then the implementation will delegate. 
	 * @throws Exception 
	 */ 
	public void testgetEntryName() throws Exception { 
		when(jarEntry.getName()).thenReturn("entryname");
		assertEquals("entryname", connection.getEntryName());
	} 
 
	/** 
	 * Given a {@link JarFileUrlConnection} when getManifest is called then the implementation will delegate. 
	 * @throws Exception 
	 */ 
	public void testGetManifest() throws Exception { 
		Manifest manifest = new Manifest();
		when(jarFile.getManifest()).thenReturn(manifest);
		assertSame(manifest, connection.getManifest());
 
	} 
 
	/**