String repositoryId = getRepositoryId();
// test null property id
InMemoryDocumentTypeDefinition typeDef = createTypeForAddingAtRuntime();
PropertyStringDefinitionImpl pd = getPropertyDefinitionImpl(typeDef);
pd.setId(null);
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
// test illegal property id
typeDef = createTypeForAddingAtRuntime();
pd = getPropertyDefinitionImpl(typeDef);
pd.setQueryName(pd.getQueryName() + "!*!");
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
// test null property query name
typeDef = createTypeForAddingAtRuntime();
pd = getPropertyDefinitionImpl(typeDef);
pd.setQueryName(null);
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
// test illegal property query name
typeDef = createTypeForAddingAtRuntime();
pd = getPropertyDefinitionImpl(typeDef);
pd.setQueryName(pd.getQueryName() + "!!!");
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
// test null property local name
typeDef = createTypeForAddingAtRuntime();
pd = getPropertyDefinitionImpl(typeDef);
pd.setLocalName(null);
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
// test illegal property local name
typeDef = createTypeForAddingAtRuntime();
pd = getPropertyDefinitionImpl(typeDef);
pd.setLocalName(typeDef.getLocalName() + "!!!");
checkAddingType(repositoryId, typeDef, CmisInvalidArgumentException.class);
log.info("... testTypeMutabilityPropertyNameConstraints() finished.");
}