/**
* Error tests related to instantiable GXPs.
*/
public class InstantiableErrorTest extends BaseTestCase {
public void testCallConstructor_missingAttribute() throws Exception {
FileRef callee = createFile("callee",
"<gxp:constructor>",
" <gxp:param name='s1' type='String' />",
"</gxp:constructor>",
"<gxp:param name='s2' type='String' />");
FileRef caller = createFile("caller", "<call:callee/>");
compileFiles(callee, caller);
assertAlert(new MissingAttributeError(pos(2,1), "<call:callee>", "s1"));
assertAlert(new MissingAttributeError(pos(2,1), "<call:callee>", "s2"));
assertNoUnexpectedAlerts();