@IntegrationTest public class B2BUnitServiceTest extends ServicelayerTransactionalTest
importServicedefaultLanguage, jaloSession| Constructor and Description |
|---|
B2BUnitServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
void |
changeInActiveStateTriggersWarningMessage() |
B2BCustomerModel |
login(java.lang.String userId)
Sets the user in the session and updates the branch in session context.
|
void |
login(UserModel user) |
void |
shouldDisableBranchofParentUnit() |
void |
shouldGetAllBranchAndParentUnitOfChildUnit()
This test is specially added for fetching the tree of child Unit in the organization hierarchy.
|
void |
shouldGetParentUnitForCustomerWithMultipleUnitsAssigned() |
void |
shouldUpdateBranchInSession() |
void |
testGetApprovalProcessCode() |
void |
testGetBranch() |
void |
testRestrictionsOfUsersAndUnits() |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void before()
throws java.lang.Exception
java.lang.Exceptionpublic void testRestrictionsOfUsersAndUnits()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetBranch()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetApprovalProcessCode()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldUpdateBranchInSession()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldGetAllBranchAndParentUnitOfChildUnit()
public void shouldDisableBranchofParentUnit()
public void shouldGetParentUnitForCustomerWithMultipleUnitsAssigned()
public void changeInActiveStateTriggersWarningMessage()
public B2BCustomerModel login(java.lang.String userId)
userId - UserModelpublic void login(UserModel user)
user - Copyright © 2018 SAP SE. All Rights Reserved.