Is it a bad practice to have an interface to define constants?
<p>I am writing a set of junit test classes in java. 
There are several constants, for example strings that I will need in different test classes.
I am thinking about an interface that defines them and every test class would implement it.</p>

<p>The benefits I see there are:</p>

<ul>
<li>easy access to constants: "MY_CONSTANT" instead of "ThatClass.MY_CONSTANT"</li>
<li>each constant defined only once</li>
</ul>

<p>Is this approach rather a good or bad practice? I feel like abusing the concept of interfaces a little bit. </p>

<p>You can answer generally about interfaces/constants, but also about unit tests if there is something special about it.</p>
