1   package com.atlassian.user.search.page;
2   
3   import javax.naming.directory.Attributes;
4   import javax.naming.directory.SearchResult;
5   
6   public class MockSearchResult extends SearchResult
7   {
8       public MockSearchResult(String name, Object obj, Attributes attrs)
9       {
10          super(name, obj, attrs);
11      }
12  
13      public MockSearchResult(String name)
14      {
15          super(null, null, null);
16          this.setName(name);
17      }
18  
19      public boolean equals(Object obj)
20      {
21          SearchResult that = (SearchResult) obj;
22          return this.getName().equals(that.getName());
23      }
24  
25      public Attributes getAttributes()
26      {
27          return super.getAttributes();
28      }
29  }