KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > cluster > test > UndeployAttrTestCase


1 package org.jboss.test.cluster.test;
2
3 import junit.framework.Test;
4
5 import org.jboss.test.JBossClusteredTestCase;
6
7 /**
8  * Tests that a clustered session still functions properly on the second
9  * node after the webapp is undeployed from the first node.
10  * <p/>
11  * This version tests an AttributeBasedClusteredSession.
12  *
13  * @author Brian Stansberry
14  * @version $Id: UndeployAttrTestCase.java 42078 2006-03-13 04:47:43Z bstansberry $
15  */

16 public class UndeployAttrTestCase extends UndeployTestCase
17 {
18
19    public UndeployAttrTestCase(String JavaDoc name)
20    {
21       super(name);
22    }
23    
24    protected String JavaDoc getContextPath()
25    {
26       return "/http-scoped-attr/";
27    }
28    
29    protected String JavaDoc getWarName()
30    {
31       return "http-scoped-attr.war";
32    }
33
34    public static Test suite() throws Exception JavaDoc
35    {
36       Test t1 = JBossClusteredTestCase.getDeploySetup(UndeployAttrTestCase.class,
37             "http-scoped-attr.war");
38       return t1;
39    }
40
41 }
42
Popular Tags