Package org.springframework.integration.samples.enricher

Examples of org.springframework.integration.samples.enricher.User


            = new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
                                                  UserServiceTest.class);

        final UserService service = context.getBean(UserService.class);

        User user = new User("foo", null, null);
        final User fullUser = service.findUser(user);

        assertEquals("foo", fullUser.getUsername());
        assertEquals("foo@springintegration.org", fullUser.getEmail());
        assertEquals("secret", fullUser.getPassword());

    }
View Full Code Here


            = new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
                                                  UserServiceTest.class);

        final UserService service = context.getBean(UserService.class);

        User user = new User("foo", null, null);
        final User fullUser = service.findUserByUsername(user);

        assertEquals("foo", fullUser.getUsername());
        assertEquals("foo@springintegration.org", fullUser.getEmail());
        assertEquals("secret", fullUser.getPassword());

    }
View Full Code Here

  public User findUser(User user) {

    LOGGER.info(String.format("Calling method 'findUser' with parameter %s", user));

    final User fullUser = new User(user.getUsername(),
                     "secret",
                     user.getUsername() + "@springintegration.org");
    return fullUser;
  }
View Full Code Here

  public User findUserByUsername(String username) {

    LOGGER.info(String.format("Calling method 'findUserByUsername' with parameter: %s", username));

    return new User(username, "secret", username + "@springintegration.org");

  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.samples.enricher.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.