Refactor test to use InitialLoggerContext rule.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596443 13f79535-47bb-0310-9956-ffa450edef68
Refactor test to use InitialLoggerContext rule.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596445 13f79535-47bb-0310-9956-ffa450edef68
Add empty iterator implementation (yay 1.7) along with some warning suppression (it's ok to share immutable collection classes as public fields).

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596446 13f79535-47bb-0310-9956-ffa450edef68
Make init method package-private.

  - Comments say it's only used for testing (it is).
  - Better off making this default access based on usage.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596447 13f79535-47bb-0310-9956-ffa450edef68
Add hamcrest-all to dependency management (test scoped).

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596448 13f79535-47bb-0310-9956-ffa450edef68
Add hamcrest-all to log4j-core test dependencies.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1596449 13f79535-47bb-0310-9956-ffa450edef68