2017-02-08 12:56:24 -05:00
|
|
|
package util;
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertTrue;
|
|
|
|
|
|
|
|
import java.lang.reflect.*;
|
|
|
|
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
public class CharactersTester {
|
|
|
|
|
|
|
|
@Test
|
2017-03-02 09:54:23 -05:00
|
|
|
public void constructorIsPrivate() throws Exception {
|
2017-02-08 12:56:24 -05:00
|
|
|
Constructor<Characters> constructor = Characters.class.getDeclaredConstructor();
|
|
|
|
|
|
|
|
assertTrue(Modifier.isPrivate(constructor.getModifiers()));
|
|
|
|
constructor.setAccessible(true);
|
|
|
|
constructor.newInstance();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|