19 lines
640 B
Java
19 lines
640 B
Java
package dev.lions.user.manager.validation;
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
import java.lang.reflect.Constructor;
|
|
import java.lang.reflect.Modifier;
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
|
class ValidationConstantsTest {
|
|
|
|
@Test
|
|
void testPrivateConstructor() throws Exception {
|
|
Constructor<ValidationConstants> constructor = ValidationConstants.class.getDeclaredConstructor();
|
|
assertTrue(Modifier.isPrivate(constructor.getModifiers()));
|
|
constructor.setAccessible(true);
|
|
ValidationConstants instance = constructor.newInstance();
|
|
assertNotNull(instance);
|
|
}
|
|
}
|