Class SizeAttributeComparatorTest
java.lang.Object
de.hybris.platform.acceleratorservices.search.comparators.SizeAttributeComparatorTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()Creates list of size systems and comparator to put under the testvoidThe most (interesting) important test method.voidIt's actually testing regexp but anyway:voidTest method forSizeAttributeComparator.getPattern().voidTest method forSizeAttributeComparator.getSizeSystemIndex(java.lang.String).voidTest method forSizeAttributeComparator.getSizeSystems().voidTest method forSizeAttributeComparator.isNumber(java.lang.String).void
-
Constructor Details
-
SizeAttributeComparatorTest
public SizeAttributeComparatorTest()
-
-
Method Details
-
before
public void before()Creates list of size systems and comparator to put under the test -
testCompare
public void testCompare()The most (interesting) important test method. Verifies if comparator respects size systems when doing comparison. -
testIsNumber
public void testIsNumber()Test method forSizeAttributeComparator.isNumber(java.lang.String). -
testGetSizeSystemIndex
public void testGetSizeSystemIndex()Test method forSizeAttributeComparator.getSizeSystemIndex(java.lang.String). -
testNumericCompare
public void testNumericCompare() -
testGetNumber
public void testGetNumber()It's actually testing regexp but anyway: -
testGetPattern
public void testGetPattern()Test method forSizeAttributeComparator.getPattern(). -
testGetSizeSystems
public void testGetSizeSystems()Test method forSizeAttributeComparator.getSizeSystems().
-