Package com.sun.appserv.management.deploy

Examples of com.sun.appserv.management.deploy.DeploymentStatusImpl


      DeploymentStatus.DEPLOYMENT_STATUS_CLASS_NAME);
     
    m.put( DeploymentStatus.STAGE_STATUS_KEY, new Integer( 0 ) );
    m.put( DeploymentStatus.STAGE_STATUS_MESSAGE_KEY, "stubbed dummy" );
   
      return new DeploymentStatusImpl( m );
  }          
View Full Code Here


 
 
    private DeploymentStatusImpl
  createDeploymentStatus( final 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 );
  }
View Full Code Here

  }
 
    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 ) );
  }
View Full Code Here

 
 
    public void
  testDeploymentStatusAsMap()
  {
    final DeploymentStatusImpl  ds  = createDeploymentStatus( "dummy" );
   
    final Map<String,Serializable>  m  = ds.asMap();
  }
View Full Code Here

 
    public void
  testCreateDeploymentStatusFromDeploymentStatus()
  {
    final DeploymentStatusFoo  foo  = new DeploymentStatusFoo();
    final DeploymentStatusImpl  ds  = new DeploymentStatusImpl( foo );
   
    assert( foo.equals( ds ) );
    assert( ds.equals( foo ) );
  }
View Full Code Here

    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 );
  }
View Full Code Here

  }
 
    public void
  testIllegalThrowableDetected()
  {
    final DeploymentStatusImpl  root  = createDeploymentStatus( "root" );
   
    final Throwable  t  = new MyException( new MyException() );
    root.setStageThrowable( t );
    assert( root.getStageThrowable() != t );
  }
View Full Code Here

    }
     
        public boolean
      equals( Object rhs )
      {
        return( new DeploymentStatusImpl( this ).equals( rhs ) );
      }
View Full Code Here

      }
     
        public String
      toString()
      {
        return( new DeploymentStatusImpl( this.asMap() ).toString() );
      }
View Full Code Here

       
      callback.deploymentProgress( progress );
      Thread.sleep( 1 );
    }
   
    final DeploymentStatusImpl  deploymentStatus  =
      new DeploymentStatusImpl(
      0,
      "completed",
      "description",
      null );
   
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.deploy.DeploymentStatusImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.