Package de.hybris.platform.util.database
Class TableNameDatabaseMetaDataCallbackTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.util.database.TableNameDatabaseMetaDataCallbackTest
-
- All Implemented Interfaces:
JaloSessionHolder
@RunListeners(LogRunListener.class) @IntegrationTest public class TableNameDatabaseMetaDataCallbackTest extends ServicelayerBaseTest
Demonstrates how the DropTablesTool filters out its tenant specific tables.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description TableNameDatabaseMetaDataCallbackTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupDB()voidfinish()Delegates to de.hybris.platform.testframework.HybrisTestLogic#finish()voidinit()Delegates to de.hybris.platform.testframework.HybrisTestLogic#init()voidprepare()voidtestDropAllMyNonPrefixedTablesLeaveOthersWithPrefixes()voidtestDropOnlyTablesWithMyPrefix()voidtestOmmitAdminTables()voidtestOmmitAdminTablesForCustomTablePrefix()-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, getOrCreateCurrency, getOrCreateLanguage, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
prepare
public void prepare()
-
testDropOnlyTablesWithMyPrefix
public void testDropOnlyTablesWithMyPrefix() throws org.springframework.jdbc.support.MetaDataAccessException- Throws:
org.springframework.jdbc.support.MetaDataAccessException
-
testOmmitAdminTables
public void testOmmitAdminTables() throws org.springframework.jdbc.support.MetaDataAccessException- Throws:
org.springframework.jdbc.support.MetaDataAccessException
-
testOmmitAdminTablesForCustomTablePrefix
public void testOmmitAdminTablesForCustomTablePrefix() throws org.springframework.jdbc.support.MetaDataAccessException- Throws:
org.springframework.jdbc.support.MetaDataAccessException
-
testDropAllMyNonPrefixedTablesLeaveOthersWithPrefixes
public void testDropAllMyNonPrefixedTablesLeaveOthersWithPrefixes() throws org.springframework.jdbc.support.MetaDataAccessException- Throws:
org.springframework.jdbc.support.MetaDataAccessException
-
cleanupDB
public void cleanupDB()
-
init
public void init() throws JaloSystemExceptionDescription copied from class:HybrisJUnit4TestDelegates to de.hybris.platform.testframework.HybrisTestLogic#init()- Overrides:
initin classHybrisJUnit4Test- Throws:
JaloSystemException- there was a security problem while creating the session
-
finish
public void finish() throws JaloSecurityExceptionDescription copied from class:HybrisJUnit4TestDelegates to de.hybris.platform.testframework.HybrisTestLogic#finish()- Overrides:
finishin classHybrisJUnit4Test- Throws:
JaloSecurityException
-
-