Package de.hybris.platform.impex.jalo
Class ImpExImportPerformanceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.impex.jalo.AbstractImpExTest
-
- de.hybris.platform.impex.jalo.ImpExImportPerformanceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@PerformanceTest public class ImpExImportPerformanceTest extends AbstractImpExTest
Performs an import test which checks the performance of the import process compared to programmatically import.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.impex.jalo.AbstractImpExTest
english, german, utf8, windows1252
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ImpExImportPerformanceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected long
createItemsJalo(int count, int offset)
Creates unit items programmatically.protected long
importItems(int count, int offset)
Creates unit items using impex import.void
testPerf()
Performance test which createsCOUNT
items programmatically, per import and per import.-
Methods inherited from class de.hybris.platform.impex.jalo.AbstractImpExTest
initJaloItems, setLegacyMode
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
testPerf
public void testPerf()
Performance test which createsCOUNT
items programmatically, per import and per import.
-
createItemsJalo
protected long createItemsJalo(int count, int offset)
Creates unit items programmatically.- Parameters:
count
- amount of items to createoffset
- number offset for naming the items- Returns:
- creation time for all items
-
importItems
protected long importItems(int count, int offset)
Creates unit items using impex import.- Parameters:
count
- amount of items to createoffset
- number offset for naming the items- Returns:
- time for all items
-
-