Lakamsani
Sent: Wednesday, June 4, 2014 9:51 AM
Subject: Re: Using custom data source connection factory in JUnit
can you reproduce it in a sample you can share?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Git
Runner$2.evaluate(ParentRunner.java:222)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
> at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
&g
.internal.junit.runner.TestExecution.run(TestExecution.java:38)
From: Romain Manni-Bucau
To: "users@tomee.apache.org" ; Vamsee Lakamsani
Sent: Wednesday, June 4, 2014 9:04 AM
Subject: Re: Using custom data source connection factory in JUnit
myDs = new:
myDs = new://Resource?type=DataSource&class-name=&factory-name=...
myDs.auth=Application
as properties should work
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2
I have a resource defined like this in tomee.xml and it works fine from TomEE
auth=Application
singleton = true
Now, I want to test this in JUnit using javax.ejb.embeddable.EJBContainer
This example shows how to use Properties to initialize the data source. But is
there any