Class BatchIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.yacceleratorcore.batch.task.BatchIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class BatchIntegrationTest extends ServicelayerTest
Integration test forImpexTransformerTaskandAbstractImpexRunnerTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interfaceBatchIntegrationTest.FileContentprotected static classBatchIntegrationTest.ProductContent
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description BatchIntegrationTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateFile(java.io.File file, java.lang.Long productId, BatchIntegrationTest.FileContent fileContent)protected BatchHeadercreateHeader(java.io.File file)protected ProductModelprocessFile(java.lang.Long productId, java.lang.String filePrefix, BatchIntegrationTest.FileContent content)voidsetUp()voidtearDown()voidtestBasicProduct()voidtestMedia()voidtestMerchandise()voidtestPrice()voidtestStock()voidtestTax()voidtestVariant()protected voidverifyMedia(MediaModel media, java.lang.String format)-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown()
-
testBasicProduct
public void testBasicProduct() throws java.lang.Exception- Throws:
java.lang.Exception
-
testPrice
public void testPrice() throws java.lang.Exception- Throws:
java.lang.Exception
-
testStock
public void testStock() throws java.lang.Exception- Throws:
java.lang.Exception
-
testTax
public void testTax() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMerchandise
public void testMerchandise() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMedia
public void testMedia() throws java.lang.Exception- Throws:
java.lang.Exception
-
testVariant
public void testVariant() throws java.lang.Exception- Throws:
java.lang.Exception
-
verifyMedia
protected void verifyMedia(MediaModel media, java.lang.String format)
-
processFile
protected ProductModel processFile(java.lang.Long productId, java.lang.String filePrefix, BatchIntegrationTest.FileContent content) throws java.lang.Exception
- Throws:
java.lang.Exception
-
createHeader
protected BatchHeader createHeader(java.io.File file)
-
createFile
protected void createFile(java.io.File file, java.lang.Long productId, BatchIntegrationTest.FileContent fileContent) throws java.io.IOException- Throws:
java.io.IOException
-
-