Examples of listById()


Examples of com.cxy.redisclient.service.FavoriteService.listById()

  public void testListById() throws IOException {
    FavoriteService service = new FavoriteService();
    int fid = service.add(1,"key", "local 2.6.12:db0:key:");

    Favorite favorite = service.listById(fid);
    assertTrue(favorite.getFavorite().equals("local 2.6.12:db0:key:"));
  }

  public void testListAll() throws IOException {
    FavoriteService service = new FavoriteService();
View Full Code Here

Examples of com.cxy.redisclient.service.ServerService.listById()

    ServerService server = new ServerService();
    server.add("test3", "localhost", "80", "");
   
    int id = server.add("test3", "localhost", "80", "");
   
    String name = server.listById(id).getName();
    String addr = server.listById(id).getHost();
    String port = server.listById(id).getPort();
   
    assertEquals(name, "test3");
    assertEquals(addr, "localhost");
View Full Code Here

Examples of com.cxy.redisclient.service.ServerService.listById()

    server.add("test3", "localhost", "80", "");
   
    int id = server.add("test3", "localhost", "80", "");
   
    String name = server.listById(id).getName();
    String addr = server.listById(id).getHost();
    String port = server.listById(id).getPort();
   
    assertEquals(name, "test3");
    assertEquals(addr, "localhost");
    assertEquals(port, "80");
View Full Code Here

Examples of com.cxy.redisclient.service.ServerService.listById()

   
    int id = server.add("test3", "localhost", "80", "");
   
    String name = server.listById(id).getName();
    String addr = server.listById(id).getHost();
    String port = server.listById(id).getPort();
   
    assertEquals(name, "test3");
    assertEquals(addr, "localhost");
    assertEquals(port, "80");
   
View Full Code Here

Examples of com.cxy.redisclient.service.ServerService.listById()

  public void testList() throws IOException {
    ServerService service = new ServerService();
    service.add("testtest", "localhost", "88888", "");
    int id = Integer.parseInt(ConfigFile.readMaxId(ConfigFile.SERVER_MAXID));
   
    Server server = service.listById(id);
    assertEquals("testtest", server.getName());
    assertEquals("88888", server.getPort());
  }
 
  public void testListAll() throws IOException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.