Package com.sishuok.spring4.service

Examples of com.sishuok.spring4.service.UserService


*/
public class UserTests extends ForgeAPITestBase {

  @Test
  public void testListUsers() throws IOException {
    UserService service = getTestUserForge().createUserService();
    List<User> Users = service.list(null);
    assertNotNull("Null User list", Users);
    assertFalse("Empty User list", Users.isEmpty());
  }
View Full Code Here


    assertFalse("Empty User list", Users.isEmpty());
  }

  @Test
  public void testListUsersSorted() throws IOException {
    UserService service = getTestUserForge().createUserService();
    ListPreferences listPrefs = new ListPreferences();
    listPrefs.setLimit(4);
    listPrefs.setOffset(1);
    listPrefs.setSortBy("username");
    listPrefs.setSortOrder("descending");
    List<User> Users = service.list(listPrefs);
    assertNotNull("Null User list", Users);
    assertFalse("Empty User list", Users.isEmpty());
  }
View Full Code Here

    assertFalse("Empty User list", Users.isEmpty());
  }

  @Test
  public void testUserDetail() throws IOException {
    UserService service = getTestUserForge().createUserService();
    User user = service.get(TEST_USER);
    assertNotNull("Null user", user);
  }
View Full Code Here

        return "view";
    }

    @RequestMapping("/{id}")
    public A getUser(@PathVariable("id") Long id) {
        return new A();
    }
View Full Code Here

    @ComponentScan(basePackages = "com.sishuok.spring4.genericinject.component")
    static class GenericInjectConfig {

        @Bean
        public List<BeanInteface> customBeanIntefaceList() {
            return Arrays.asList((BeanInteface) new BeanImpl1());
        }
View Full Code Here

            return Arrays.asList((BeanInteface) new BeanImpl1());
        }

        @Bean
        public List<BeanImpl1> customBeanBeanImpl1List() {
            return Arrays.asList(new BeanImpl1());
        }
View Full Code Here

*/
public class XmlGroovyBeanDefinitionTest1 {
    @Test
    public void test() {
        ApplicationContext ctx = new GenericGroovyApplicationContext("classpath:spring-config-xml.groovy");
        MessagePrinter messagePrinter = (MessagePrinter) ctx.getBean("messagePrinter");
        messagePrinter.printMessage();
        System.out.println(ctx.getBean("map"));
    }
View Full Code Here

TOP

Related Classes of com.sishuok.spring4.service.UserService

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.