Changeset 2465

Show
Ignore:
Timestamp:
09/19/08 13:26:19 (4 months ago)
Author:
dsanders
Message:

Used long attr IDs - full URIs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/otis.test/src/org/bandit/otis/test/AttributeTest.java

    r2444 r2465  
    204204                try 
    205205                { 
    206                         IAttribute attr = createdEntity.addAttribute(URI.create("homePhone")); 
     206                        IAttribute attr = createdEntity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/homephone")); 
    207207                        attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "801-555-1212"); 
    208208                        session.applyUpdates(); 
     
    235235                IAttribute attr; 
    236236                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")); 
    238238                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")); 
    240240                attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "test"); 
    241241                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")); 
    243243                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"); 
    247247                attr = entity.addAttribute(URI.create("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress")); 
    248248                attr.addSimpleValue(ISimpleAttrValue.STRING_TYPE_URI, "thing@example.com");