// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/service/UserService.java
// @Service
// @EnableConfigurationProperties(UserManagementProperties.class)
// public class UserService {
// 
//     private UserRepository userRepository;
//     private UserManagementProperties userManagementProperties;
// 
//     @Autowired
//     public UserService(UserRepository userRepository, UserManagementProperties userManagementProperties) {
//         this.userRepository = userRepository;
//         this.userManagementProperties = userManagementProperties;
//     }
// 
//     /**
//      * List all users in no given order.
//      */
//     public List<User> list() {
//         return userRepository.findAll();
//     }
// 
//     /**
//      * Create and saves an user.
//      *
//      * @return The created entity.
//      */
//     public User create(String name, String currency) {
//         final User user = new User(name, currency);
//         return userRepository.save(user);
//     }
// 
//     /**
//      * Get one user by id.
//      */
//     public User get(long id) {
//         return userRepository.findOne(Example.of(new User().setId(id))).orElse(null);
//     }
// 
//     /**
//      * Reads the testProperty.
//      *
//      * @return The configured property.
//      */
//     public String getTestProperty() {
//         return userManagementProperties.getTestProperty();
//     }
// }


import de.budgetfreak.usermanagement.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;
package de.budgetfreak.usermanagement;



@RunWith(SpringRunner.class)
@SpringBootTest
public class UserServiceIntegrationTest {

    @Autowired
// Path: server/user-management/src/main/java/de/budgetfreak/usermanagement/service/UserService.java
// @Service
// @EnableConfigurationProperties(UserManagementProperties.class)
// public class UserService {
// 
//     private UserRepository userRepository;
//     private UserManagementProperties userManagementProperties;
// 
//     @Autowired
//     public UserService(UserRepository userRepository, UserManagementProperties userManagementProperties) {
//         this.userRepository = userRepository;
//         this.userManagementProperties = userManagementProperties;
//     }
// 
//     /**
//      * List all users in no given order.
//      */
//     public List<User> list() {
//         return userRepository.findAll();
//     }
// 
//     /**
//      * Create and saves an user.
//      *
//      * @return The created entity.
//      */
//     public User create(String name, String currency) {
//         final User user = new User(name, currency);
//         return userRepository.save(user);
//     }
// 
//     /**
//      * Get one user by id.
//      */
//     public User get(long id) {
//         return userRepository.findOne(Example.of(new User().setId(id))).orElse(null);
//     }
// 
//     /**
//      * Reads the testProperty.
//      *
//      * @return The configured property.
//      */
//     public String getTestProperty() {
//         return userManagementProperties.getTestProperty();
//     }
// }


// Path: server/user-management/src/test/java/de/budgetfreak/usermanagement/UserServiceIntegrationTest.java
import de.budgetfreak.usermanagement.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.core.api.Assertions.assertThat;

package de.budgetfreak.usermanagement;



@RunWith(SpringRunner.class)
@SpringBootTest
public class UserServiceIntegrationTest {

    @Autowired
    private UserService testSubject;