KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jgroups > protocols > FRAG2_Test


1 package org.jgroups.protocols;
2
3 import junit.framework.TestCase;
4 import junit.framework.Test;
5 import junit.framework.TestSuite;
6 import org.jgroups.stack.IpAddress;
7 import org.jgroups.stack.Protocol;
8 import org.jgroups.View;
9 import org.jgroups.Message;
10 import org.jgroups.Event;
11 import org.jgroups.Global;
12 import org.jgroups.debug.Simulator;
13
14 import java.util.Vector JavaDoc;
15 import java.util.Properties JavaDoc;
16 import java.nio.ByteBuffer JavaDoc;
17
18 /**
19  * Tests the fragmentation (FRAG2) protocol for http://jira.jboss.com/jira/browse/JGRP-216
20  * @author Bela Ban
21  */

22 public class FRAG2_Test extends FRAG_Test {
23
24     public FRAG2_Test(String JavaDoc name) {
25         super(name);
26     }
27
28
29     protected Protocol createProtocol() {
30         return new FRAG2();
31     }
32
33
34     public void testFragmentation() throws InterruptedException JavaDoc {
35         super.testFragmentation();
36     }
37
38     public static Test suite() {
39         return new TestSuite(FRAG2_Test.class);
40     }
41
42     public static void main(String JavaDoc[] args) {
43         junit.textui.TestRunner.run(FRAG2_Test.suite());
44     }
45
46 }
47
Popular Tags