JAVA-117 Standardize spring-boot-modules/spring-boot
This commit is contained in:
+2
-2
@@ -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;
|
||||
+2
-2
@@ -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;
|
||||
+4
-4
@@ -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;
|
||||
+4
-4
@@ -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;
|
||||
+4
-4
@@ -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;
|
||||
+3
-3
@@ -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;
|
||||
+2
-2
@@ -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
-4
@@ -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;
|
||||
+3
-3
@@ -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;
|
||||
+2
-2
@@ -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;
|
||||
+5
-1
@@ -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
-1
@@ -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;
|
||||
+4
-3
@@ -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;
|
||||
Reference in New Issue
Block a user