@IntegrationTest public class B2BUnitServiceTest extends ServicelayerTransactionalTest
defaultLanguage, 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, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic 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 © 2017 SAP SE. All Rights Reserved.