vipx / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Add some Java8-specific, lambda-oriented tests under a Java8 maven profile #803

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should add some tests that use Java8 features, especially lambdas, in order 
to adequately test Guice under Java8 realistic conditions.

In particular, though, it would need to have an environmentally-activated 
profile that excluded the tests from compilation and execution when run under 
pre-Java8. 

Original issue reported on code.google.com by cgruber@google.com on 8 Apr 2014 at 7:46

GoogleCodeExporter commented 9 years ago
For Maven at least, you can do this:

<profile>
  <id>java8</id>
  <activation>
    <jdk>1.8</jdk>
  </activation>
</profile>

Then have that profile enable some extra tests.

Original comment by tavianator@gmail.com on 8 Apr 2014 at 9:11