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