[hibernate-dev] refresher needed on running Hibernate unit tests in Intellij?

Scott Marlow smarlow at redhat.com
Tue Dec 15 16:51:13 EST 2015



On 12/15/2015 03:51 PM, andrea boriero wrote:
> i think you are using java 7 instead of java 8..

Not really sure but commenting out the below line seemed to help me.

As far as I can tell, I have jdk 1.8 selected for the Hibernate project.

>
> On 15 December 2015 at 20:32, Scott Marlow <smarlow at redhat.com
> <mailto:smarlow at redhat.com>> wrote:
>
>     Hi,
>
>     I created a new Java project for the folder containing Hibernate master
>     and imported the gradle build file (accepted defaults).  When I tried
>     running a unit test, I get a compile error in
>     org.hibernate.test.schemaupdate.SchemaUpdateDelimiterTest on the call to
>     "Files.readAllLines( output.toPath() )"
>
>     Error:(60, 54) java: method readAllLines in class java.nio.file.Files
>     cannot be applied to given types;
>         required: java.nio.file.Path,java.nio.charset.Charset
>         found: java.nio.file.Path
>         reason: actual and formal argument lists differ in length
>
>     I'd like to single step through some test failures with
>     PooledThreadLocalLoOptimizer but this is slowing me down.
>
>     I'm using Intellij 15.0.2.
>
>     Thanks,
>     Scott
>     _______________________________________________
>     hibernate-dev mailing list
>     hibernate-dev at lists.jboss.org <mailto:hibernate-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>


More information about the hibernate-dev mailing list