Class BaseObjectEntryManagerImplTestCase

java.lang.Object
com.liferay.object.rest.test.util.BaseObjectEntryManagerImplTestCase

public abstract class BaseObjectEntryManagerImplTestCase extends Object
  • 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

      public void setUp() throws Exception
      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,Object> expectedEntry) throws Exception
      Throws:
      Exception
    • buildEqualsExpressionFilterString

      protected String buildEqualsExpressionFilterString(String fieldName, Object value)
    • buildRangeExpression

      protected String buildRangeExpression(Date date1, Date date2, String fieldName, String pattern)
    • 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

      protected String getValue(Object value)
    • testGetObjectEntries

      protected void testGetObjectEntries(Map<String,String> context, com.liferay.object.rest.dto.v1_0.ObjectEntry... expectedObjectEntries) throws Exception
      Throws:
      Exception