gerrit/gerrit-test-util
Alice Kober-Sotzek 5dd17b647e Add Java API for change edits and use it in tests
For some reason, a Java API for change edits didn't exist previously
even though a detailed REST API has been available. Because of that,
tests needed to use internal classes when they interacted with change
edits. Using internal classes is fragile and impedes refactorings.
That's why we should avoid it.

If possible, the structure and behavior of the tests is kept. Some of
them might and should be improved but that's beyond the scope of this
change. Some of the tests are adapted a bit because the internal
classes allow change edits to be created for previous patch sets
which isn't possible when using the REST API (and hence the Java API).

As modifications to the mentioned internal classes are necessary to
properly implement the 'Apply fix' feature of robot comments, it is
crucial that none of the tests use the internal classes directly.
In addition, the tests which will be added for the 'Apply fix' feature
will also need to modify and query change edits, which will be much
easier with the Java API.

Change-Id: I6b455541d1bc1b7a05b5f0507911181b0451829a
2017-01-24 15:16:20 +01:00
..
src/main/java/com/google/gerrit Add Java API for change edits and use it in tests 2017-01-24 15:16:20 +01:00
BUCK Add unit tests for Comment.Range#isValid 2016-12-08 11:21:48 +01:00
BUILD Add unit tests for Comment.Range#isValid 2016-12-08 11:21:48 +01:00