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 -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, getOrCreateCurrency, getOrCreateLanguage, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
TableNameDatabaseMetaDataCallbackTest
public TableNameDatabaseMetaDataCallbackTest()
-
-
Method Details
-
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
Description 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
Description copied from class:HybrisJUnit4TestDelegates to de.hybris.platform.testframework.HybrisTestLogic#finish()- Overrides:
finishin classHybrisJUnit4Test- Throws:
JaloSecurityException
-