Package de.hybris.platform.servicelayer
Class ExtendedServicelayerBaseTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ExtendedServicelayerBaseTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
ExtendedServicelayerTransactionalBaseTest
public class ExtendedServicelayerBaseTest extends ServicelayerBaseTest
Service layer test with possibility to create sample data.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description ExtendedServicelayerBaseTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createCoreData()
static void
createDefaultCatalog()
protected static void
importCsv(java.lang.String csvFile, java.lang.String encoding)
Imports given csv file from classpath using given encoding.protected static void
importStream(java.io.InputStream is, java.lang.String encoding, java.lang.String resourceName)
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
createDefaultCatalog
public static void createDefaultCatalog() throws java.lang.Exception
- Throws:
java.lang.Exception
-
importCsv
protected static void importCsv(java.lang.String csvFile, java.lang.String encoding) throws ImpExException
Imports given csv file from classpath using given encoding. Fails in case of import errors.- Parameters:
csvFile
- name of file to import from classpathencoding
- encoding to use- Throws:
ImpExException
-
importStream
protected static void importStream(java.io.InputStream is, java.lang.String encoding, java.lang.String resourceName) throws ImpExException
- Throws:
ImpExException
-
createCoreData
public static void createCoreData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-