mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-626: Unit test fallout
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@47891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -214,8 +214,8 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
PropertyDefinition propDef = propDefs.get(result);
|
PropertyDefinition propDef = propDefs.get(result);
|
||||||
assertNotNull(propDef);
|
assertNotNull(propDef);
|
||||||
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
||||||
assertEquals("Description", propDef.getDescription());
|
assertEquals("Description", propDef.getDescription(dictionaryService));
|
||||||
assertEquals("Label1", propDef.getTitle());
|
assertEquals("Label1", propDef.getTitle(dictionaryService));
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -259,8 +259,8 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
PropertyDefinition propDef = propDefs.get(result);
|
PropertyDefinition propDef = propDefs.get(result);
|
||||||
assertNotNull(propDef);
|
assertNotNull(propDef);
|
||||||
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
||||||
assertEquals("Description", propDef.getDescription());
|
assertEquals("Description", propDef.getDescription(dictionaryService));
|
||||||
assertEquals("Label2", propDef.getTitle());
|
assertEquals("Label2", propDef.getTitle(dictionaryService));
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
@@ -310,8 +310,8 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
PropertyDefinition propDef = propDefs.get(result);
|
PropertyDefinition propDef = propDefs.get(result);
|
||||||
assertNotNull(propDef);
|
assertNotNull(propDef);
|
||||||
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
||||||
assertEquals("Description", propDef.getDescription());
|
assertEquals("Description", propDef.getDescription(dictionaryService));
|
||||||
assertEquals("Label3", propDef.getTitle());
|
assertEquals("Label3", propDef.getTitle(dictionaryService));
|
||||||
assertEquals("default", propDef.getDefaultValue());
|
assertEquals("default", propDef.getDefaultValue());
|
||||||
assertFalse(propDef.isMandatory());
|
assertFalse(propDef.isMandatory());
|
||||||
assertFalse(propDef.isMultiValued());
|
assertFalse(propDef.isMultiValued());
|
||||||
@@ -411,8 +411,8 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
PropertyDefinition propDef = propDefs.get(result);
|
PropertyDefinition propDef = propDefs.get(result);
|
||||||
assertNotNull(propDef);
|
assertNotNull(propDef);
|
||||||
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
||||||
assertEquals("Description", propDef.getDescription());
|
assertEquals("Description", propDef.getDescription(dictionaryService));
|
||||||
assertEquals("Label", propDef.getTitle());
|
assertEquals("Label", propDef.getTitle(dictionaryService));
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -456,8 +456,8 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
PropertyDefinition propDef = propDefs.get(result);
|
PropertyDefinition propDef = propDefs.get(result);
|
||||||
assertNotNull(propDef);
|
assertNotNull(propDef);
|
||||||
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
assertEquals(DataTypeDefinition.TEXT, propDef.getDataType().getName());
|
||||||
assertEquals("Description", propDef.getDescription());
|
assertEquals("Description", propDef.getDescription(dictionaryService));
|
||||||
assertEquals("Label", propDef.getTitle());
|
assertEquals("Label", propDef.getTitle(dictionaryService));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -679,7 +679,7 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
{
|
{
|
||||||
System.out.println(" - " + prop.toString());
|
System.out.println(" - " + prop.toString());
|
||||||
|
|
||||||
String propId = props.get(prop).getTitle();
|
String propId = props.get(prop).getTitle(dictionaryService);
|
||||||
assertNotNull("null client-id for " + prop, propId);
|
assertNotNull("null client-id for " + prop, propId);
|
||||||
|
|
||||||
System.out.println(" " + propId);
|
System.out.println(" " + propId);
|
||||||
@@ -701,7 +701,7 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
for (QName reference : references.keySet())
|
for (QName reference : references.keySet())
|
||||||
{
|
{
|
||||||
System.out.println(" - " + reference.toString());
|
System.out.println(" - " + reference.toString());
|
||||||
System.out.println(" " + references.get(reference).getTitle());
|
System.out.println(" " + references.get(reference).getTitle(dictionaryService));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -720,7 +720,7 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
for (ConstraintDefinition constraint : constraints)
|
for (ConstraintDefinition constraint : constraints)
|
||||||
{
|
{
|
||||||
System.out.println(" - " + constraint.getName());
|
System.out.println(" - " + constraint.getName());
|
||||||
System.out.println(" " + constraint.getTitle());
|
System.out.println(" " + constraint.getTitle(dictionaryService));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@@ -842,7 +842,7 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
{
|
{
|
||||||
if (conDef.getName().equals(testCon))
|
if (conDef.getName().equals(testCon))
|
||||||
{
|
{
|
||||||
assertEquals(conTitle, conDef.getTitle());
|
assertEquals(conTitle, conDef.getTitle(dictionaryService));
|
||||||
|
|
||||||
Constraint con = conDef.getConstraint();
|
Constraint con = conDef.getConstraint();
|
||||||
assertTrue(con instanceof RMListOfValuesConstraint);
|
assertTrue(con instanceof RMListOfValuesConstraint);
|
||||||
@@ -891,7 +891,7 @@ public class RecordsManagementAdminServiceImplTest extends BaseRMTestCase
|
|||||||
{
|
{
|
||||||
if (conDef.getName().equals(testCon))
|
if (conDef.getName().equals(testCon))
|
||||||
{
|
{
|
||||||
assertEquals(conTitle, conDef.getTitle());
|
assertEquals(conTitle, conDef.getTitle(dictionaryService));
|
||||||
|
|
||||||
Constraint con = conDef.getConstraint();
|
Constraint con = conDef.getConstraint();
|
||||||
assertTrue(con instanceof RMListOfValuesConstraint);
|
assertTrue(con instanceof RMListOfValuesConstraint);
|
||||||
|
Reference in New Issue
Block a user