Package org.apache.hadoop.yarn.webapp.hamlet

Examples of org.apache.hadoop.yarn.webapp.hamlet.Hamlet$SCRIPT


  static class TestView2 implements SubView {
    @Override public void renderPartial() {}
  }

  @Test public void testSubViews() {
    Hamlet h = newHamlet().
        title("test sub-views").
        div("#view1")._(TestView1.class)._().
        div("#view2")._(TestView2.class)._();

    PrintWriter out = h.getWriter();
    out.flush();
    assertEquals(0, h.nestLevel);
    verify(out).print("["+ TestView1.class.getName() +"]");
    verify(out).print("["+ TestView2.class.getName() +"]");
  }
View Full Code Here


    verify(out).print("["+ TestView2.class.getName() +"]");
  }

  static Hamlet newHamlet() {
    PrintWriter out = spy(new PrintWriter(System.out));
    return new Hamlet(out, 0, false);
  }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.yarn.webapp.hamlet.Hamlet$SCRIPT

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.