Hi,

I might be misunderstanding the documentation but it appears that the Boolean 
flags that can be passed to the net.sf.basedb.info.QueryOptions constructor are 
ignored by net.sf.basedb.ws.server.ServicesUtil, as demonstrated by the failure 
of the following test:

@Test
public void servicesUtil() {
                QueryOptions qOpts = new QueryOptions(false, null, null, null, 
null, null);
                ItemQuery<Experiment> query = new 
ServicesUtil().getConfiguredItemQuery(Experiment.getQuery(), qOpts);
                assertFalse(query.isIncluded(Include.MINE));
}

The attached patch should fix this problem, hopefully without breaking existing 
code.

Regards,

Mark.

--
Mark Woodbridge
CISBIC Data Management
Imperial College London

Attachment: ServicesUtil.patch
Description: ServicesUtil.patch

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel

Reply via email to