@IntegrationTest public class PermissionsWebserviceTest extends AbstractPermissionsWebServicesTest
defaultLanguage, jaloSession| Constructor and Description |
|---|
PermissionsWebserviceTest() |
insertGlobalPermissioncreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionfinish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivatedpublic void importTestData()
throws ImpExException
ImpExExceptionpublic void shouldReturnAllTypesAccessesForAdmin()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldReturnsOtherUserPermissiondForAdmin()
throws IOException,
JAXBException
IOExceptionJAXBExceptionpublic void shouldReturnTypesAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForSubGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser4()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForSubGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser5()
throws JAXBException
JAXBExceptionpublic void shouldReturnTypesAccessesForUser6()
throws JAXBException
JAXBExceptionpublic void shouldReturnAttributeAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnAttributeAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributeAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributeAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAtrAttributeAccessesForSuperGroup()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAtrAttributeAccessesForUser1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemOwnerAttributeAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemOwnerAttributeAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributesAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributesAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAttributesAccessesForGroup1()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAttributesAccessesForUser2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemOwnerAttributeAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemOwnerAttributeAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributeAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserOwnerAttributeAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemAttributesAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnUserAttributesAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAttributeAccessesForGroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnItemWildcardAttributeAccessesForUser3()
throws JAXBException
JAXBExceptionpublic void shouldReturnGlobalPermissionForSubgroup2()
throws JAXBException
JAXBExceptionpublic void shouldReturnGlobalPermissionForUser5()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessGroup1Global()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessUser5Global()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessUser5Type()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessGroup1Type()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessUser5Attributes()
throws JAXBException
JAXBExceptionpublic void shouldReturn401WhenUser1AccessGroupAttributes()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSupergroupGlobal()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessGroup2Global()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSubgroup2Global()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSupergroupType()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessGroup2Type()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSubgroup2Type()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSupergroupAttributes()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessGroup2Attributes()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenEmployeemanager5AccessGroup2Attributes()
throws JAXBException
JAXBExceptionpublic void shouldReturn200WhenUser5AccessSubgroup2()
throws JAXBException
JAXBExceptionpublic void shouldFailValidationForAttributes()
throws IOException,
JAXBException
IOExceptionJAXBExceptionprotected PermissionsListWsDTO retrieveAttributesPermissions(String principal, String user, String attributes) throws JAXBException
JAXBExceptionprotected Response retrieveAttributesPermissionsResponse(String principal, String user, String attributes)
protected PermissionsListWsDTO retrieveTypesPermissions(String principal, String user, String types, String password) throws JAXBException
JAXBExceptionprotected PermissionsListWsDTO retrieveTypesPermissions(String principal, String user, String types) throws JAXBException
JAXBExceptionprotected Response retrieveTypesPermissionsResponse(String principal, String user, String types, String password)
protected PermissionsWsDTO retrieveGlobalPermissions(String principal, String user) throws JAXBException
JAXBExceptionprotected Response retrieveGlobalPermissionsResponse(String principal, String user)
protected PermissionsWsDTO generateExpectedPermissionsWsDTO(String id, Map<String,String> permissions)
public static void assertEqualsPermissionsListWsDTO(PermissionsListWsDTO expected, PermissionsListWsDTO tested)
public static void assertEqualsPermissionsWsDTO(PermissionsWsDTO expected, PermissionsWsDTO tested)
protected <C> C unmarshallResult(Response result,
Class<C> c)
throws JAXBException
JAXBExceptionCopyright © 2017 SAP SE. All Rights Reserved.