Skip to content

Commit cb8adf1

Browse files
spring wiring cleanup - corect separation of layers
1 parent 5a6c7c9 commit cb8adf1

27 files changed

Lines changed: 44 additions & 44 deletions

‎src/test/java/org/rest/client/AbstractClientRESTTemplate.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
import java.util.List;
44

5+
import org.rest.client.marshall.IMarshaller;
56
import org.rest.common.IEntity;
6-
import org.rest.testing.marshaller.IMarshaller;
77
import org.springframework.beans.factory.annotation.Autowired;
88
import org.springframework.beans.factory.annotation.Qualifier;
99
import org.springframework.http.HttpEntity;

src/test/java/org/rest/testing/marshaller/IMarshaller.java renamed to src/test/java/org/rest/client/marshall/IMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.rest.testing.marshaller;
1+
package org.rest.client.marshall;
22

33
public interface IMarshaller {
44

src/test/java/org/rest/testing/marshaller/JacksonMarshaller.java renamed to src/test/java/org/rest/client/marshall/JacksonMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.rest.testing.marshaller;
1+
package org.rest.client.marshall;
22

33
import java.io.IOException;
44
import java.util.List;

src/test/java/org/rest/testing/marshaller/RomeMarshaller.java renamed to src/test/java/org/rest/client/marshall/RomeMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.rest.testing.marshaller;
1+
package org.rest.client.marshall;
22

33
import org.slf4j.Logger;
44
import org.slf4j.LoggerFactory;

src/test/java/org/rest/testing/marshaller/XStreamMarshaller.java renamed to src/test/java/org/rest/client/marshall/XStreamMarshaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.rest.testing.marshaller;
1+
package org.rest.client.marshall;
22

33
import org.rest.sec.dto.User;
44
import org.rest.sec.model.Privilege;

‎src/test/java/org/rest/client/template/AbstractRESTTemplate.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
import org.apache.commons.lang3.tuple.Pair;
66
import org.apache.http.HttpHeaders;
7+
import org.rest.client.marshall.IMarshaller;
78
import org.rest.client.template.impl.ClientOperations;
89
import org.rest.common.IEntity;
9-
import org.rest.testing.marshaller.IMarshaller;
1010
import org.springframework.beans.factory.annotation.Autowired;
1111
import org.springframework.beans.factory.annotation.Qualifier;
1212

‎src/test/java/org/rest/client/template/IRESTTemplate.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import java.util.List;
44

5+
import org.rest.client.marshall.IMarshaller;
56
import org.rest.common.IEntity;
67
import org.rest.common.IRestDao;
7-
import org.rest.testing.marshaller.IMarshaller;
88

99
import com.jayway.restassured.specification.RequestSpecification;
1010

‎src/test/java/org/rest/persistence/AbstractPersistenceDAOIntegrationTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import org.rest.common.IEntity;
1515
import org.rest.spring.context.ContextTestConfig;
1616
import org.rest.spring.persistence.jpa.PersistenceJPAConfig;
17-
import org.rest.spring.testing.TestingTestConfig;
17+
import org.rest.spring.testing.TestingConfig;
1818
import org.rest.util.IDUtils;
1919
import org.springframework.dao.DataAccessException;
2020
import org.springframework.data.jpa.repository.JpaRepository;
@@ -23,7 +23,7 @@
2323
import org.springframework.test.context.support.AnnotationConfigContextLoader;
2424

2525
@RunWith(SpringJUnit4ClassRunner.class)
26-
@ContextConfiguration(classes = { TestingTestConfig.class, PersistenceJPAConfig.class, ContextTestConfig.class }, loader = AnnotationConfigContextLoader.class)
26+
@ContextConfiguration(classes = { TestingConfig.class, PersistenceJPAConfig.class, ContextTestConfig.class }, loader = AnnotationConfigContextLoader.class)
2727
public abstract class AbstractPersistenceDAOIntegrationTest<T extends IEntity> {
2828

2929
// tests

‎src/test/java/org/rest/sec/client/AuthenticationClientRESTIntegrationTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.rest.sec.util.SecurityConstants;
1010
import org.rest.spring.client.ClientTestConfig;
1111
import org.rest.spring.context.ContextTestConfig;
12-
import org.rest.spring.testing.TestingTestConfig;
12+
import org.rest.spring.testing.TestingConfig;
1313
import org.rest.test.AbstractRESTIntegrationTest;
1414
import org.springframework.beans.factory.annotation.Autowired;
1515
import org.springframework.http.ResponseEntity;
@@ -18,7 +18,7 @@
1818
import org.springframework.test.context.support.AnnotationConfigContextLoader;
1919

2020
@RunWith(SpringJUnit4ClassRunner.class)
21-
@ContextConfiguration(classes = { TestingTestConfig.class, ClientTestConfig.class, ContextTestConfig.class }, loader = AnnotationConfigContextLoader.class)
21+
@ContextConfiguration(classes = { TestingConfig.class, ClientTestConfig.class, ContextTestConfig.class }, loader = AnnotationConfigContextLoader.class)
2222
public class AuthenticationClientRESTIntegrationTest extends AbstractRESTIntegrationTest {
2323

2424
@Autowired

‎src/test/java/org/rest/sec/client/AuthenticationRESTTemplate.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.rest.sec.client;
22

3+
import org.rest.client.marshall.IMarshaller;
34
import org.rest.sec.dto.User;
4-
import org.rest.testing.marshaller.IMarshaller;
55
import org.rest.testing.security.AuthenticationUtil;
66
import org.springframework.beans.factory.annotation.Autowired;
77
import org.springframework.beans.factory.annotation.Qualifier;

0 commit comments

Comments
 (0)