Map<String, String> response = interpreter.execute(sessionId, "put 'a' 'a';");
assert response.containsKey(ResultKeys.ERROR.toString());
}
public void testCacheNotYetSelected() throws Exception {
GlobalComponentRegistry gcr = TestingUtil.extractGlobalComponentRegistry(this.cacheManager);
Interpreter interpreter = gcr.getComponent(Interpreter.class);
String sessionId = interpreter.createSessionId(null);
Map<String, String> response = interpreter.execute(sessionId, "cache;");
assert response.containsKey(ResultKeys.ERROR.toString());
String errorMsg = LogFactory.getLog(CacheStatement.class, Log.class).noCacheSelectedYet().getMessage();
assert response.get(ResultKeys.ERROR.toString()).contains(errorMsg);