/**
* Tests to verify the logging of params
*/
public void testParamLogging() throws Exception {
ControllerDef controller = getJavaController("java://org.auraframework.impl.java.controller.JavaTestController");
JavaAction nonLoggableStringAction = (JavaAction) controller.createAction("getString", null);
JavaAction nonLoggableIntAction = (JavaAction) controller.createAction("getInt", null);
JavaAction loggableStringAction = (JavaAction) controller.createAction("getLoggableString",
Collections.singletonMap("param", (Object) "bar"));
JavaAction loggableIntAction = (JavaAction) controller.createAction("getLoggableString",
Collections.singletonMap("param", (Object) 1));
JavaAction loggableNullAction = (JavaAction) controller.createAction("getLoggableString",
Collections.singletonMap("param", null));
TestLogger testLogger = new TestLogger();
nonLoggableStringAction.logParams(testLogger);
assertNull("Key should not have been logged", testLogger.key);