AttributeDefImpl ad = getElement("<aura:attribute name='invalid' type='String' serializeTo=''/>");
assertEquals(SerializeToType.INVALID, ad.getSerializeTo());
}
public void testTypeInvalidJavaType() throws Exception {
AttributeDefImpl ad = getElement("<aura:attribute name='type' type='java://invalid'/>");
try {
ad.getTypeDef();
fail("Expected Exception to be thrown when attribute is a non-existent java type");
} catch (Throwable t) {
assertExceptionMessage(t, DefinitionNotFoundException.class, "No TYPE named java://invalid found");
}
}