[hibernate-dev] How to run master unit test in Intellij with non-default DB
Gail Badner
gbadner at redhat.com
Thu Jun 4 23:41:41 EDT 2015
I imported the project as a Gradle project and the Run/Debug configuration is listed under "Gradle".
Gradle project: /home/gbadner/git/hibernate-orm-HHH-redo-again/hibernate-entitymanager
Tasks: cleanTest test
VM options: -Dhibernate.jdbc.use_get_generated_keys=false -Dhibernate.connection.password=... -Dhibernate41.dialect=org.hibernate.dialect.DB2Dialect -Dhibernate.jdbc.use_streams_for_binary=false -Dhibernate.connection.username=... -Dhibernate.connection.driver_class=com.ibm.db2.jcc.DB2Driver -Dhibernate.dialect=org.hibernate.dialect.DB2Dialect -Dhibernate.connection.url=... -Dhibernate.connection.schema=...
Script parameters: --tests org.hibernate.jpa.test.query.QueryTest
How do I add db2jcc4.jar as a dependency?
Thanks,
Gail
----- Original Message -----
> From: "Steve Ebersole" <steve at hibernate.org>
> To: "Gail Badner" <gbadner at redhat.com>, "Hibernate Dev" <hibernate-dev at lists.jboss.org>
> Sent: Thursday, June 4, 2015 6:46:24 PM
> Subject: Re: [hibernate-dev] How to run master unit test in Intellij with non-default DB
>
> I would assume you are using the "Run with Gradle" stuff in IntelliJ rather
> than the normal "Run it in IntelliJ" stuff
>
> On Thu, Jun 4, 2015 at 7:01 PM Gail Badner <gbadner at redhat.com> wrote:
>
> > For 4.3 and before, when running a unit test in Intellij using a
> > non-default DB, I would simply add the JDBC jar as a module dependency and
> > then add the hibernate-specific properties (e.g., for dialect, etc) as VM
> > options in the Run/Debug configuration.
> >
> > This doesn't work for master because the added dependency is not getting
> > picked up.
> >
> > Is there some other way to do this without messing with build.gradle or
> > libraries.gradle?
> >
> > Thanks,
> > Gail
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
>
More information about the hibernate-dev
mailing list