Class BaseObjectEntryManagerImplTestCase
java.lang.Object
com.liferay.object.rest.test.util.BaseObjectEntryManagerImplTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static com.liferay.portal.kernel.model.Userprotected static longprotected static com.liferay.portal.vulcan.dto.converter.DTOConverterContextprotected static com.liferay.portal.vulcan.dto.converter.DTOConverterRegistryprotected com.liferay.list.type.model.ListTypeDefinitionprotected com.liferay.list.type.service.ListTypeDefinitionLocalServiceprotected com.liferay.object.service.ObjectDefinitionLocalServiceprotected com.liferay.object.service.ObjectFieldLocalService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertEquals(com.liferay.object.rest.dto.v1_0.ObjectEntry actualObjectEntry, com.liferay.object.rest.dto.v1_0.ObjectEntry expectedObjectEntry) protected voidassertEquals(List<com.liferay.object.rest.dto.v1_0.ObjectEntry> actualObjectEntries, List<com.liferay.object.rest.dto.v1_0.ObjectEntry> expectedObjectEntries) protected voidassertObjectEntryProperties(com.liferay.object.rest.dto.v1_0.ObjectEntry actualObjectEntry, Map<String, Object> actualObjectEntryProperties, Map.Entry<String, Object> expectedEntry) protected StringbuildEqualsExpressionFilterString(String fieldName, Object value) protected StringbuildRangeExpression(Date date1, Date date2, String fieldName, String pattern) protected com.liferay.portal.vulcan.pagination.Page<com.liferay.object.rest.dto.v1_0.ObjectEntry>getObjectEntries(Map<String, String> context, com.liferay.portal.kernel.search.Sort[] sorts) protected StringvoidsetUp()protected voidtestGetObjectEntries(Map<String, String> context, com.liferay.object.rest.dto.v1_0.ObjectEntry... expectedObjectEntries)
-
Field Details
-
adminUser
protected static com.liferay.portal.kernel.model.User adminUser -
companyId
protected static long companyId -
dtoConverterContext
protected static com.liferay.portal.vulcan.dto.converter.DTOConverterContext dtoConverterContext -
dtoConverterRegistry
protected static com.liferay.portal.vulcan.dto.converter.DTOConverterRegistry dtoConverterRegistry -
listTypeDefinition
protected com.liferay.list.type.model.ListTypeDefinition listTypeDefinition -
listTypeDefinitionLocalService
protected com.liferay.list.type.service.ListTypeDefinitionLocalService listTypeDefinitionLocalService -
objectDefinitionLocalService
protected com.liferay.object.service.ObjectDefinitionLocalService objectDefinitionLocalService -
objectFieldLocalService
protected com.liferay.object.service.ObjectFieldLocalService objectFieldLocalService
-
-
Constructor Details
-
BaseObjectEntryManagerImplTestCase
public BaseObjectEntryManagerImplTestCase()
-
-
Method Details
-
setUp
- Throws:
Exception
-
assertEquals
protected void assertEquals(List<com.liferay.object.rest.dto.v1_0.ObjectEntry> actualObjectEntries, List<com.liferay.object.rest.dto.v1_0.ObjectEntry> expectedObjectEntries) throws Exception - Throws:
Exception
-
assertEquals
protected void assertEquals(com.liferay.object.rest.dto.v1_0.ObjectEntry actualObjectEntry, com.liferay.object.rest.dto.v1_0.ObjectEntry expectedObjectEntry) throws Exception - Throws:
Exception
-
assertObjectEntryProperties
protected void assertObjectEntryProperties(com.liferay.object.rest.dto.v1_0.ObjectEntry actualObjectEntry, Map<String, Object> actualObjectEntryProperties, Map.Entry<String, throws ExceptionObject> expectedEntry) - Throws:
Exception
-
buildEqualsExpressionFilterString
-
buildRangeExpression
-
getObjectEntries
protected com.liferay.portal.vulcan.pagination.Page<com.liferay.object.rest.dto.v1_0.ObjectEntry> getObjectEntries(Map<String, String> context, com.liferay.portal.kernel.search.Sort[] sorts) throws Exception- Throws:
Exception
-
getValue
-
testGetObjectEntries
protected void testGetObjectEntries(Map<String, String> context, com.liferay.object.rest.dto.v1_0.ObjectEntry... expectedObjectEntries) throws Exception- Throws:
Exception
-