Class UiTypeFinderImplTest

java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.UiTypeFinderImplTest

@UnitTest public class UiTypeFinderImplTest extends Object
Unit test for UiTypeFinderImpl
  • Constructor Details

    • UiTypeFinderImplTest

      public UiTypeFinderImplTest()
  • Method Details

    • setup

      public void setup()
    • createSimpleInput

      protected CsticModel createSimpleInput()
    • createNumericInput

      protected CsticModel createNumericInput(int valueType)
    • createSelection

      protected CsticModel createSelection(int valueType, int numOptions, boolean isMultivalued)
    • givenFloatThenUiTypeNumeric

      public void givenFloatThenUiTypeNumeric() throws Exception
      Throws:
      Exception
    • givenFloatReadOnlyThenUiTypeReadOnly

      public void givenFloatReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenIntegerThenUiTypeNumeric

      public void givenIntegerThenUiTypeNumeric() throws Exception
      Throws:
      Exception
    • givenIntegerReadOnlyThenUiTypeReadOnly

      public void givenIntegerReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenStringThenUiTypeString

      public void givenStringThenUiTypeString() throws Exception
      Throws:
      Exception
    • givenStringReadOnlyThenUiTypeReadOnly

      public void givenStringReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenStringAndMultiValueThenUiTypeCheckbox

      public void givenStringAndMultiValueThenUiTypeCheckbox() throws Exception
      Throws:
      Exception
    • givenStringAndMultiValueReadOnlyThenUiTypeReadOnly

      public void givenStringAndMultiValueReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenStringAnd4ValuesThenUiTypeRadio

      public void givenStringAnd4ValuesThenUiTypeRadio() throws Exception
      Throws:
      Exception
    • givenFloatAnd4ValuesThenUiTypeRadio

      public void givenFloatAnd4ValuesThenUiTypeRadio() throws Exception
      Throws:
      Exception
    • givenFloatAnd4ValuesReadOnlyThenUiTypeReadOnly

      public void givenFloatAnd4ValuesReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenStringAnd5ValuesThenUiTypeDDLB

      public void givenStringAnd5ValuesThenUiTypeDDLB() throws Exception
      Throws:
      Exception
    • givenStringAnd5ValuesReadOnlyThenUiTypeReadOnly

      public void givenStringAnd5ValuesReadOnlyThenUiTypeReadOnly() throws Exception
      Throws:
      Exception
    • givenIntAnd5ValuesThenUiTypeDDLB

      public void givenIntAnd5ValuesThenUiTypeDDLB() throws Exception
      Throws:
      Exception
    • givenStringAndMultivaluedDomainThenUiCheckboxList

      public void givenStringAndMultivaluedDomainThenUiCheckboxList() throws Exception
      Throws:
      Exception
    • givenStringAndMultivaluedDomainAndAllowsAdditionalValueThenNotImplemented

      public void givenStringAndMultivaluedDomainAndAllowsAdditionalValueThenNotImplemented() throws Exception
      Throws:
      Exception
    • givenFloatAndMultivaluedDomainThenUiCheckboxList

      public void givenFloatAndMultivaluedDomainThenUiCheckboxList() throws Exception
      Throws:
      Exception
    • givenUndefinedThenUiTypeNotImplemented

      public void givenUndefinedThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenDateThenUiTypeNotImplemented

      public void givenDateThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenCurrencyThenUiTypeNotImplemented

      public void givenCurrencyThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenClassThenUiTypeNotImplemented

      public void givenClassThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenBooleanThenUiTypeNotImplemented

      public void givenBooleanThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueStringThenDropDownAdditionalInputString

      public void givenSingleValueAllowsAdditionalValueStringThenDropDownAdditionalInputString() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueNumericThenDropDownAdditionalInputNumeric

      public void givenSingleValueAllowsAdditionalValueNumericThenDropDownAdditionalInputNumeric() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueStringThenRadioAdditionalInputString

      public void givenSingleValueAllowsAdditionalValueStringThenRadioAdditionalInputString() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueStringNoDomainThenInputString

      public void givenSingleValueAllowsAdditionalValueStringNoDomainThenInputString() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueNumericSingleDomainSelectedThenInputNumeric

      public void givenSingleValueAllowsAdditionalValueNumericSingleDomainSelectedThenInputNumeric() throws Exception
      Throws:
      Exception
    • givenSingleValueAllowsAdditionalValueNumericSingleDomainNotSelectedThenRadioAdditionalInputNumeric

      public void givenSingleValueAllowsAdditionalValueNumericSingleDomainNotSelectedThenRadioAdditionalInputNumeric() throws Exception
      Throws:
      Exception
    • givenSingleSelectionIntervalThenUiTypeNotImplemented

      public void givenSingleSelectionIntervalThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenMultiValuedIntervalThenUiTypeNotImplemented

      public void givenMultiValuedIntervalThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenScientificThenUiTypeNotImplemented

      public void givenScientificThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenMultivaluedStringWithoutStaticDomainThenUiTypeCheckboxList

      public void givenMultivaluedStringWithoutStaticDomainThenUiTypeCheckboxList() throws Exception
      Throws:
      Exception
    • givenMultivaluedStringWithoutStaticDomainButAssignedValuesThenUiTypeCheckboxList

      public void givenMultivaluedStringWithoutStaticDomainButAssignedValuesThenUiTypeCheckboxList() throws Exception
      Throws:
      Exception
    • givenStringWithTemplateThenUiTypeNotImplemented

      public void givenStringWithTemplateThenUiTypeNotImplemented() throws Exception
      Throws:
      Exception
    • givenIntegerWithIntervalWithoutAddValThenUiTypeNumeric

      public void givenIntegerWithIntervalWithoutAddValThenUiTypeNumeric() throws Exception
      Throws:
      Exception
    • givenIntegerWithIntervalWithAddValThenUiTypeNumeric

      public void givenIntegerWithIntervalWithAddValThenUiTypeNumeric() throws Exception
      Throws:
      Exception
    • testHasValueImages

      public void testHasValueImages() throws Exception
      Throws:
      Exception
    • testHasCsticValueImages

      public void testHasCsticValueImages() throws Exception
      Throws:
      Exception
    • givenSingleSelectionImage

      public void givenSingleSelectionImage() throws Exception
      Throws:
      Exception
    • givenSingleSelectionImageReadOnly

      public void givenSingleSelectionImageReadOnly() throws Exception
      Throws:
      Exception
    • givenMultiSelectionImage

      public void givenMultiSelectionImage() throws Exception
      Throws:
      Exception
    • givenMultiSelectionImageReadOnly

      public void givenMultiSelectionImageReadOnly() throws Exception
      Throws:
      Exception
    • givenMultiSelectionImageOriginallySingleCheckbox

      public void givenMultiSelectionImageOriginallySingleCheckbox() throws Exception
      Throws:
      Exception
    • createCsticDataWithOneValueImage

      protected CsticData createCsticDataWithOneValueImage(int valueNumber, int imageValuePosition)
    • testMergeUiTypeListLowMem_bothEmpty

      public void testMergeUiTypeListLowMem_bothEmpty()
    • testMergeUiTypeListLowMem_list2Empty

      public void testMergeUiTypeListLowMem_list2Empty()
    • testMergeUiTypeListLowMem_list1Empty

      public void testMergeUiTypeListLowMem_list1Empty()
    • testMergeUiTypeListLowMem_bothFilled

      public void testMergeUiTypeListLowMem_bothFilled()
    • testAddUiTypeToListLowMem_empty

      public void testAddUiTypeToListLowMem_empty()
    • testAddUiTypeToListLowMem_notEmpty

      public void testAddUiTypeToListLowMem_notEmpty()
    • testChooseUiType_notImplemented

      public void testChooseUiType_notImplemented()
    • testChooseUiType

      public void testChooseUiType()
    • testChooseUiType_ambigious

      public void testChooseUiType_ambigious()
    • testChooseUiValidationType_none

      public void testChooseUiValidationType_none()
    • testChooseUiValidationType

      public void testChooseUiValidationType()
    • testChooseUiValidationType_ambigious

      public void testChooseUiValidationType_ambigious()
    • testIsReadonly

      public void testIsReadonly()
    • testIsConstrainedOrHasAssignableValues

      public void testIsConstrainedOrHasAssignableValues()
    • testIsIntervallBasedInput

      public void testIsIntervallBasedInput()
    • testIsSimpleString

      public void testIsSimpleString()
    • testIsSimpleNumber

      public void testIsSimpleNumber()
    • testeditableWithAdditionalValue

      public void testeditableWithAdditionalValue()
    • testIsAdditionalValueWithoutDomian

      public void testIsAdditionalValueWithoutDomian()
    • testIsInput

      public void testIsInput()
    • testIsMultiSelectionImage

      public void testIsMultiSelectionImage()
    • testIsRadioButtonReturnsTrue

      public void testIsRadioButtonReturnsTrue()
    • testIsRadioButtonReturnsFalse

      public void testIsRadioButtonReturnsFalse()