Package com.sun.appserv.management.util.misc

Examples of com.sun.appserv.management.util.misc.Output


      public synchronized void
  testCreateFile()
  {
      // multiple iterations require that we choose a new file each time
      final String    id      = getID( "testCreateFile" + System.currentTimeMillis() );
      final Output    output  = getOutput( id );
     
      final File  outputFile  = getAMXDebug().getOutputFile( id );
      outputFile.delete();
      assert( ! outputFile.exists() );
     
      output.printDebug( "test" );
      assert( outputFile.exists() );
  }
View Full Code Here


      
      public synchronized void
  testToggleDebug()
  {
      final String    id      = getID( "testToggleDebug" );
      final Output    output  = getOutput( id );
     
      getAMXDebug().setDebug( id, false );
      assert( ! getAMXDebug().getDebug( id ) );
      getAMXDebug().setDebug( id, true );
      assert( getAMXDebug().getDebug( id ) );
View Full Code Here

 
      public synchronized void
  testReset()
  {
      final String    id      = getID( "testReset" );
      final Output    output  = getOutput( id );
     
      getAMXDebug().reset( id );
      final File  outputFile  = getAMXDebug().getOutputFile( id );
      outputFile.delete();
      assert( ! outputFile.exists() );
      output.printDebug( "test" );
      assert( outputFile.exists() );
     
      // make sure we can call it repeatedly
      getAMXDebug().reset( id );
      getAMXDebug().reset( id );
View Full Code Here

 
      public synchronized void
  testPrint()
  {
      final String    id      = getID( "testPrint" );
      final Output    output  = getOutput( id );
     
      output.printDebug( "printDebug" );
      output.printError( "printError" );
      output.println( "println" );
      output.print( "print" );output.print( "..." );output.print( "END" );
  }
View Full Code Here

 
      public synchronized void
  testClose()
  {
      final String    id      = getID( "testClose" );
      final Output    output  = getOutput( id );
      final File      outputFile  = getAMXDebug().getOutputFile( id );
     
      output.println( "hello" );
      assert( outputFile.exists() );
     
      output.close();
      outputFile.delete();
      assert( !outputFile.exists() );
     
      output.println( "hello" );
      assert( outputFile.exists() );
  }
View Full Code Here

 
      public synchronized void
  testToggleDefaultDebug()
  {
      final String    id      = getID( "testToggleDefaultDebug" );
      final Output    output  = getOutput( id );
     
      getAMXDebug().setDefaultDebug( false );
      assert( ! getAMXDebug().getDefaultDebug() );
     
      getAMXDebug().setDefaultDebug( true );
View Full Code Here

 
      public synchronized void
  testSetAll()
  {
      final String    id      = getID( "testSetAll" );
      final Output    output  = getOutput( id );
     
      getAMXDebug().setAll( false );
      getAMXDebug().setAll( false );
      getAMXDebug().setAll( true );
      getAMXDebug().setAll( true );
View Full Code Here

 
      public synchronized void
  testMark()
  {
      final String    id      = getID( "testMark" );
      final Output    output  = getOutput( id );
     
      getAMXDebug().mark( id );
      getAMXDebug().mark( id, null );
      getAMXDebug().mark( id, "marker 1" );
      getAMXDebug().mark( id, "marker 2" );
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.util.misc.Output

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.