Package com.google.singletondetector.output

Examples of com.google.singletondetector.output.OutputNode


    return nodes;
  }

  private OutputNode newOutputNode(Clazz clazz) {
    OutputNode node;

    if (clazz.isSingleton()) {
      node = new SingletonOutputNode(clazz.getName());
    } else if (clazz.isHingleton()) {
      String classIHingle = clazz.getClassIHingle();
View Full Code Here


import junit.framework.TestCase;

public class OutputNodeTest extends TestCase {

  public void testChop() {
    OutputNode chopper = new OutputNode("chopper");
    assertEquals("sub1\\ntest/p1", chopper.separate("test/p1/sub1"));
    assertEquals("testp1", chopper.separate("testp1"));
  }
View Full Code Here

            + "      <data key='d1'>\n" + "        <y:PolyLineEdge>\n"
            + "          <y:LineStyle color = '#CCFFFF'/>\n"
            + "          <y:Arrows source='none' target='standard'/>\n"
            + "        </y:PolyLineEdge>\n" + "      </data>\n"
            + "    </edge>\n";
    OutputNode source = new OtherOutputNode("source");
    OutputNode dest1 = new OtherOutputNode("dest1");
    source.addEdge(dest1);
    String edgeOutput = source.getGraphMlEdges().replace("\"", "'");
    assertEquals(edgeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#CCFFFF'/>\n"
            + "          <y:NodeLabel textColor='#000000'>te&#xA;st</y:NodeLabel>\n"
            + "          <y:Shape type='ellipse'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new OtherOutputNode("te\\nst");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#FF0000'/>\n"
            + "          <y:NodeLabel textColor='#FFFFFF'>te&#xA;st</y:NodeLabel>\n"
            + "          <y:Shape type='rectangle'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new SingletonOutputNode("te\\nst");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#FF9900'/>\n"
            + "          <y:NodeLabel textColor='#000000'>te&#xA;st&#xA;(test)&#xA;(hingle)</y:NodeLabel>\n"
            + "          <y:Shape type='rectangle'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new HingletonOutputNode("te\\nst", "test\\nhingle");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#FFFF00'/>\n"
            + "          <y:NodeLabel textColor='#000000'>te&#xA;st</y:NodeLabel>\n"
            + "          <y:Shape type='rectangle'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new MingletonOutputNode("te\\nst");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#00FF00'/>\n"
            + "          <y:NodeLabel textColor='#000000'>te&#xA;st</y:NodeLabel>\n"
            + "          <y:Shape type='rectangle'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new FingletonOutputNode("te\\nst");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

            + "        <y:ShapeNode>\n"
            + "          <y:Fill color = '#CCFFFF'/>\n"
            + "          <y:NodeLabel textColor='#000000'>te&#xA;st</y:NodeLabel>\n"
            + "          <y:Shape type='ellipse'/>\n"
            + "        </y:ShapeNode>\n" + "      </data>\n" + "    </node>\n";
    OutputNode node = new OtherOutputNode("te\\nst");
    String nodeOutput = node.getGraphMlNode().replace("\"", "'");
    assertEquals(nodeOutput, expectedOutput);
  }
View Full Code Here

TOP

Related Classes of com.google.singletondetector.output.OutputNode

Copyright © 2018 www.massapicom. 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.