protected void flowDown(Test t) { if (m_delegate == null) { throw new AssertionError("delegate is not set."); } if ( t instanceof TestSuite ) { flowDown( (TestSuite) t ); } else if (t instanceof IProxyTest) { log.debug("Setting delegate on " + t.getClass() + " to " + m_delegate.getClass()); ((IProxyTest) t).setDelegate(m_delegate); } }
protected void flowDown(Test t) { if (m_delegate == null) { throw new AssertionError("delegate is not set."); } if ( t instanceof TestSuite ) { flowDown( (TestSuite) t ); } else if (t instanceof IProxyTest) { log.debug("Setting delegate on " + t.getClass() + " to " + m_delegate.getClass()); ((IProxyTest) t).setDelegate(m_delegate); } }
/** * <p> * Sets the delegate on each instantiated {@link Test} that implements * {@link IProxyTest}. * </p> */ @SuppressWarnings("unchecked") protected void flowDown( final TestSuite suite ) { if( m_delegate == null ) { throw new AssertionError("delegate is not set."); } for( java.util.Enumeration e= suite.tests(); e.hasMoreElements(); ) { Test t = (Test)e.nextElement(); flowDown( t ); } }
/** * <p> * Sets the delegate on each instantiated {@link Test} that implements * {@link IProxyTest}. * </p> */ @SuppressWarnings("unchecked") protected void flowDown( final TestSuite suite ) { if( m_delegate == null ) { throw new AssertionError("delegate is not set."); } for( java.util.Enumeration e= suite.tests(); e.hasMoreElements(); ) { Test t = (Test)e.nextElement(); flowDown( t ); } }
flowDown( test );