JAVA-117 Standardize spring-boot-modules/spring-boot

This commit is contained in:
mikr
2020-04-04 20:24:48 +02:00
parent 1699e86ef9
commit 487d6b38fc
49 changed files with 93 additions and 91 deletions
@@ -1,6 +1,6 @@
package org.baeldung.boot;
package com.baeldung.boot;
import org.baeldung.session.exception.Application;
import com.baeldung.session.exception.Application;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -1,6 +1,6 @@
package org.baeldung.boot;
package com.baeldung.boot;
import org.baeldung.demo.DemoApplication;
import com.baeldung.demo.DemoApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
@@ -1,8 +1,8 @@
package org.baeldung.boot.repository;
package com.baeldung.boot.repository;
import org.baeldung.boot.DemoApplicationIntegrationTest;
import org.baeldung.demo.model.Foo;
import org.baeldung.demo.repository.FooRepository;
import com.baeldung.boot.DemoApplicationIntegrationTest;
import com.baeldung.demo.model.Foo;
import com.baeldung.demo.repository.FooRepository;
import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,8 +1,8 @@
package org.baeldung.boot.repository;
package com.baeldung.boot.repository;
import org.baeldung.boot.DemoApplicationIntegrationTest;
import org.baeldung.demo.model.Foo;
import org.baeldung.demo.repository.FooRepository;
import com.baeldung.boot.DemoApplicationIntegrationTest;
import com.baeldung.demo.model.Foo;
import com.baeldung.demo.repository.FooRepository;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
@@ -1,8 +1,8 @@
package org.baeldung.boot.repository;
package com.baeldung.boot.repository;
import org.baeldung.boot.ApplicationIntegrationTest;
import org.baeldung.demo.model.Foo;
import org.baeldung.session.exception.repository.FooRepository;
import com.baeldung.boot.ApplicationIntegrationTest;
import com.baeldung.demo.model.Foo;
import com.baeldung.session.exception.repository.FooRepository;
import org.hibernate.HibernateException;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,9 +1,9 @@
package org.baeldung.converter;
package com.baeldung.converter;
import com.baeldung.toggle.Employee;
import org.baeldung.boot.Application;
import org.baeldung.boot.domain.Modes;
import com.baeldung.boot.Application;
import com.baeldung.boot.domain.Modes;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package org.baeldung.converter.controller;
package com.baeldung.converter.controller;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -14,7 +14,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.baeldung.boot.Application;
import com.baeldung.boot.Application;
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.MOCK, classes = Application.class)
@@ -1,8 +1,5 @@
package org.baeldung.demo.boottest;
package com.baeldung.demo.boottest;
import org.baeldung.demo.boottest.Employee;
import org.baeldung.demo.boottest.EmployeeRestController;
import org.baeldung.demo.boottest.EmployeeService;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,7 +1,7 @@
package org.baeldung.demo.boottest;
package com.baeldung.demo.boottest;
import org.baeldung.demo.boottest.Employee;
import org.baeldung.demo.boottest.EmployeeRepository;
import com.baeldung.demo.boottest.Employee;
import com.baeldung.demo.boottest.EmployeeRepository;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package org.baeldung.demo.boottest;
package com.baeldung.demo.boottest;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.is;
@@ -14,7 +14,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
import java.io.IOException;
import java.util.List;
import org.baeldung.demo.DemoApplication;
import com.baeldung.demo.DemoApplication;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung.demo.boottest;
package com.baeldung.demo.boottest;
import static org.assertj.core.api.Assertions.assertThat;
@@ -6,6 +6,10 @@ import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import com.baeldung.demo.boottest.Employee;
import com.baeldung.demo.boottest.EmployeeRepository;
import com.baeldung.demo.boottest.EmployeeService;
import com.baeldung.demo.boottest.EmployeeServiceImpl;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -1,4 +1,4 @@
package org.baeldung.demo.boottest;
package com.baeldung.demo.boottest;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -1,7 +1,8 @@
package org.baeldung.repository;
package com.baeldung.repository;
import org.baeldung.boot.config.H2JpaConfig;
import org.baeldung.model.User;
import com.baeldung.boot.config.H2JpaConfig;
import com.baeldung.model.User;
import com.baeldung.repository.UserRepository;
import org.junit.After;
import org.junit.Test;
import org.junit.runner.RunWith;