Tabnine Logo
BusinessObjectDataHelper.validateRegistrationDateRangeFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
validateRegistrationDateRangeFilter
method
in
org.finra.herd.service.helper.BusinessObjectDataHelper

Best Java code snippets using org.finra.herd.service.helper.BusinessObjectDataHelper.validateRegistrationDateRangeFilter (Showing top 5 results out of 315)

origin: FINRAOS/herd

@Test
public void testValidateRegistrationDateRangeFilter() throws DatatypeConfigurationException
{
  XMLGregorianCalendar start = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-01");
  XMLGregorianCalendar end = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-02");
  // Start date is less then end date
  businessObjectDataHelper.validateRegistrationDateRangeFilter(new RegistrationDateRangeFilter(start, end));
  // Start date is equel end date
  businessObjectDataHelper.validateRegistrationDateRangeFilter(new RegistrationDateRangeFilter(start, start));
}
origin: FINRAOS/herd

@Test
public void testValidateRegistrationDateRangeFilterStartDateIsGreaterThenEndDate() throws DatatypeConfigurationException
{
  XMLGregorianCalendar end = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-01");
  XMLGregorianCalendar start = DatatypeFactory.newInstance().newXMLGregorianCalendar("2018-04-02");
  try
  {
    businessObjectDataHelper.validateRegistrationDateRangeFilter(new RegistrationDateRangeFilter(start, end));
    fail();
  }
  catch (IllegalArgumentException e)
  {
    assertEquals(String.format("The start registration date \"%s\" cannot be greater than the end registration date \"%s\".", start, end),
      e.getMessage());
  }
}
origin: FINRAOS/herd

@Test
public void testValidateRegistrationDateRangeFilterMissingStartAndEndDate()
{
  try
  {
    businessObjectDataHelper.validateRegistrationDateRangeFilter(new RegistrationDateRangeFilter());
    fail();
  }
  catch (IllegalArgumentException e)
  {
    assertEquals("Either start registration date or end registration date must be specified.", e.getMessage());
  }
}
origin: org.finra.herd/herd-service

businessObjectDataHelper.validateRegistrationDateRangeFilter(businessObjectDataSearchKey.getRegistrationDateRangeFilter());
origin: FINRAOS/herd

businessObjectDataHelper.validateRegistrationDateRangeFilter(businessObjectDataSearchKey.getRegistrationDateRangeFilter());
org.finra.herd.service.helperBusinessObjectDataHelpervalidateRegistrationDateRangeFilter

Javadoc

Validates a registration date range filter. This method makes sure that a registration date range filter contains start date or end date or both.

Popular methods of BusinessObjectDataHelper

  • getBusinessObjectDataKey
    Returns a business object data key for the business object data entity.
  • businessObjectDataKeyToString
    Returns a string representation of the business object data key.
  • getStorageUnitByStorageName
    Gets a storage unit by storage name (case insensitive).
  • businessObjectDataEntityAltKeyToString
    Returns a string representation of the alternate key values for the business object data entity.
  • createBusinessObjectDataFromEntity
    Creates the business object data from the persisted entity.
  • createBusinessObjectDataKeyFromEntity
    Creates a business object data key from a business object data entity.
  • createBusinessObjectDataKeyFromStorageUnitKey
    Creates a business object data key from a storage unit key.
  • getDateFromString
    Gets a date in a date format from a string format or null if one wasn't specified. The format of the
  • getSubPartitionValues
    Gets the sub-partition values for the specified business object data entity.
  • validateBusinessObjectDataKey
    Validates the business object data key. This method also trims the key parameters.
  • validateSubPartitionValues
    Validates a list of sub-partition values. This method also trims the sub-partition values.
  • <init>
  • validateSubPartitionValues,
  • <init>,
  • assertBusinessObjectDataStatusEquals,
  • createBusinessObjectDataCreateRequest,
  • createBusinessObjectDataKey,
  • getPartitionFilter,
  • getPartitionValue,
  • getPrimaryAndSubPartitionValues,
  • validatePartitionValueFilters

Popular in Java

  • Reading from database using SQL prepared statement
  • getContentResolver (Context)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now