@Test public void testGetStringFromID() { System.out.println("getStringFromID"); String id = "test"; String id2 = "test2"; String result = instance.getStringFromID(id); assertEquals("this is a test", result); String result2 = instance.getStringFromID(id2); assertEquals("also a test", result2); instance.getStringFromID(null); }
public String getStringFromID(String id) { String get = idsToString.get(id.toLowerCase()); if (get == null) { ErrorLogger.log("this Id was not found in a Stringfile: " + id.toLowerCase()); } return get; }
StringResourceLoader { public String getStringFromID(String id) { String get = idsToString.get(id.toLowerCase()); if (get == null) { ErrorLogger.log("this Id was not found in a Stringfile: " + id.toLowerCase()); } return get; } }
StringResourceLoader { public String getStringFromID(String id) { String get = idsToString.get(id.toLowerCase()); if (get == null) { ErrorLogger.log("this Id was not found in a Stringfile: " + id.toLowerCase()); } return get; } StringResourceLoader(LinkedList<String> stringRes); }
StringResourceLoader { public String getStringFromID(String id) { String get = idsToString.get(id.toLowerCase()); if (get == null) { ErrorLogger.log("this Id was not found in a Stringfile: " + id.toLowerCase()); } return get; } StringResourceLoader(LinkedList<String> stringRes); String getStringFromID(String id); String getIdForString(String s); boolean containsId(String id); }
StringResourceLoader { public String getStringFromID(String id) { String get = idsToString.get(id.toLowerCase()); if (get == null) { ErrorLogger.log("this Id was not found in a Stringfile: " + id.toLowerCase()); } return get; } StringResourceLoader(LinkedList<String> stringRes); String getStringFromID(String id); String getIdForString(String s); boolean containsId(String id);  }