Package com.google.greaze.end2end.definition

Examples of com.google.greaze.end2end.definition.Employee


    Employee e = client.get(id, context);
    assertEquals("bob", e.getName());
  }

  public void testPost() throws Exception {
    Employee e = client.post(new Employee("bob"), context);
    assertEquals("bob", e.getName());
    assertTrue(Id.isValid(e.getId()));
  }
View Full Code Here


    assertEquals("bob", e.getName());
    assertTrue(Id.isValid(e.getId()));
  }

  public void testPut() throws Exception {
    Employee bob = client.post(new Employee("bob"), context);
    assertEquals("bob", bob.getName());
    Employee sam = client.put(new Employee(bob.getId(), "sam"), context);
    assertEquals("sam", sam.getName());
    assertEquals(bob.getId(), sam.getId());
  }
View Full Code Here

    assertEquals("sam", sam.getName());
    assertEquals(bob.getId(), sam.getId());
  }

  public void testDelete() throws Exception {
    Employee bob = client.post(new Employee("bob"), context);
    assertEquals("bob", bob.getName());
    client.delete(bob.getId(), context);
    assertNull(client.get(bob.getId(), context));
  }
View Full Code Here

      new ResourceQueryClientFake<Employee, QueryEmployeeByName>(queryHandler, gsonBuilder,
          urlPaths, queryPath, null);
    this.queryClient = new ResourceQueryClient<Employee, QueryEmployeeByName>(
        stub, queryPath, QueryEmployeeByName.class, gsonBuilder, Employee.class, false);

    employees.put(new Employee(null, "foo"));
    employees.put(new Employee(null, "foo"));
    employees.put(new Employee(null, "bar"));
  }
View Full Code Here

TOP

Related Classes of com.google.greaze.end2end.definition.Employee

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.