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 forImpexTransformerTask
andAbstractImpexRunnerTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
BatchIntegrationTest.FileContent
protected static class
BatchIntegrationTest.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 void
createFile(java.io.File file, java.lang.Long productId, BatchIntegrationTest.FileContent fileContent)
protected BatchHeader
createHeader(java.io.File file)
protected ProductModel
processFile(java.lang.Long productId, java.lang.String filePrefix, BatchIntegrationTest.FileContent content)
void
setUp()
void
tearDown()
void
testBasicProduct()
void
testMedia()
void
testMerchandise()
void
testPrice()
void
testStock()
void
testTax()
void
testVariant()
protected void
verifyMedia(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
-
-