----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/40419/#review107207 -----------------------------------------------------------
test/src/test/java/org/apache/sqoop/integration/server/rest/ConnectorRestTest.java (line 28) <https://reviews.apache.org/r/40419/#comment166209> could we use `type[] arrayName` instead of `type []arrayName` test/src/test/java/org/apache/sqoop/integration/server/rest/ConnectorRestTest.java (line 29) <https://reviews.apache.org/r/40419/#comment166224> we could put the HTTP verbs in an enum to prevent typos test/src/test/java/org/apache/sqoop/integration/server/rest/LinkRestTest.java (line 27) <https://reviews.apache.org/r/40419/#comment166211> we still need more test cases (ex handling creation of links) but as per our discussion that will be handled in another patch test/src/test/java/org/apache/sqoop/integration/server/rest/LinkRestTest.java (line 40) <https://reviews.apache.org/r/40419/#comment166217> likely outside the scope of this jira, but assertcontains does not seem all that rigorous to me. we should have tests to validate the structure of the returned json. test/src/test/java/org/apache/sqoop/integration/server/rest/LinkRestTest.java (line 72) <https://reviews.apache.org/r/40419/#comment166221> is there a way we could avoid repeating this chunk of code? test/src/test/java/org/apache/sqoop/integration/server/rest/RestTest.java (line 65) <https://reviews.apache.org/r/40419/#comment166214> data is in "error" stream test/src/test/java/org/apache/sqoop/integration/server/rest/RestTest.java (line 122) <https://reviews.apache.org/r/40419/#comment166218> this should be in the `LinkRestTest` class right? test/src/test/java/org/apache/sqoop/integration/server/rest/RestTest.java (line 137) <https://reviews.apache.org/r/40419/#comment166223> can we generalize this so it does not need to know specifically what it needs to delete? - Abraham Fine On Nov. 18, 2015, 1:14 a.m., Jarek Cecho wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/40419/ > ----------------------------------------------------------- > > (Updated Nov. 18, 2015, 1:14 a.m.) > > > Review request for Sqoop. > > > Bugs: SQOOP-2698 > https://issues.apache.org/jira/browse/SQOOP-2698 > > > Repository: sqoop-sqoop2 > > > Description > ------- > > Splitted the current state of the test as per the recommendation on JIRA. > > > Diffs > ----- > > > test/src/test/java/org/apache/sqoop/integration/server/InvalidRESTCallsTest.java > 40d8c88 > > test/src/test/java/org/apache/sqoop/integration/server/rest/ConnectorRestTest.java > PRE-CREATION > > test/src/test/java/org/apache/sqoop/integration/server/rest/LinkRestTest.java > PRE-CREATION > test/src/test/java/org/apache/sqoop/integration/server/rest/RestTest.java > PRE-CREATION > > test/src/test/java/org/apache/sqoop/integration/server/rest/VersionRestTest.java > PRE-CREATION > > Diff: https://reviews.apache.org/r/40419/diff/ > > > Testing > ------- > > All new test cases seems to be passing. > > > Thanks, > > Jarek Cecho > >
