The exception is to be expected (the name of the test is testTerminateCrawlingOnException) but it could have been caught and logged instead of allowed to bubble up the stack.
On Fri, Dec 24, 2010 at 5:33 PM, Otis Gospodnetic < [email protected]> wrote: > Hi, > > Running mvn test from the root passes. Running mvn test from droids-core > doesn't seem to, although it's still reported as passed. See below. Is > this > normal/expected? > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.apache.droids.impl.TestSimpleDroid > 2010-12-24 10:30:26,145 INFO [main] - <Loading > http://127.0.0.1:49690/start_html> > 2010-12-24 10:30:26,689 INFO [main] - <Loading > http://127.0.0.1:49690/page1_html> > 2010-12-24 10:30:26,796 INFO [main] - <Loading > http://127.0.0.1:49690/page2_html> > 2010-12-24 10:30:26,899 INFO [main] - <Loading > http://127.0.0.1:49690/page3_html> > 2010-12-24 10:30:27,002 INFO [main] - <Loading > http://127.0.0.1:49690/page4_html> > 2010-12-24 10:30:27,005 INFO [main] - <FINISHED!!!> > 2010-12-24 10:30:27,116 INFO [main] - <Loading > http://127.0.0.1:32793/start_html> > 2010-12-24 10:30:27,223 INFO [main] - <Loading > http://127.0.0.1:32793/page1_html> > 2010-12-24 10:30:27,326 INFO [main] - <Loading > http://127.0.0.1:32793/page2_html> > 2010-12-24 10:30:27,429 INFO [main] - <Loading > http://127.0.0.1:32793/page3_html> > 2010-12-24 10:30:27,434 WARN [main] - <Oppsie!!!> > java.lang.RuntimeException: Oppsie!!! > at > > org.apache.droids.examples.handler.ExceptionReportHandler.handle(ExceptionReportHandler.java:34) > > at > > org.apache.droids.helper.factories.HandlerFactory.handle(HandlerFactory.java:49) > at > > org.apache.droids.robot.crawler.CrawlingWorker.handle(CrawlingWorker.java:107) > at > > org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:89) > at > > org.apache.droids.robot.crawler.CrawlingWorker.execute(CrawlingWorker.java:37) > at > > org.apache.droids.impl.SequentialTaskMaster.processAllTasks(SequentialTaskMaster.java:82) > > at > org.apache.droids.robot.crawler.CrawlingDroid.start(CrawlingDroid.java:68) > at > > org.apache.droids.impl.TestSimpleDroid.testTerminateCrawlingOnException(TestSimpleDroid.java:103) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) > > at > > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > > at > > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) > > at > > org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) > > at > > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > at > > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73) > > at > > org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46) > > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) > at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) > at > > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) > at > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) > at org.junit.runners.ParentRunner.run(ParentRunner.java:220) > at > > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62) > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140) > > at > > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127) > > at org.apache.maven.surefire.Surefire.run(Surefire.java:177) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > at > > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) > > at > > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) > 2010-12-24 10:30:27,441 INFO [main] - <FINISHED!!!> > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.647 sec > Running org.apache.droids.impl.TestSimpleQueue > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec > Running org.apache.droids.delay.TestDelay > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec > > Results : > > Tests run: 4, Failures: 0, Errors: 0, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 8 seconds > [INFO] Finished at: Fri Dec 24 10:30:27 EST 2010 > [INFO] Final Memory: 23M/55M > [INFO] > ------------------------------------------------------------------------ > > Otis > ---- > Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch > Lucene ecosystem search :: http://search-lucene.com/ > >
