Questions tagged [thread-weaver]

Thread Weaver is a Java testing framework that aims towards unit testing concurrency.

Thread Weaver is a Java testing framework that aims towards unit testing concurrency. The project is hosted at https://github.com/google/thread-weaver

4 questions
3
votes
1 answer

Use Guice to create components to use with ThreadWeaver

The application I have been working on has been getting more and more complicated, and it's gotten to the point where I have been running into the same problems over and over again with concurrency. It no longer made any sense to solve the same…
1
vote
0 answers

Thread Weaver InvocationTargetException

I'm trying to get Thread Weaver to work but no matter what I try I always get the exception below. I create a clean project with only EasyMock, JUnit and Thread Weaver in it, and the code is the example from the Thread Weaver documentation (I'm…
traveh
  • 2,700
  • 3
  • 27
  • 44
1
vote
1 answer

thread-weaver with hibernate unit testing

I am trying to write a multithread unit test for my hibernate test. I chose thread-weaver and got a little play with it. I used the HSQL Database engine for my hibernate testing which is an in memory database. It was working perfect until i wanted…
0
votes
1 answer

ThreadWeaver always throws IllegalArgumentException

I am trying to use Google ThreadWeaver to write a unit test for concurrent code. No matter what I do, I will get an IllegalArgumentException. I am still working with an example, but even that does not work. This is what I tried: public class…