Package org.sonatype.security.rest.model

Examples of org.sonatype.security.rest.model.UserToRoleResource


  }

  @Test
  public void testUserToRoleResourceRequest() {
    UserToRoleResourceRequest resourceResponse = new UserToRoleResourceRequest();
    UserToRoleResource resource = new UserToRoleResource();
    resourceResponse.setData(resource);

    resource.setUserId("userId");
    resource.setSource("source");
    resource.addRole("role1");
    resource.addRole("role2");

    this.marshalUnmarchalThenCompare(resourceResponse);
    this.validateXmlHasNoPackageNames(resourceResponse);

  }
View Full Code Here

TOP

Related Classes of org.sonatype.security.rest.model.UserToRoleResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.