frag2_test.java
来自「JGRoups源码」· Java 代码 · 共 47 行
JAVA
47 行
package org.jgroups.protocols;
import junit.framework.TestCase;
import junit.framework.Test;
import junit.framework.TestSuite;
import org.jgroups.stack.IpAddress;
import org.jgroups.stack.Protocol;
import org.jgroups.View;
import org.jgroups.Message;
import org.jgroups.Event;
import org.jgroups.Global;
import org.jgroups.debug.Simulator;
import java.util.Vector;
import java.util.Properties;
import java.nio.ByteBuffer;
/**
* Tests the fragmentation (FRAG2) protocol for http://jira.jboss.com/jira/browse/JGRP-216
* @author Bela Ban
*/
public class FRAG2_Test extends FRAG_Test {
public FRAG2_Test(String name) {
super(name);
}
protected Protocol createProtocol() {
return new FRAG2();
}
public void testFragmentation() throws InterruptedException {
super.testFragmentation();
}
public static Test suite() {
return new TestSuite(FRAG2_Test.class);
}
public static void main(String[] args) {
junit.textui.TestRunner.run(FRAG2_Test.suite());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?