FileDocCategorySizeDatePackage
LogQueryResultImplTest.javaAPI DocGlassfish v2 API4200Fri May 04 22:24:04 BST 2007com.sun.enterprise.management.ext.logging

LogQueryResultImplTest

public final class LogQueryResultImplTest extends TestCase

Fields Summary
private static final String[]
FIELD_NAMES
Constructors Summary
public LogQueryResultImplTest()

	
Methods Summary
public com.sun.appserv.management.ext.logging.LogQueryResultImplcreateDummy()

	
	     
    
    
        final LogQueryEntryImpl entry   = LogQueryEntryImplTest.createDummy();
        
        final LogQueryResultImpl impl   =
            new LogQueryResultImpl( FIELD_NAMES, new LogQueryEntryImpl[] { entry } );
       
       return impl;
    
public voidtestCreate()

        createDummy().toString().hashCode(); // non-null check
        
        assertEquals( createDummy(), createDummy() );
    
public voidtestEquals()

        final LogQueryResult d   = createDummy();
        
        assertEquals( d, d );
        
        final LogQueryResult dCopy  =
            new LogQueryResultImpl( d.getFieldNames(), d.getEntries() );
       
        assertEquals( d, dCopy );
        assertEquals( dCopy, d );
    
public voidtestGetters()

        final LogQueryResultImpl d   = createDummy();
        
        d.getFieldNames();
        d.getEntries();
       // d.getCompositeType();
        //d.asCompositeData();