In JUnit 3, I could get the name of the currently running test like this: public class MyTest extends TestCase { public void testSomething() { System.out.println(“Current test is ” + getName()); … } } which would print “Current test is testSomething”. Is there any out-of-the-box or simple way to do this in JUnit 4? Background: […]
Category: Java
Rounded Swing JButton using Java
Well, I have an image that I would like to put as a background to a button (or something clicable). The problem is that this image is round, so I need to show this image, without any borders, etc. The JComponent that holds this button has a custom background, so the button really needs to […]