Skip to content

Commit

Permalink
Merge pull request #201 from justinhrobbins/feature_186
Browse files Browse the repository at this point in the history
closes #186
  • Loading branch information
justinhrobbins committed Dec 27, 2015
2 parents b1b83b3 + a2fa03f commit 40cfe7c
Show file tree
Hide file tree
Showing 32 changed files with 31 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@Category(IntegrationTest.class)
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:applicatonContext-client.xml"})
@ContextConfiguration(locations = {"classpath*:META-INF/applicatonContext-client.xml"})
public class FlashCardsAppResourceIT {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import static org.junit.Assert.*;

@Category(IntegrationTest.class)
@ContextConfiguration(locations = {"classpath*:applicatonContext-client.xml"})
@ContextConfiguration(locations = {"classpath*:META-INF/applicatonContext-client.xml"})
public class FlashCardsResourceIT extends GenericEntityRestTest<FlashCardDto, Long> {

// this entity will be created in @Before and we'll use it for our JUnit tests and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import static org.junit.Assert.assertTrue;

@Category(IntegrationTest.class)
@ContextConfiguration(locations = {"classpath*:applicatonContext-client.xml"})
@ContextConfiguration(locations = {"classpath*:META-INF/applicatonContext-client.xml"})
public class TagsResourceIT extends GenericEntityRestTest<TagDto, Long> {

final static String TAG_NAME = "Web API Test 'Tag'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.junit.Assert.assertTrue;

@Category(IntegrationTest.class)
@ContextConfiguration(locations = {"classpath*:applicatonContext-client.xml"})
@ContextConfiguration(locations = {"classpath*:META-INF/applicatonContext-client.xml"})
public class UsersResourceIT extends GenericEntityRestTest<UserDto, Long> {

private static final String OPEN_ID = "Web API Test 'openid'";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import junitparams.Parameters;

@Ignore
@ContextConfiguration(locations = {"classpath*:applicatonContext-loadtester.xml"})
@ContextConfiguration(locations = {"classpath*:META-INF/applicatonContext-loadtester.xml"})
@RunWith(JUnitParamsRunner.class)
public class LoadTesterIT {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<import resource="classpath:applicatonContext-akka.xml"/>
<import resource="classpath:applicatonContext-client.xml"/>
<import resource="classpath:META-INF/applicatonContext-akka.xml"/>
<import resource="classpath:META-INF/applicatonContext-client.xml"/>

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

<context:property-placeholder location="classpath:cassandra.properties" />

<import resource="classpath:applicationContext-repository-cassandraNamespace.xml" />
<import resource="classpath:META-INF/applicationContext-repository-cassandraNamespace.xmlspace.xml" />

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import javax.inject.Inject;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:test-applicationContext-repository-cassandra.xml")
@ContextConfiguration("classpath:META-INF/test-applicationContext-repository-cassandra.xml")
@TestExecutionListeners({CassandraUnitDependencyInjectionTestExecutionListener.class,
DependencyInjectionTestExecutionListener.class,
DirtiesContextTestExecutionListener.class})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

<context:property-placeholder location="classpath:test-cassandra.properties" />

<import resource="classpath:applicationContext-repository-cassandraNamespace.xml" />
<import resource="classpath:META-INF/applicationContext-repository-cassandraNamespace.xml" />

</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">

<import resource="classpath:applicationContext-caching.xml" />
<import resource="classpath:META-INF/applicationContext-caching.xml" />

<beans profile="spring-data">
<import resource="classpath:applicationContext-repository-springdata.xml" />
<import resource="classpath:META-INF/applicationContext-repository-springdata.xml" />
</beans>

<beans profile="jpa">
<import resource="classpath:applicationContext-repository-jpa.xml" />
<import resource="classpath:META-INF/applicationContext-repository-jpa.xml" />
</beans>

<beans profile="cassandra">
<import resource="classpath:applicationContext-repository-cassandra.xml" />
<import resource="classpath:META-INF/applicationContext-repository-cassandra.xml" />
</beans>
</beans>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

<import resource="classpath:applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:META-INF/applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:infrastructure.xml" />

<context:component-scan base-package="org.robbins.flashcards.jpa.repository" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;

@ContextConfiguration("classpath:test-applicationContext-repository-jpa.xml")
@ContextConfiguration("classpath:META-INF/test-applicationContext-repository-jpa.xml")
@DatabaseSetup("classpath:test-flashCardsAppRepository.xml")
@Category(IntegrationTest.class)
public class TagRepositoryIT extends BaseIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd">

<import resource="classpath:applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:META-INF/applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:test-infrastructure.xml" />

<context:component-scan base-package="org.robbins.flashcards.jpa.repository" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

<import resource="classpath:applicatonContext-akka.xml"/>
<import resource="classpath:META-INF/applicatonContext-akka.xml"/>

<bean id="mapper" class="org.dozer.DozerBeanMapper">
<property name="mappingFiles">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

@ContextConfiguration({ "classpath:applicationContext-repository-jpa-commons.xml",
"classpath:test-applicationContext-repository-jpa-commons.xml" })
@ContextConfiguration({"classpath:META-INF/applicationContext-repository-jpa-commons.xml",
"classpath:META-INF/test-applicationContext-repository-jpa-commons.xml" })
@DatabaseSetup("classpath:test-flashCardsAppRepository.xml")
@Profile("spring-data")
@Category(IntegrationTest.class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">

<import resource="classpath:applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:META-INF/applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:infrastructure.xml" />

<context:component-scan base-package="org.robbins.flashcards.springdata.repository" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import com.github.springtestdbunit.annotation.DatabaseSetup;

@ContextConfiguration("classpath:test-applicationContext-repository-springdata.xml")
@ContextConfiguration("classpath:META-INF/test-applicationContext-repository-springdata.xml")
@DatabaseSetup("classpath:test-flashCardsAppRepository.xml")
@Category(IntegrationTest.class)
public class FlashCardRepositoryIT extends BaseIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

@ContextConfiguration("classpath:test-applicationContext-repository-springdata.xml")
@ContextConfiguration("classpath:META-INF/test-applicationContext-repository-springdata.xml")
@DatabaseSetup("classpath:test-flashCardsAppRepository.xml")
@Category(IntegrationTest.class)
public class TagRepositoryIT extends BaseIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

@ContextConfiguration("classpath:test-applicationContext-repository-springdata.xml")
@ContextConfiguration("classpath:META-INF/test-applicationContext-repository-springdata.xml")
@DatabaseSetup("classpath:test-flashCardsAppRepository.xml")
@Category(IntegrationTest.class)
public class UserRepositoryIT extends BaseIntegrationTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/data/jpa http://www.springframework.org/schema/data/jpa/spring-jpa-1.1.xsd">

<import resource="classpath:applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:META-INF/applicationContext-repository-jpa-commons.xml" />
<import resource="classpath:test-infrastructure.xml" />

<bean id="loggedInUser" class="org.robbins.flashcards.dto.UserDto"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
http://www.springframework.org/schema/beans/spring-beans.xsd">

<beans profile="security-http">
<import resource="classpath:applicationContext-springSecurity-http.xml" />
<import resource="classpath:META-INF/applicationContext-springSecurity-http.xml" />
</beans>

<beans profile="security-oauth">
<import resource="classpath:applicationContext-springSecurity-oauth.xml" />
<import resource="classpath:META-INF/applicationContext-springSecurity-oauth.xmloauth.xml" />
</beans>

</beans>
Expand Down
9 changes: 4 additions & 5 deletions FlashCards_WebServices/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:applicationContext-repository.xml
classpath*:applicationContext-service.xml
classpath*:applicationContext-webServices.xml
classpath*:applicationContext-springSecurity.xml
<!-- classpath*:applicatonContext-aop.xml -->
classpath*:META-INF/applicationContext-repository.xml
classpath*:META-INF/applicationContext-service.xml
classpath*:META-INF/applicationContext-webServices.xml
classpath*:META-INF/applicationContext-springSecurity.xml
</param-value>
</context-param>

Expand Down

0 comments on commit 40cfe7c

Please sign in to comment.