Use assert_coverage_result instead of diff in java coverage tests
Use assert_coverage_result instead of diff in java coverage tests

The custom function provides clearer output in the case of failure.
When diff is used, the output is reduced to a small delta, which can
hide what the actual problem is.

Closes #11981.

PiperOrigin-RevId: 327625134

twitter-forks/bazel,davidzchen/bazel,perezd/bazel,cushon/bazel,davidzchen/bazel,twitter-forks/bazel,twitter-forks/bazel,twitter-forks/bazel,perezd/bazel,perezd/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,cushon/bazel,safarmer/bazel,werkt/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,katre/bazel,davidzchen/bazel,meteorcloudy/bazel,meteorcloudy/bazel,safarmer/bazel,safarmer/bazel,meteorcloudy/bazel,davidzchen/bazel,cushon/bazel,bazelbuild/bazel,katre/bazel,werkt/bazel,werkt/bazel,bazelbuild/bazel,perezd/bazel,davidzchen/bazel,cushon/bazel,werkt/bazel,safarmer/bazel,katre/bazel,katre/bazel,twitter-forks/bazel,safarmer/bazel,perezd/bazel,davidzchen/bazel,werkt/bazel,perezd/bazel,davidzchen/bazel,bazelbuild/bazel,katre/bazel,cushon/bazel,ButterflyNetwork/bazel,ButterflyNetwork/bazel,perezd/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel,katre/bazel,bazelbuild/bazel,cushon/bazel,werkt/bazel,safarmer/bazel,twitter-forks/bazel,bazelbuild/bazel,twitter-forks/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,meteorcloudy/bazel