Get test tree on java 8+
Unit tests help validate design choices. Notably #778 defines apis which might be useful for lambdas or even method references, but nuance is hard to see because we are limited to < java 8. If we were on java 8, we could practice the api against lambdas and method references with throwing signatures.
Do you think that we should convert all unit tests to Java 8, or just add a few Java 8 test suites for the APIs that could use lambdas?
retrolambda the test source tree is an option if building with JDK 1.7 is required.
Java8 is already added to Travis CI.
I'm not sure I understand. Does this mean that we don't need to build with Java 7 now, and we can change the source compatibility in build.gradle?
My apologies, I thought this issue was only about testing with Java8. If it's about adding test suites that are specific to Java8 syntax, then it's not yet resolved.
Does this mean that we don't need to build with Java 7 now, and we can change the source compatibility in build.gradle?
No, although we removed Java7 build from Travis CI, we still need to keep Java7 compatibility (reasons being https://github.com/census-instrumentation/opencensus-java/pull/1690#issuecomment-457956501).