----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/4451/#review6278 -----------------------------------------------------------
Overall great fix!... Just a few comments trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/query/QueryResult.java <https://reviews.apache.org/r/4451/#comment13620> Just an FYI... you can do this instead here: List<String> outputString = Lists.newArrayList(); I'll leave it up to you though if you want to change it or leave it... I just think the Lists class is cool... There are also Sets and Maps classes which do similar trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/cli/action/TestSqlQueryCliAction.java <https://reviews.apache.org/r/4451/#comment13619> This doesn't make sure that nothing else is being return in the value... For example this test would pass for: data.dat,Bob,Billy,Bogus I can see why you changed it, but maybe split it into a list then verify size and then that the list contain data.dat and Bob,Billy trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/query/TestQueryResult.java <https://reviews.apache.org/r/4451/#comment13621> Same thing goes here as comment for line 129 in TestSqlQueryCliAction - brian On 2012-03-22 23:47:07, Ricky Nguyen wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/4451/ > ----------------------------------------------------------- > > (Updated 2012-03-22 23:47:07) > > > Review request for oodt, Chris Mattmann, brian Foster, Paul Ramirez, Sheryl > John, and Thomas Bennett. > > > Summary > ------- > > Cleaned up metadata to string methods of QueryResult. If metadata was empty, > it was trying to delete a trailing comma that doesn't exist. > > > This addresses bug OODT-427. > https://issues.apache.org/jira/browse/OODT-427 > > > Diffs > ----- > > > trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/structs/query/QueryResult.java > 1303205 > > trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/cli/action/TestSqlQueryCliAction.java > 1303205 > > trunk/filemgr/src/test/org/apache/oodt/cas/filemgr/structs/query/TestQueryResult.java > PRE-CREATION > > Diff: https://reviews.apache.org/r/4451/diff > > > Testing > ------- > > Added unit test to check for empty metadata. > > Changed existing unit test to account for implementation-dependent ordering > of keys. > > > Thanks, > > Ricky > >