21 lines
460 B
Java
21 lines
460 B
Java
package util;
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
import java.lang.reflect.*;
|
|
|
|
import org.junit.Test;
|
|
|
|
public class CharactersTester {
|
|
|
|
@Test
|
|
public void testConstructorIsPrivate() throws Exception {
|
|
Constructor<Characters> constructor = Characters.class.getDeclaredConstructor();
|
|
|
|
assertTrue(Modifier.isPrivate(constructor.getModifiers()));
|
|
constructor.setAccessible(true);
|
|
constructor.newInstance();
|
|
}
|
|
|
|
}
|