KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > junit > response > ResultSetResponse


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under LGPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portal.junit.response;
12
13 import org.jboss.portal.junit.ServerResponse;
14 import org.jboss.portal.junit.Result;
15
16 import java.util.Map JavaDoc;
17 import java.util.HashMap JavaDoc;
18
19 /**
20  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
21  * @version $Revision: 1.1 $
22  */

23 public class ResultSetResponse extends ServerResponse
24 {
25
26    private Map JavaDoc results;
27
28    public ResultSetResponse(Map JavaDoc results)
29    {
30       this.results = results;
31    }
32
33    public Result getResult(String JavaDoc id)
34    {
35       return (Result)results.get(id);
36    }
37
38    public int getSize()
39    {
40       return results.size();
41    }
42 }
43
Popular Tags