### Question:
TechId implements Serializable { public static boolean jelibSafeName(String str) { return jelibSafeName(str, false); } TechId(IdManager idManager, String techName, int techIndex); synchronized LayerId newLayerId(String layerName); synchronized ArcProtoId newArcProtoId(String arcProtoName); synchronized PrimitiveNodeId newPrimitiveNodeId(String primitiveNodeName); Technology inDatabase(EDatabase database); String toString(); static boolean jelibSafeName(String str); static final TechId[] NULL_ARRAY; final IdManager idManager; final String techName; final int techIndex; }### Answer:
@Test public void jelibSafeName() { System.out.println("jelibSafeName"); assertTrue(TechId.jelibSafeName("")); assertTrue(TechId.jelibSafeName("?")); assertTrue(TechId.jelibSafeName("/")); assertTrue(TechId.jelibSafeName("'")); assertFalse(TechId.jelibSafeName(" ")); assertFalse(TechId.jelibSafeName("\n")); assertFalse(TechId.jelibSafeName("\\")); assertFalse(TechId.jelibSafeName("\"")); assertFalse(TechId.jelibSafeName(":")); assertFalse(TechId.jelibSafeName("|")); assertFalse(TechId.jelibSafeName("^")); }
@Test(expected = NullPointerException.class) public void testJelibSafeNameNull() { System.out.println("jelibSafeNameNull"); TechId.jelibSafeName(null); }