Package org.kite9.tool

Examples of org.kite9.tool.AbstractRunnerTest$StreamGobbler


    }
   
    @Kite9Item
    @Test
    public void test_4_2_PackageAsContextWithClassContents1() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedContexts())
    .withMemberClasses(null)
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here


    }
   
    @Kite9Item
    @Test
    public void test_4_3_PackageAsContextWithClassContents2() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedContexts())
    .withMemberClasses(null).reduce(db.only(Test4Package.class))
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

   
   
    @Kite9Item
    @Test
    public void test_4_4_PackageDependency() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withPackages(Test4Package.class)
    .show(db.asConnectedGlyphs())
    .withDependencies(null)
      .show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

   
   
    @Test
    @Kite9Item
    public void test_9_1_GlyphAlias() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class).show(db.asConnectedGlyphs());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

    }
   
    @Test
    @Kite9Item
    public void test_9_2_ContextAlias() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class).show(db.asConnectedContexts());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

    }
   
    @Test
    @Kite9Item
    public void test_9_3_MethodTextLineAlias() throws IOException {
  DiagramBuilder db = createBuilder();
  db.withClasses(SomeClass.class)
    .show(db.asConnectedGlyphs())
    .withMethods(db.onlyAnnotated(), false).show(db.asTextLines());
  renderDiagram(db.getDiagram());
    }
View Full Code Here

        return "";
      }
    }

    if (in instanceof AnnotatedNounPart) {
      AnnotatedNounPart annotatedNounPart = (AnnotatedNounPart) in;
      return annotatedNounPart.getPrefixAnnotation()
          + getLabel(annotatedNounPart.getNounPart(), from, ii);
    }

    if (in instanceof SimpleNoun) {
      return ((SimpleNoun) in).getLabel();
    }
View Full Code Here

      public void write(NounPart subject, Relationship verb,
          NounPart object) {

        // these are the knowledge items that will be represented in the format.
        SimpleNoun from = getExistingNounOnDiagram(subject, ii);
        NounRelationshipBinding sr = new NounRelationshipBinding(
            subject, verb);
        PropositionBinding or = new PropositionBinding(subject, verb, object);
       

        SimpleNoun to = NounFactory.getRawSimpleNoun(object);
View Full Code Here

    if (in == from) {
      return "";
    }

    if (in instanceof OwnedNoun) {
      OwnedNoun on = (OwnedNoun) in;
      if (on.getOwner() == from) {
        return on.getOwned().getLabel();
      } else {
        return "";
      }
    }
View Full Code Here

        // these are the knowledge items that will be represented in the format.
        SimpleNoun from = getExistingNounOnDiagram(subject, ii);
        NounRelationshipBinding sr = new NounRelationshipBinding(
            subject, verb);
        PropositionBinding or = new PropositionBinding(subject, verb, object);
       

        SimpleNoun to = NounFactory.getRawSimpleNoun(object);
        Container cont = c == null ? getContainerFor(from, verb, ii) : c;
        DiagramElement toEl = toElementFormat.returnElement(cont, to,
View Full Code Here

TOP

Related Classes of org.kite9.tool.AbstractRunnerTest$StreamGobbler

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.