view src/test/java/jp/ac/u_ryukyu/ie/cr/shoshi/jungle/traverse/DefaultTraverserTest.java @ 107:5b7e45464bb8

move
author one
date Fri, 12 Sep 2014 21:20:04 +0900
parents 3d88bad21bc4
children
line wrap: on
line source

/*package jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverse;


import fj.Ord;
import fj.data.List;
import fj.data.TreeMap;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.JungleTreeEditor;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.DefaultTreeEditor;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.impl.TreeNode;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.transaction.DefaultJungleTreeEditor;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.InterfaceTraverser;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.DefaultTraverser;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.traverser.Traverser;
import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Pair;
import junit.framework.TestCase;
import junit.framework.TestSuite;

public class DefaultTraverserTest extends TestCase
{
	public static TestSuite suite()
	{
		TestSuite suite = new TestSuite();
		suite.addTestSuite(TraverserTestImpl.class);
		suite.addTestSuite(BruteForceTraverserTestImpl.class);
		return suite;
	}
	
	
	public static class TraverserTestImpl extends TraverserTest
	{

		@Override
		public Traverser instance()
		{
			return new DefaultTraverser();
		}
		
	}
	
	public static class BruteForceTraverserTestImpl extends BruteForceTraverserTest
	{

		@Override
		public InterfaceTraverser instance(TreeNode root)
		{
			TreeMap<String,TreeMap<String, List<TreeNode>>> index = TreeMap.empty(Ord.stringOrd);
		    DefaultTraverser traverser = new DefaultTraverser();
		    DefaultTreeEditor treeEditor = new DefaultTreeEditor(traverser);
		    JungleTreeEditor editor = new DefaultJungleTreeEditor(root,null,treeEditor,null);
		    return new InterfaceTraverser(root,index,editor);
		}
		
	}
}*/