import static com.google.common.collect.ImmutableList.of;
import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.util.HashMap;
import java.util.List;
assertEquals("", BindingMapping.getClassName(""));
}
- @Test(expected = UnsupportedOperationException.class)
- @SuppressWarnings({ "checkstyle:illegalThrows", "checkstyle:avoidHidingCauseException" })
- public void privateConstructTest() throws Throwable {
- final Constructor<BindingMapping> bindingMappingConstructor = BindingMapping.class.getDeclaredConstructor();
- assertFalse(bindingMappingConstructor.isAccessible());
-
- bindingMappingConstructor.setAccessible(true);
- try {
- bindingMappingConstructor.newInstance();
- fail("Expected exception for calling private constructor");
- } catch (InvocationTargetException e) {
- throw e.getCause();
- }
- }
-
@Test
public void mapEnumAssignedNamesTest() {
// Okay identifier