Package searcherTests

Source Code of searcherTests.TreeLoaderTest

package searcherTests;


import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import primitives.cluster.ClusterHead;
import primitives.cluster.ClusterUtils;
import search.util.TreeLoader;

public class TreeLoaderTest {
  String dotFile;
  @Before
  public void setUp() throws Exception {
    dotFile = "digraph G{\n" +
        "  a [label=lol]\n" +
        "   a -> b [label=keepin it crunk]\n" +
        "\n}";
  }
 
  @Test
  public void testBasic(){
    ClusterHead tree = null;
    try{
      tree = TreeLoader.loadTreeFromDot("/Users/mat/Documents/graphs/pump.dot");
    }catch(Exception e){
      fail("boo" +e);
    }
    ClusterUtils.prettyPrintTree(tree);
    System.out.println(tree.getCluster());
  }

}
TOP

Related Classes of searcherTests.TreeLoaderTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.