Methods Summary |
---|
private com.sun.appserv.management.deploy.DeploymentStatusImpl | createDeploymentStatus(java.lang.Object deployID)
final DeploymentStatusImpl ds =
new DeploymentStatusImpl(
0,
"success",
"description",
null );
final Throwable t = new Exception( "test", new Throwable( "test2" ) );
ds.setStageThrowable( t );
assert( ds.getStageThrowable() == t );
return( ds );
|
public void | testCreateDeploymentStatus()
createDeploymentStatus( "dummy" );
|
public void | testCreateDeploymentStatusFromDeploymentStatus()
final DeploymentStatusFoo foo = new DeploymentStatusFoo();
final DeploymentStatusImpl ds = new DeploymentStatusImpl( foo );
assert( foo.equals( ds ) );
assert( ds.equals( foo ) );
|
public void | testDeploymentStatusAsMap()
final DeploymentStatusImpl ds = createDeploymentStatus( "dummy" );
final Map<String,Serializable> m = ds.asMap();
|
public void | testDeploymentStatusFromMap()
final DeploymentStatusImpl ds = createDeploymentStatus( "dummy" );
final DeploymentStatusFoo stage1 = new DeploymentStatusFoo();
ds.addSubStage( stage1 );
final Map<String,Serializable> data = ds.asMap();
final DeploymentStatusImpl ds2 = new DeploymentStatusImpl( data );
assert( ds2.equals( ds ) );
|
public void | testDeploymentStatusSubStages()
final DeploymentStatusFoo stage1 = new DeploymentStatusFoo();
final DeploymentStatusFoo stage2 = new DeploymentStatusFoo();
final DeploymentStatusFoo stage1_1 = new DeploymentStatusFoo();
final DeploymentStatusFoo stage2_1 = new DeploymentStatusFoo();
final DeploymentStatusImpl root = createDeploymentStatus( "root" );
assert( stage1.getParent() == null );
root.addSubStage( stage1 );
assert( stage1.getParent() == root );
root.addSubStage( stage2 );
assert( stage2.getParent() == root );
stage1.addSubStage( stage1_1 );
assert( stage1_1.getParent() == stage1 );
stage2.addSubStage( stage2_1 );
assert( stage2_1.getParent() == stage2 );
final List<DeploymentStatus> subStages = root.getSubStagesList();
assert( subStages.get(0) == stage1 );
assert( subStages.get(1) == stage2 );
|
public void | testIllegalThrowableDetected()
final DeploymentStatusImpl root = createDeploymentStatus( "root" );
final Throwable t = new MyException( new MyException() );
root.setStageThrowable( t );
assert( root.getStageThrowable() != t );
|