FileDocCategorySizeDatePackage
RunMeLastTest.javaAPI DocGlassfish v2 API4204Fri May 04 22:23:50 BST 2007com.sun.enterprise.management

RunMeLastTest

public final class RunMeLastTest extends com.sun.enterprise.management.AMXTestBase
This test should normally be run before the generic tests so that it can set up default items for many of the config elements so that the generic tests will actually test them. Otherwise, when the generic tests are run, they won't see any instances of many of the AMXConfig MBeans.

If there are errors doing this, disable this test in amxtest.classes, fix the error in the specific place it's occurring, then re-enabled this test.

Fields Summary
Constructors Summary
public RunMeLastTest()

	
Methods Summary
private voidemitCoverage()

	    final CoverageInfoAnalyzer  analyzer = 
	        new CoverageInfoAnalyzer( getDomainRoot() );
	    
	    final String summary    = analyzer.getCoverageSummary();
	    
	    final File  dataFile    = new File ("amx-tests.coverage");
	    final PrintStream  out = new PrintStream( dataFile );
	    out.println( summary );
	    out.close();
    
    	if ( getVerbose() )
        {
            trace( "NOTE: code coverage data save in file " +
                StringUtil.quote( "" + dataFile ) );
        }
	
public voidemitDanglingRefs()

	    new DanglingRefsTest().testAllDangling();
	
public static com.sun.enterprise.management.CapabilitiesgetCapabilities()

	    return getOfflineCapableCapabilities( true );
	
public voidtestLast()

	    emitDanglingRefs();
	    
	    if ( getTestUtil().asAMXDebugStuff( getDomainRoot() ) != null )
	    {
	        emitCoverage();
	    }