how can I reuse JUnit tests in another testclass?
For example:
public TestClass1 {
@Test
public void testSomething(){...}
}
public TestClass
Logically, there is no reason to call one test method from another. Any tool that runs one test would just as easily all tests in the package. But if you need to, you'd call it like any other method in any other class.
What you most likely want to do, is perform some common setup for both test methods. You could put that code in a utility method in a common class, and invoke the common code in both tests.