Class DefaultB2BPermissionServiceMockTest
- java.lang.Object
-
- org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests
-
- de.hybris.platform.servicelayer.MockTest
-
- de.hybris.platform.b2b.mock.HybrisMokitoTest
-
- de.hybris.platform.b2b.services.impl.DefaultB2BPermissionServiceMockTest
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@UnitTest public class DefaultB2BPermissionServiceMockTest extends HybrisMokitoTest
Mock test for the B2BPermissionService
-
-
Constructor Summary
Constructors Constructor Description DefaultB2BPermissionServiceMockTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestEvaluatePermissions()voidtestFindAllB2BPermissionTypes()voidtestGetAllB2BPermissions()voidtestGetApproversForOpenPermissions()voidtestGetB2BPermissionByCode()voidtestGetEligableApprovers()voidtestGetOpenPermissions()voidtestNeedsApproval()voidtestPermissionExists()
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
testEvaluatePermissions
public void testEvaluatePermissions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetApproversForOpenPermissions
public void testGetApproversForOpenPermissions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testNeedsApproval
public void testNeedsApproval() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetEligableApprovers
public void testGetEligableApprovers() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetOpenPermissions
public void testGetOpenPermissions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetB2BPermissionByCode
public void testGetB2BPermissionByCode() throws java.lang.Exception- Throws:
java.lang.Exception
-
testGetAllB2BPermissions
public void testGetAllB2BPermissions() throws java.lang.Exception- Throws:
java.lang.Exception
-
testPermissionExists
public void testPermissionExists() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFindAllB2BPermissionTypes
public void testFindAllB2BPermissionTypes() throws java.lang.Exception- Throws:
java.lang.Exception
-
-