Package com.google.sitebricks

Examples of com.google.sitebricks.Renderable


      assert page.widget().equals(mock);
  }

  @Test
  public final void fireGetMethodOnPageToCorrectHandler() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here


    assert bound.getted2 : "@Get @On method was not fired, on doGet() for [event=2]";
  }

  @Test
  public final void firePostMethodOnPageToCorrectHandler() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

    assert bound.posted2 : "@Post @On method was not fired, on doPost() for [event=2]";
  }

  @Test
  public final void fireGetMethodOnPageToCorrectHandlerOnlyOnce() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

    assert bound.getted2 : "@Get @On method was not fired, on doGet() for [event=2]";
  }

  @Test
  public final void firePostMethodOnPageToCorrectHandlerOnlyOnce() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

    assert bound.posted2 : "@Post @On method was not fired, on doGet() for [event=2]";
  }

  @Test
  public final void fireGetMethodOnPageToDefaultHandler() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

  }


  @Test
  public final void firePostMethodOnPageToDefaultHandler() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

  }

  @Test
  public final void fireGetMethodWithArgsOnPage() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

  }

 
  @Test
  public final void fireGetMethodWithPrimitiveArgsOnPage() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

  }
 

  @Test
  public final void firePostMethodWithArgsOnPage() throws IOException {
    Renderable mock = new
        Renderable() {
          public void render(Object bound, Respond respond) {

          }
View Full Code Here

        : "@Post method was not fired, on doPost() with the right arg, instead: " + bound.post;
  }

  @Test(expectedExceptions = InvalidEventHandlerException.class)
  public final void errorOnPostMethodWithUnnamedArgs() throws IOException {
    Renderable mock = new Renderable() {
      public void render(Object bound, Respond respond) {

      }

      public <T extends Renderable> Set<T> collect(Class<T> clazz) {
View Full Code Here

TOP

Related Classes of com.google.sitebricks.Renderable

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.