Closes #619 Add greaterThan and lessThan test framework assertions
Each relies on the two objects being compared being instances of the same `Comparable<T>`. I also took the opportunity to simplify the logic in `TestAssertions`. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/ff7cde11 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/ff7cde11 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/ff7cde11 Branch: refs/heads/master Commit: ff7cde11639e49684f4baf86e9000dfb24feffa5 Parents: b608635 c51c69a Author: Geoff Macartney <[email protected]> Authored: Thu Apr 6 12:08:34 2017 +0100 Committer: Geoff Macartney <[email protected]> Committed: Thu Apr 6 12:08:34 2017 +0100 ---------------------------------------------------------------------- .../util/core/xstream/XmlSerializerTest.java | 1 - .../test/framework/TestFrameworkAssertions.java | 197 +++++++------------ .../framework/TestFrameworkAssertionsTest.java | 24 ++- .../apache/brooklyn/util/net/Networking.java | 2 +- 4 files changed, 97 insertions(+), 127 deletions(-) ----------------------------------------------------------------------
