Package org.kite9.diagram.builders

Examples of org.kite9.diagram.builders.Test8Map$B


    out.afterPropertiesSet();
    return out;
  }
 
  public static ProjectModel createModel() throws IOException {
    Kite9Context ctx = createContext();
    SpringProjectModelFactory fact = new SpringProjectModelFactory();
    fact.setContext(ctx);
    fact.setBasePackage(AbstractRunnerTest.class.getPackage().getName());
   
    return fact.createProjectModel();
View Full Code Here


  protected Kite9Context ctx = createContext();

  protected static Kite9Context createContext() {
    Aliaser a = new PropertyAliaser();
    Repository<File> r = new BasicFileRepository();
    Kite9ContextImpl out = new Kite9ContextImpl(a, r);
    out.setClassPath("target/classes" + File.pathSeparator + "target/test-classes");
//    out.setProjectId(35);
//    out.setSecretKey("PFB9T1V97AK96WFK");
    out.afterPropertiesSet();
    return out;
  }
View Full Code Here

    return xfs;
  }

 
  protected ServerCallingBuildListener createServerCallingListener() {
    ServerCallingBuildListener scbl = new ServerCallingBuildListener();
    scbl.setContext(ctx);
    scbl.setServer(new AbstractLocalServer() {
      @Override
      protected void processItem(WorkItem workItem, ZipOutputStream zos) throws IOException {
        // just returns 'canned' responses from the test artifacts
        // directory
        File png = getFileFromWorkItem(workItem, "png");
View Full Code Here

  @Test
  public void test_1_14_AnnotationReference() throws Exception {
    Set<AnnotationHandle> refs = pm.getAnnotationReferences(convertName(Refs.Referenced.class));
    Method m = Refs.class.getMethod("referencer");
    MethodHandle mh = new MethodHandle(m);
    Reference ref = m.getAnnotation(Reference.class);
    AnnotationHandle expected = new AnnotationHandle(ref, mh, "refs");
    Assert.assertTrue(refs.contains(expected));
  }
View Full Code Here

    return out;
  }
 
  public static ProjectModel createModel() throws IOException {
    Kite9Context ctx = createContext();
    SpringProjectModelFactory fact = new SpringProjectModelFactory();
    fact.setContext(ctx);
    fact.setBasePackage(AbstractRunnerTest.class.getPackage().getName());
   
    return fact.createProjectModel();
      }
View Full Code Here

  @Test
  public void test_1_1_JavadocDiagram() throws Exception {
    generateJavadocs();

    BasicKite9Runner bkr = new BasicKite9Runner();
    BasicClassScanner scs = createLocalClassScanner(createModel());
    scs.setBasePackage(Test1JavadocDiagram.class.getName());
    bkr.setScanners(HelpMethods.createList((Scanner) scs));
    bkr.setContext(ctx);
    Kite9DiagramJavadocListener mbl = new Kite9DiagramJavadocListener();
    mbl.setContext(ctx);
    mbl.setDocRoot(TARGET_DOCS);
View Full Code Here

   
    return fact.createProjectModel();
      }

  protected BasicClassScanner createLocalClassScanner(ProjectModel pm) {
    DefaultingClassScanner scs = new DefaultingClassScanner();
    scs.setContext(ctx);
    scs.setProjectModel(pm);
    scs.setBasePackage(this.getClass().getPackage().getName());
    return scs;
  }
View Full Code Here

    scs.setBasePackage(this.getClass().getPackage().getName());
    return scs;
  }

  protected XMLFileScanner createLocalFileScanner() {
    XMLFileScanner xfs = new XMLFileScanner();
    xfs.setContext(ctx);
    String folder = this.getClass().getPackage().getName();
    folder = folder.replace(".", "/");
    folder = "src/test/resources/"+folder;
    xfs.setBaseFolder(folder);
    return xfs;
  }
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("complexSequenceReturn Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }
        String[] optArray = new String[] {"abc", "def"};
        byte[][] byteArray = new byte[][] { new byte[] {'a', 'b', 'c'}, new byte[] {'x', 'y', 'z'} };
        B b = new B();
        A a = new A();
        a.setC(3);
        b.setD(a);
        ElemWComplex elemWComplex = new ElemWComplex();
        StringParameter sp = new StringParameter("sweet!");
        sp.setDescription("Pass this as an element and an attribute...wow!");

        elemWComplex.setOne( new Simple("one"));
View Full Code Here

TOP

Related Classes of org.kite9.diagram.builders.Test8Map$B

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.