@Override public void addTest(final Test test) { for (final ProxyTestSuite s:subs) { s.addTest(cloneTest(s.getDelegate(),test)); } } }
@SuppressWarnings("rawtypes") @Override public void addTestSuite(final Class clazz) { for (final ProxyTestSuite s:subs) { s.addTestSuite(clazz); } }
/** * Creates an empty unnamed test suite. The <i>delegate </i> will be * assigned to tests added to this test suite that implement * {@link IProxyTest}. * * @param delegate * The delegate (non-null). */ public ProxyTestSuite( Test delegate ) { super(); checkDelegate( delegate ); m_delegate = delegate; }
/** * Create and populate a {@link ProxyTestSuite} with the unit tests that we * will run against any of the {@link IIndexManager} implementations. * * @param delegate * The delegate for the proxied unit tests. * @param name * The name of the test suite. * @return The {@link ProxyTestSuite} populated with the unit tests. */ protected static ProxyTestSuite proxySuite( AbstractIndexManagerTestCase<? extends IIndexManager> delegate, String name) { final ProxyTestSuite suite = new ProxyTestSuite(delegate, name); // sparse row store operations. suite.addTestSuite(TestSparseRowStore.class); return suite; }
@Override public void addTest(Test test) { super.addTest(cloneTest(getDelegate(),test)); } }
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); } }
@SuppressWarnings("rawtypes") @Override protected void tearDown() throws Exception { ((TestNanoSparqlServerWithProxyIndexManager)suite2.getDelegate()).tearDownAfterSuite(); /* * Note: Do not clear. Will not leak unless the * QueryEngine objects are pinned. They will not be * pinned if you shutdown the Journal correctly for each * test; the call to tearDownAfterSuite above calls the destroy() method * on temporary journals, which appears to do the necessary thing. */ // QueryEngineFactory.clearStandAloneQECacheDuringTesting(); } });
/** * Create and populate a {@link ProxyTestSuite} with the unit tests that we * will run against any of the {@link IIndexManager} implementations. * * @param delegate * The delegate for the proxied unit tests. * @param name * The name of the test suite. * @return The {@link ProxyTestSuite} populated with the unit tests. */ protected static ProxyTestSuite proxySuite( AbstractIndexManagerTestCase<? extends IIndexManager> delegate, String name) { final ProxyTestSuite suite = new ProxyTestSuite(delegate, name); // sparse row store operations. suite.addTestSuite(TestSparseRowStore.class); return suite; }
@Override public void addTest(final Test test) { for (final ProxyTestSuite s:subs) { s.addTest(cloneTest(s.getDelegate(),test)); } } }
@Override public void addTest(Test test) { super.addTest(cloneTest(getDelegate(),test)); } }
@SuppressWarnings("rawtypes") @Override public void addTestSuite(final Class clazz) { for (final ProxyTestSuite s:subs) { s.addTestSuite(clazz); } }
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); } }
@SuppressWarnings("rawtypes") @Override protected void tearDown() throws Exception { ((TestNanoSparqlServerWithProxyIndexManager)suite2.getDelegate()).tearDownAfterSuite(); /* * Note: Do not clear. Will not leak unless the * QueryEngine objects are pinned. They will not be * pinned if you shutdown the Journal correctly for each * test; the call to tearDownAfterSuite above calls the destroy() method * on temporary journals, which appears to do the necessary thing. */ // QueryEngineFactory.clearStandAloneQECacheDuringTesting(); } });
/** * Creates an empty unnamed test suite. The <i>delegate </i> will be * assigned to tests added to this test suite that implement * {@link IProxyTest}. * * @param delegate * The delegate (non-null). */ public ProxyTestSuite( Test delegate ) { super(); checkDelegate( delegate ); m_delegate = delegate; }
public static Test suite() { final LocalGOMTestCase delegate = new LocalGOMTestCase(); // !!!! THIS CLASS // !!!! /* * Use a proxy test suite and specify the delegate. */ final ProxyTestSuite suite = new ProxyTestSuite(delegate, "Local GOM tests"); suite.addTestSuite(TestGPO.class); suite.addTestSuite(TestGOM.class); suite.addTestSuite(TestOwlGOM.class); return suite; }
/** * Creates an empty named test suite. The declared will be assigned to tests * added to this test suite that implement {@link IProxyTest}. * * @param delegate * The delegate (non-null). * @param name * The test suite name (optional). */ public ProxyTestSuite( Test delegate, String name ) { super( name ); checkDelegate( delegate ); m_delegate = delegate; }
public static Test suite() { final RemoteGOMTestCase delegate = new RemoteGOMTestCase(); // !!!! THIS CLASS // !!!! /* * Use a proxy test suite and specify the delegate. */ final ProxyTestSuite suite = new ProxyTestSuite(delegate, "Remote GOM tests"); suite.addTestSuite(TestGPO.class); suite.addTestSuite(TestGOM.class); suite.addTestSuite(TestOwlGOM.class); return suite; }
/** * Creates an empty named test suite. The declared will be assigned to tests * added to this test suite that implement {@link IProxyTest}. * * @param delegate * The delegate (non-null). * @param name * The test suite name (optional). */ public ProxyTestSuite( Test delegate, String name ) { super( name ); checkDelegate( delegate ); m_delegate = delegate; }
public static Test suite() { final RemoteGOMTestCase delegate = new RemoteGOMTestCase(); // !!!! THIS CLASS // !!!! /* * Use a proxy test suite and specify the delegate. */ final ProxyTestSuite suite = new ProxyTestSuite(delegate, "Remote GOM tests"); suite.addTestSuite(TestGPO.class); suite.addTestSuite(TestGOM.class); suite.addTestSuite(TestOwlGOM.class); return suite; }
public static Test suite() { final LocalGOMTestCase delegate = new LocalGOMTestCase(); // !!!! THIS CLASS // !!!! /* * Use a proxy test suite and specify the delegate. */ final ProxyTestSuite suite = new ProxyTestSuite(delegate, "Local GOM tests"); suite.addTestSuite(TestGPO.class); suite.addTestSuite(TestGOM.class); suite.addTestSuite(TestOwlGOM.class); return suite; }