[Building Sakai] Trunk broken: search unit tests

David Horwitz david.horwitz at uct.ac.za
Wed Jun 19 05:50:29 PDT 2013


Hi All,

it looks like search is failing on its unit tests on current trunk:

sticsearch.ElasticSearchTest)  Time elapsed: 9.71 sectestRefreshSite(org.sakaiproject.search.elasticsearch.ElasticSearchTest)  Time elapsed: 10.596 sectestRefresh(org.sakaiproject.search.elasticsearch.ElasticSearchTest)  Time elapsed: 5.798 sectestRebuild(org.sakaiproject.search.elasticsearch.ElasticSearchTest)  Time elapsed: 3.583 sec  <<< ERROR!
org.mockito.exceptions.misusing.WrongTypeOfReturnValue:
Boolean cannot be returned by getId()
getId() should return String
***
If you're unsure why you're getting above error read on.
Due to the nature of the syntax above problem might occur because:
1. This exception *might* occur in wrongly written multi-threaded tests.
   Please refer to Mockito FAQ on limitations of concurrency testing.
2. A spy is stubbed using when(spy.foo()).then() syntax. It is safer to stub spies -
   - with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.

        at org.sakaiproject.search.elasticsearch.ElasticSearchTest.testRebuild(ElasticSearchTest.java:471)
        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:45)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)


Seeing n ightly skips test I can't tell if this a general problem (but certainly looks like it), or how long its been arround


David
________________________________
UNIVERSITY OF CAPE TOWN

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 9111. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130619/c024a571/attachment.html 


More information about the sakai-dev mailing list