Package org.apache.avalon.excalibur.testcase

Examples of org.apache.avalon.excalibur.testcase.CascadingAssertionFailedError


            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/A" );
            tc.test( getLogEnabledLogger(), "Test log entry A" );
        }
        catch( Exception e )
        {
            throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
        }
        finally
        {
            assertTrue( "The test component could not be retrieved.", null != tc );
            release( tc );
        }

        try
        {
            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/B" );
            tc.test( getLogEnabledLogger(), "Test log entry B" );
        }
        catch( Exception e )
        {
            throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
        }
        finally
        {
            assertTrue( "The test component could not be retrieved.", null != tc );
            release( tc );
        }

        try
        {
            tc = (LogKitTestComponent)lookup( LogKitTestComponent.ROLE + "/C" );
            tc.test( getLogEnabledLogger(), "Test log entry C" );
        }
        catch( Exception e )
        {
            throw new CascadingAssertionFailedError( "There was an error in the LogKitManagement test", e );
        }
        finally
        {
            assertTrue( "The test component could not be retrieved.", null != tc );
            release( tc );
View Full Code Here


            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the OverAllocation test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the OverAllocation test", ce );
        }
        finally
        {
            assertTrue( "The DataSourceComponent could not be retrieved.", null != ds );
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the normal use test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the normal use test", ce );
        }
        finally
        {
            assertTrue( "The DataSourceComponent could not be retrieved.", null != ds );
View Full Code Here

            duration = 0;
        }

        if( m_throwable != null )
        {
            throw new CascadingAssertionFailedError( "Exception in test thread.", m_throwable );
        }

        // Make sure that all of the expected ids were obtained
        for( int i = 0; i < idCount; i++ )
        {
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the OverAllocation test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the OverAllocation test", ce );
        }
        finally
        {
            assertTrue( "The DataSourceComponent could not be retrieved.", null != ds );
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the normal use test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the normal use test", ce );
        }
        finally
        {
            assertTrue( "The DataSourceComponent could not be retrieved.", null != ds );
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the ActiveMonitor test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the ActiveMonitor test", ce );
        }
        finally
        {
            assertTrue( "The monitor selector could not be retrieved.", null != selector );
            selector.release( (Component)activeMonitor );
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the PassiveMonitor test", ce );
            }

            throw new CascadingAssertionFailedError( "There was an error in the PassiveMonitor test", ce );
        }
        finally
        {
            assertTrue( "The monitor selector could not be retrieved.", null != selector );
View Full Code Here

            if ( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "There was an error in the ActiveMonitor test", e );
            }

            throw new CascadingAssertionFailedError( "There was an error in the ActiveMonitor test", e );
        }
        finally
        {
           assertTrue( "The monitor selector could not be retrieved.", null != selector );
           selector.release( (Component)activeMonitor );
View Full Code Here

            if( getLogger().isDebugEnabled() )
            {
                getLogger().debug( "Error running the test", e );
            }

            throw new CascadingAssertionFailedError( "Error running the test", e );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.excalibur.testcase.CascadingAssertionFailedError

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.