You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we need to start it, but only once. Without relying on the testing framework, we can do it with a static block (JVM will trigger it only once, on class loading):
That's it! Every test class with extends AbstractIntegrationTest will have a container started & running, and the container will be terminated only on JVM shutdown.
An example should have at least 2 different classes with the tests to demonstrate it.
Does this example support running tests ,
examples/singleton-container/src/test/java/com/example/BarConcreteTestClass.java and
examples/singleton-container/src/test/java/com/example/FooConcreteTestClass.java
in parallel ?
Activity
chungngoops commentedon Jan 16, 2019
I would like to take this issue.
kiview commentedon Jan 24, 2019
Hey @chungngoops, this is great!
You already started with it, or have any questions?
chungngoops commentedon Jan 24, 2019
@kiview : I already started with it, I will have my PR ASAP!
SushmaReddyLoka commentedon Dec 29, 2020
Does this example support running tests ,
examples/singleton-container/src/test/java/com/example/BarConcreteTestClass.java and
examples/singleton-container/src/test/java/com/example/FooConcreteTestClass.java
in parallel ?