Issue Type: Bug Bug
Affects Versions: PLINK_2.5.1.Final
Assignee: Anil Saldhana
Components: IDM
Created: 13/Sep/13 2:23 PM
Description:

This test fails in setAttibute to a BasicModel entity:

@Test
	@InSequence(1)
	@Transactional
	public void testIdentityManagerUserCreation() throws Exception {
		/* Bad userName */
		
		String userName = "testusername";
		String userLocaleCode = "ca-es";
		
		User newUser = new User(userName);
		newUser.setEmail("test@test.com");
		
		identityManager.add(newUser);
		Password password = new Password("password");
		this.identityManager.updateCredential(newUser, password);
			
		User user = BasicModel.getUser(identityManager, userName);
		newUser.setAttribute(new Attribute<String>(Constants.ATTRIBUTE_NAME_LOCALE_CODE, "ca-es"));
		
		identityManager.update(newUser);
		
		user = BasicModel.getUser(identityManager, userName);
		Assert.assertNotNull(user);
		Attribute<String> localeCodeAttribute = user.getAttribute(Constants.ATTRIBUTE_NAME_LOCALE_CODE);
		Assert.assertNotNull(localeCodeAttribute);
		
		Assert.assertEquals(localeCodeAttribute.getValue(), userLocaleCode);
		

		
		
	}
Environment: JBoss AS 7.1.1 and Picketling 2.5.1.Final
Project: PicketLink
Labels: attribute
Priority: Major Major
Reporter: Esteve Aviles
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira