junitperf

Running a junit4 test with junitperf

Hello It' possible to use Junitperf with junit4? I've a simplet Junit4 test class with several tests and i want to do a TimedTest on single test of that class. How can i do that? To be more clear my Junit4 class is something like: public class TestCitta { @Test public void test1 {} @Test public void test2 {} } w...

Test problem using JUnitPerf

Hi, guys, I'm writing a JUnit test using JUnitPerf. Here, I want to generate some entries and use them to update a database. To test the capacity of the database, I want several test to run simultaneously or randomly, so I use, for example: Test loadTest = new LoadTest(testCase, n); But, still, I have to insure that in each test, a d...

How to use @BeforeClass and @AfterClass in JunitPerf?

Hi, I want to do some actions before the whole test suite (also after the suite). So I wrote like: public class PerformanceTest extends TestCase { @BeforeClass public static void suiteSetup() throws Exception { //do something } @AfterClass public static void suiteSetup() throws Exception { //d...