// 3.2: Verify the name of actiodefs
assertTrue(controllerActions.containsKey("functionName1"));
assertTrue(controllerActions.containsKey("functionName2"));
// 3.3: Verify each JavascriptAction Def
JavascriptActionDef jsActionDef = null;
// 3.3.1 Action Def 1
jsActionDef = controllerActions.get("functionName1");
// Javascript Controllers are to be called on the Client side
assertEquals(ActionType.CLIENT, jsActionDef.getActionType());
// Javascript actions have no return type
assertNull(jsActionDef.getReturnType());
// Verify the Serialized form of the objects
serializeAndGoldFile(controllerActions.get("functionName1"),
"_actionDef_functionName1");
// OBject that is to be verified, Qualified name
assertEquals("unexpected qualifiedName for functionName1",
"js://test.testJSController/ACTION$functionName1", jsActionDef
.getDescriptor().getQualifiedName());
// 3.3.2 Action Def 2
jsActionDef = controllerActions.get("functionName2");
// Javascript Controllers are to be called on the Client side
assertEquals(ActionType.CLIENT, jsActionDef.getActionType());
// Javascript actions have no return type
assertNull(jsActionDef.getReturnType());
// Verify the Serialized form of the objects
serializeAndGoldFile(controllerActions.get("functionName2"),
"_actionDef_functionName2");
// OBject that is to be verified, Qualified name
assertEquals("unexpected qualifiedName for functionName2",
"js://test.testJSController/ACTION$functionName2", jsActionDef
.getDescriptor().getQualifiedName());
}