transcendental-lisp/test/util/PathTest.java

22 lines
481 B
Java
Raw Normal View History

package util;
import static org.junit.Assert.assertTrue;
2017-11-12 09:42:25 -05:00
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import org.junit.Test;
2017-03-15 13:37:39 -04:00
public class PathTest {
@Test
public void constructorIsPrivate() throws Exception {
Constructor<Path> constructor = Path.class.getDeclaredConstructor();
assertTrue(Modifier.isPrivate(constructor.getModifiers()));
constructor.setAccessible(true);
constructor.newInstance();
}
}