@@ -0,0 +1,1699 @@
+package integration.repository;%0A%0Aimport bootwildfly.Application;%0Aimport bootwildfly.models.Role;%0Aimport bootwildfly.models.User;%0Aimport bootwildfly.models.UserRepository;%0Aimport org.junit.Assert;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.IntegrationTest;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0Aimport org.springframework.test.context.web.WebAppConfiguration;%0A%0Aimport java.util.List;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes = Application.class)%0A@WebAppConfiguration%0A@IntegrationTest(%22server.port:0%22)%0Apublic class UserRepositoryTest %7B%0A%0A    @Autowired%0A    private UserRepository repUser;%0A%0A    @Before%0A    public void setup() %7B%0A        repUser.deleteAll();%0A        User u = new User();%0A        u.email = %22teste@gmail.com%22;%0A        u.password = %221234%22;%0A        u.role = Role.ADMIN;%0A        repUser.save(u);%0A    %7D%0A%0A    @Test%0A    public void createUser() %7B%0A        List%3CUser%3E users = repUser.findAll();%0A        Assert.assertTrue(users.size() == 1);%0A    %7D%0A%0A    @Test%0A    public void updateUser() %7B%0A        User user = repUser.findAll().get(0);%0A        user.setEmail(%22daca2%22);%0A        repUser.save(user);%0A%0A        user = repUser.findAll().get(0);%0A        Assert.assertTrue(user.getEmail() == %22daca2%22);%0A    %7D%0A%0A    @Test%0A    public void deleteUser() %7B%0A        User user = repUser.findAll().get(0);%0A        repUser.delete(user);%0A%0A        int numUsers = repUser.findAll().size();%0A        Assert.assertTrue(numUsers == 0);%0A    %7D%0A%0A%7D

create tests to User Repository