Don't convert assumption failures into errors in ErrorCollector.addError().

It makes more sense to pass assumption failures through this path
unchanged (unlike ErrorCollector.checkSucceeds) and converting them to
errors breaks tests which use ErrorCollector in a wrapper Rule.

Upstream issue: https://github.com/junit-team/junit4/issues/1703

Bug: 129054170
Test: m checkbuild
Change-Id: I578a2676e52882c7d25d99061310ea38101883f6
2 files changed
tree: 9d0ef66d108d76d38341cb002d5a46f74299983f
  1. src/
  2. .classpath
  3. .gitignore
  4. .project
  5. Android.bp
  6. build.gradle
  7. CleanSpec.mk
  8. epl-v10.html
  9. LICENSE-junit.txt
  10. METADATA
  11. MODULE_LICENSE_EPL
  12. NOTICE.txt
  13. OWNERS
  14. README.md
  15. README.version
  16. version
README.md

JUnit 4

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

For more information, please visit:

Latest Build Status

Built on DEV@cloud