@Test public void testGetString2() throws Throwable { Context context = new Context(); String result = context.getString("", ""); assertEquals("", result, "result"); }
public String getString (Object key) { Object obj = getMap().get (key); if (obj instanceof String) return (String) obj; else if (obj != null) return obj.toString(); return null; }
Context implements Externalizable, Loggeable, Pausable, Cloneable { public String getString (Object key) { Object obj = getMap().get (key); if (obj instanceof String) return (String) obj; else if (obj != null) return obj.toString(); return null; } }
Context implements Externalizable, Loggeable, Pausable, Cloneable { public String getString (Object key) { Object obj = getMap().get (key); if (obj instanceof String) return (String) obj; else if (obj != null) return obj.toString(); return null; } Context(); }
Context implements Externalizable, Loggeable, Pausable, Cloneable { public String getString (Object key) { Object obj = getMap().get (key); if (obj instanceof String) return (String) obj; else if (obj != null) return obj.toString(); return null; } Context(); void put(Object key, Object value); void put(Object key, Object value, boolean persist); void persist(Object key); void evict(Object key); T get(Object key); T get(Object key, T defValue); synchronized T remove(Object key); String getString(Object key); String getString(Object key, String defValue); void dump(PrintStream p, String indent); @SuppressWarnings("unchecked") synchronized T get(Object key, long timeout); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override Context clone(); @Override boolean equals(Object o); @Override int hashCode(); synchronized Map<Object,Object> getMap(); synchronized LogEvent getLogEvent(); synchronized Profiler getProfiler(); synchronized Result getResult(); void log(Object msg); void checkPoint(String detail); void setPausedTransaction(PausedTransaction p); PausedTransaction getPausedTransaction(); PausedTransaction getPausedTransaction(long timeout); void setTimeout(long timeout); long getTimeout(); synchronized void resume(); boolean isTrace(); void setTrace(boolean trace); }
Context implements Externalizable, Loggeable, Pausable, Cloneable { public String getString (Object key) { Object obj = getMap().get (key); if (obj instanceof String) return (String) obj; else if (obj != null) return obj.toString(); return null; } Context(); void put(Object key, Object value); void put(Object key, Object value, boolean persist); void persist(Object key); void evict(Object key); T get(Object key); T get(Object key, T defValue); synchronized T remove(Object key); String getString(Object key); String getString(Object key, String defValue); void dump(PrintStream p, String indent); @SuppressWarnings("unchecked") synchronized T get(Object key, long timeout); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override Context clone(); @Override boolean equals(Object o); @Override int hashCode(); synchronized Map<Object,Object> getMap(); synchronized LogEvent getLogEvent(); synchronized Profiler getProfiler(); synchronized Result getResult(); void log(Object msg); void checkPoint(String detail); void setPausedTransaction(PausedTransaction p); PausedTransaction getPausedTransaction(); PausedTransaction getPausedTransaction(long timeout); void setTimeout(long timeout); long getTimeout(); synchronized void resume(); boolean isTrace(); void setTrace(boolean trace);  }