1 package org.sapia.archie.impl; 2 3 import junit.framework.TestCase; 4 5 13 public class AttributeNamePartTest extends TestCase{ 14 15 public void testMatches() throws Exception { 16 AttributeNameParser p = new AttributeNameParser(); 17 AttributeNamePart query = (AttributeNamePart)p.parseNamePart("name?attr1=value1"); 18 AttributeNamePart item1 = (AttributeNamePart)p.parseNamePart("name?attr1=value1&attr2=value2"); 19 super.assertTrue(item1.matches(query)); 20 super.assertTrue(item1.matches(item1)); 21 super.assertTrue(!query.matches(item1)); 22 } 23 24 public void testEquals() throws Exception { 25 26 } 27 } 28 | Popular Tags |