FileDocCategorySizeDatePackage
DeploymentSourceTest.javaAPI DocGlassfish v2 API3447Fri May 04 22:24:04 BST 2007com.sun.enterprise.management.deploy

DeploymentSourceTest

public final class DeploymentSourceTest extends TestCase

Fields Summary
Constructors Summary
public DeploymentSourceTest()

	
Methods Summary
private com.sun.appserv.management.deploy.DeploymentSourceImplcreateDeploymentSource()

		final File	archiveFile	= File.createTempFile( "junk", "junk" );
		archiveFile.deleteOnExit();
		
		final String[]	entriesAdded	= new String[]	{ "hello", "there" };
		final String[]	entriesRemoved	= new String[0];
		final String[]	entriesDeleted	= new String[0];
		final DeploymentSourceImpl	ds	=
			new DeploymentSourceImpl( archiveFile.toString(),
				true,
				entriesAdded, entriesRemoved, entriesDeleted, null );
		
		return( ds );
	
public voidtestCreateDeploymentSource()

		createDeploymentSource();
	
public voidtestDeploymentSourceFromMap()

		final DeploymentSourceImpl	ds	= createDeploymentSource();
		final Map<String,Serializable>	data	= ds.asMap();
		
		final DeploymentSourceImpl ds2	= new DeploymentSourceImpl( data );
		
		assert( ds2.equals( ds ) );
		assert( ds.equals( ds2 ) );