@Override public void setStatementExecutor(StatementExecutorInterface statementExecutor) { context = statementExecutor; // Tell Slim Agent that the fixture takes care of symbol replacements in all "doTable" methods // IMPORTANT: Don't forget to set this back to null at the end of your fixture code context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS,"tableTable.*\\.doTable"); }
@Override public void setStatementExecutor(StatementExecutorInterface statementExecutor) { context = statementExecutor; // Tell Slim Agent that the fixture takes care of symbol replacements in all "doTable" methods // IMPORTANT: Don't forget to set this back to null at the end of your fixture code context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS,"tableTable.*\\.doTable"); }
@Override public void setStatementExecutor(StatementExecutorInterface statementExecutor) { context = statementExecutor; // Tell Slim Agent that the fixture takes care of symbol replacements in all "doTable" methods // IMPORTANT: Don't forget to set this back to null at the end of your fixture code context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS,"tableTable.*\\.doTable"); }
@Override public void assign(final String name, final Object value) { inner.assign(name, value); }
@Override public void assign(final String name, final Object value) { inner.assign(name, value); }
public List<List<String>> doTable(List<List<String>> table) { try { return doTableImpl(table); } finally { // IMPORTANT: Switch symbol replacement on again // or you get bad surprises context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS, null); } }
public List<List<String>> doTable(List<List<String>> table) { try { return doTableImpl(table); } finally { // IMPORTANT: Switch symbol replacement on again // or you get bad surprises context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS, null); } }
protected boolean assignSymbolIfApplicable(String text, Object value) { String symbol = SlimSymbol.isSymbolAssignment(text); boolean result = symbol != null; if (result) { context.assign(symbol, value); } return result; } }
public List<List<String>> doTable(List<List<String>> table) { try { return doTableImpl(table); } finally { // IMPORTANT: Switch symbol replacement on again // or you get bad surprises context.assign(StatementExecutor.SLIM_AGENT_FIXTURE_HANDLES_SYMBOLS, null); } }
protected boolean assignSymbolIfApplicable(String text, Object value) { String symbol = SlimSymbol.isSymbolAssignment(text); boolean result = symbol != null; if (result) { context.assign(symbol, value); } return result; } }
protected boolean assignSymbolIfApplicable(String text, Object value) { String symbol = SlimSymbol.isSymbolAssignment(text); boolean result = symbol != null; if (result) { context.assign(symbol, value); } return result; }