Package org.springframework.issues.domain

Examples of org.springframework.issues.domain.User


    assertEquals(names.size(), 5);
  }

  @Test
  public void testAddUser() throws Exception {
    User user = new User();
    user.setId(100);
    user.setName("Neu");
    user.setCity("Zürich");
    userService.saveUser(user);
    List<String> names = userService.getNames();
    assertEquals(names.size(), 6);
    assertTrue(names.contains("Neu"));
  }
View Full Code Here


    assertTrue(names.contains("Neu"));
  }

  @Test
  public void testUpdateUser() throws Exception {
    User user = new User();
    user.setId(100);
    user.setName("NeuDochAlt");
    user.setCity("Zürich");
    userService.saveUser(user);
    List<String> names = userService.getNames();
    assertEquals(names.size(), 6);
    assertTrue(names.contains("NeuDochAlt"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.issues.domain.User

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.