Mercurial > hg > RemoteEditor > REPSessionManager
view test/mergertest/TestMerger2.java @ 468:b800b33c6988
check quit2 and ackList
author | one |
---|---|
date | Mon, 11 Oct 2010 19:57:34 +0900 |
parents | 5c95a9020e31 |
children |
line wrap: on
line source
package test.mergertest; import java.util.LinkedList; public class TestMerger2 { private LinkedList<EditorSimulator> editorList; public TestMerger2(int en, int cn) { editorList = new LinkedList<EditorSimulator>(); for(int i = 0; i < en; i++){ editorList.add(new EditorSimulatorImpl(0, i)); try{ editorList.get(i-1).setNext(editorList.get(i)); }catch(IndexOutOfBoundsException e){ } } } public static void main(String[] args){ if(args.length > 1){ int en = Integer.parseInt(args[0]); int cn = Integer.parseInt(args[1]); TestMerger2 test = new TestMerger2(en, cn); test.start(); }else{ TestMerger2 test = new TestMerger2(3, 3); test.start(); } } private void start() { } }