Changeset 2465
- Timestamp:
- 09/19/08 13:26:19 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/otis.test/src/org/bandit/otis/test/AttributeTest.java
r2444 r2465 204 204 try 205 205 { 206 IAttribute attr = createdEntity.addAttribute(URI.create("h omePhone"));206 IAttribute attr = createdEntity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/homephone")); 207 207 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "801-555-1212"); 208 208 session.applyUpdates(); … … 235 235 IAttribute attr; 236 236 IEntity entity = session.addEntity(URI.create("http://www.eclipse.org/higgins/ontologies/2006/higgins#Person"), entityID); 237 attr = entity.addAttribute(URI.create(" sn"));237 attr = entity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname")); 238 238 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "surname"); 239 attr = entity.addAttribute(URI.create(" cn"));239 attr = entity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname")); 240 240 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "test"); 241 241 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "alt name"); 242 attr = entity.addAttribute(URI.create(" userPassword"));242 attr = entity.addAttribute(URI.create("http://www.eclipse.org/higgins/ontologies/2006/higgins#password")); 243 243 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "secret"); 244 attr = entity.addAttribute(URI.create("description"));245 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "description 1");246 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "description 2");244 // attr = entity.addAttribute(URI.create("description")); 245 // attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "description 1"); 246 // attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "description 2"); 247 247 attr = entity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress")); 248 248 attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "thing@example.com");