diff --git a/atomfeed-client-spring/pom.xml b/atomfeed-client-spring/pom.xml
index ecbb849..97aeba3 100644
--- a/atomfeed-client-spring/pom.xml
+++ b/atomfeed-client-spring/pom.xml
@@ -12,11 +12,6 @@
atomfeed-client-spring
jar
-
- 3.1.0.RELEASE
- 2.17.1
-
-
spring-maven-release
@@ -47,13 +42,13 @@
org.apache.logging.log4j
log4j-api
- ${log4jVersion}
+ ${log4j.version}
provided
org.apache.logging.log4j
log4j-core
- ${log4jVersion}
+ ${log4j.version}
provided
@@ -64,13 +59,13 @@
org.aspectj
aspectjweaver
- 1.7.1
+ ${aspectj.version}
javax.servlet
- servlet-api
- 2.5
- provided
+ javax.servlet-api
+ ${javaxServletApi.version}
+ test
@@ -28,7 +28,7 @@
javax.transaction
Repository for javax transaction API
- http://mvnrepository.com/artifact/javax.transaction/jta/1.1
+ https://mvnrepository.com/artifact/javax.transaction/jta/1.1
@@ -37,7 +37,7 @@
org.apache.maven.plugins
maven-resources-plugin
- 2.5
+ ${mavenResourcePlugin}
UTF-8
@@ -74,7 +74,7 @@
org.apache.maven.plugins
maven-jar-plugin
- 2.2
+ ${mavenJarPlugin.version}
${project.build.outputDirectory}/META-INF/MANIFEST.MF
@@ -132,25 +132,25 @@
org.apache.logging.log4j
log4j-api
- ${log4jVersion}
+ ${log4j.version}
provided
org.apache.logging.log4j
log4j-core
- ${log4jVersion}
+ ${log4j.version}
provided
org.mockito
mockito-core
- 1.9.5
+ ${mockitoCore.version}
test
junit
junit
- 4.8.2
+ ${junit.version}
test
@@ -168,7 +168,7 @@
com.h2database
h2
- 1.3.174
+ ${h2Databaes.version}
test
@@ -235,13 +235,6 @@
-
-
- com.h2database
- h2
- 1.3.174
-
-
diff --git a/atomfeed-server/src/test/java/org/ict4h/atomfeed/server/service/feedgenerator/NumberFeedGeneratorTest.java b/atomfeed-server/src/test/java/org/ict4h/atomfeed/server/service/feedgenerator/NumberFeedGeneratorTest.java
index 517c581..31ada75 100644
--- a/atomfeed-server/src/test/java/org/ict4h/atomfeed/server/service/feedgenerator/NumberFeedGeneratorTest.java
+++ b/atomfeed-server/src/test/java/org/ict4h/atomfeed/server/service/feedgenerator/NumberFeedGeneratorTest.java
@@ -87,7 +87,7 @@ public void shouldRetrieveRecentFeed() throws Exception {
public void shouldRetrieveEmptyFeedForWhenRecentFeedIsQueriedForWithNoEventsPresent() {
AllEventRecords eventRecords = mock(AllEventRecords.class);
feedGenerator = new NumberFeedGenerator(eventRecords, allEventRecordsOffsetMarkers, allChunkingEntries);
- stub(eventRecords.getTotalCountForCategory(anyString())).toReturn(0);
+ when(eventRecords.getTotalCountForCategory(anyString())).thenReturn(0);
EventFeed feed = feedGenerator.getRecentFeed("");
Assert.assertEquals(new Integer(0), feed.getId());
diff --git a/atomfeed-spring-server/pom.xml b/atomfeed-spring-server/pom.xml
index 16e5641..cb18279 100644
--- a/atomfeed-spring-server/pom.xml
+++ b/atomfeed-spring-server/pom.xml
@@ -13,11 +13,6 @@
atomfeed-spring-server
jar
-
- 3.1.0.RELEASE
- 2.17.1
-
-
spring-maven-release
@@ -48,13 +43,13 @@
org.apache.logging.log4j
log4j-api
- ${log4jVersion}
+ ${log4j.version}
provided
org.apache.logging.log4j
log4j-core
- ${log4jVersion}
+ ${log4j.version}
provided
@@ -65,12 +60,12 @@
org.aspectj
aspectjweaver
- 1.7.1
+ ${aspectj.version}
javax.servlet
- servlet-api
- 2.5
+ javax.servlet-api
+ ${javaxServletApi.version}
provided