@@ -0,0 +1,626 @@
+package com.github.wreulicke.simple.user;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0A%0A@RunWith(SpringRunner.class)%0A@DataJpaTest%0Apublic class UserRepositoryTest %7B%0A%09%0A%09@Autowired%0A%09UserRepository repository;%0A%09%0A%09@Test%0A%09public void test() %7B%0A%09%09User user = new User();%0A%09%09User actual = repository.save(user);%0A%09%09assertThat(actual.getUsername()).isNotEmpty();%0A%09%7D%0A%09%0A%7D%0A

add test