@IntegrationTest public class B2BUnitServiceTest extends ServicelayerTransactionalTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
B2BUnitServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
void |
changeInActiveStateTriggersWarningMessage() |
B2BCustomerModel |
login(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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void testRestrictionsOfUsersAndUnits()
throws Exception
Exceptionpublic void testGetApprovalProcessCode()
throws Exception
Exceptionpublic void shouldUpdateBranchInSession()
throws Exception
Exceptionpublic void shouldGetAllBranchAndParentUnitOfChildUnit()
public void shouldDisableBranchofParentUnit()
public void shouldGetParentUnitForCustomerWithMultipleUnitsAssigned()
public void changeInActiveStateTriggersWarningMessage()
public B2BCustomerModel login(String userId)
userId - UserModelpublic void login(UserModel user)
user - Copyright © 2017 SAP SE. All Rights Reserved.