Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 89ed2a4

Browse files
committed
Updated spring and other libary projects
1 parent 38abf34 commit 89ed2a4

File tree

4 files changed

+25
-22
lines changed

4 files changed

+25
-22
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ A set of integration and unit tests can be found in _src/test/java_ (tests) & _s
9191

9292
#### Core ####
9393
* Java 7 SDK
94-
* Spring (3.1.2-RELEASE)
95-
* Google Guava (12.0)
94+
* Spring (3.2.5-RELEASE)
95+
* Google Guava (14.0.1)
9696

9797
#### Logging ####
98-
* logback (1.0.6)
99-
* slf4j (1.6.4)
98+
* logback (1.0.13)
99+
* slf4j (1.7.5)
100100

101101
#### Testing ####
102-
* juint (4.10)
103-
* jmock (2.6.0-RC2)
102+
* juint (4.11)
103+
* jmock (2.6.0)
104104
* hamcrest-all (1.3)
105-
* spring-test (3.1.2-RELEASE)
105+
* spring-test (3.2.5-RELEASE)

pom.xml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,36 @@
66
<version>0.0.2-SNAPSHOT</version>
77

88
<properties>
9-
<spring.version>3.1.2.RELEASE</spring.version>
9+
<spring.version>3.2.5.RELEASE</spring.version>
10+
<logback.version>1.0.13</logback.version>
1011
</properties>
1112

1213
<dependencies>
1314

1415
<dependency>
1516
<groupId>com.google.guava</groupId>
1617
<artifactId>guava</artifactId>
17-
<version>12.0</version>
18+
<version>14.0.1</version>
1819
</dependency>
1920
<dependency>
2021
<groupId>joda-time</groupId>
2122
<artifactId>joda-time</artifactId>
22-
<version>2.1</version>
23+
<version>2.3</version>
2324
</dependency>
2425
<dependency>
2526
<groupId>org.slf4j</groupId>
2627
<artifactId>slf4j-api</artifactId>
27-
<version>1.6.4</version>
28+
<version>1.7.5</version>
2829
</dependency>
2930
<dependency>
3031
<groupId>ch.qos.logback</groupId>
3132
<artifactId>logback-core</artifactId>
32-
<version>1.0.6</version>
33+
<version>${logback.version}</version>
3334
</dependency>
3435
<dependency>
3536
<groupId>ch.qos.logback</groupId>
3637
<artifactId>logback-classic</artifactId>
37-
<version>1.0.6</version>
38+
<version>${logback.version}</version>
3839
</dependency>
3940

4041
<!-- Spring Stuff -->
@@ -54,7 +55,7 @@
5455
<groupId>junit</groupId>
5556
<artifactId>junit</artifactId>
5657
<scope>test</scope>
57-
<version>4.10</version>
58+
<version>4.11</version>
5859
</dependency>
5960
<dependency>
6061
<groupId>org.hamcrest</groupId>
@@ -65,19 +66,19 @@
6566
<dependency>
6667
<groupId>org.jmock</groupId>
6768
<artifactId>jmock</artifactId>
68-
<version>2.6.0-RC2</version>
69+
<version>2.6.0</version>
6970
<scope>test</scope>
7071
</dependency>
7172
<dependency>
7273
<groupId>org.jmock</groupId>
7374
<artifactId>jmock-legacy</artifactId>
74-
<version>2.6.0-RC2</version>
75+
<version>2.6.0</version>
7576
<scope>test</scope>
7677
</dependency>
7778
<dependency>
7879
<groupId>org.jmock</groupId>
7980
<artifactId>jmock-junit4</artifactId>
80-
<version>2.6.0-RC2</version>
81+
<version>2.6.0</version>
8182
<scope>test</scope>
8283
</dependency>
8384
<dependency>

src/test/java/com/morgan/design/properties/event/GuavaPropertyChangedEventNotifierUnitTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22

33
import org.jmock.Expectations;
44
import org.jmock.Mockery;
5-
import org.jmock.integration.junit4.JMock;
65
import org.jmock.integration.junit4.JUnit4Mockery;
6+
import org.jmock.integration.junit4.JUnitRuleMockery;
77
import org.jmock.lib.legacy.ClassImposteriser;
88
import org.junit.Before;
9+
import org.junit.Rule;
910
import org.junit.Test;
10-
import org.junit.runner.RunWith;
1111

1212
import com.google.common.eventbus.EventBus;
1313
import com.morgan.design.properties.bean.PropertyModifiedEvent;
1414
import com.morgan.design.properties.internal.ReloadablePropertyPostProcessor;
1515

16-
@RunWith(JMock.class)
1716
@SuppressWarnings("unqualified-field-access")
1817
public class GuavaPropertyChangedEventNotifierUnitTest {
1918

19+
@Rule
20+
public JUnitRuleMockery ruleMockery = new JUnitRuleMockery();
21+
2022
Mockery context = new JUnit4Mockery() {
2123
{
2224
setImposteriser(ClassImposteriser.INSTANCE);

src/test/java/com/morgan/design/properties/internal/PropertiesWatcherUnitTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.morgan.design.properties.internal;
22

3-
import static junit.framework.Assert.assertNotNull;
4-
import static junit.framework.Assert.assertNull;
3+
import static org.junit.Assert.assertNotNull;
4+
import static org.junit.Assert.assertNull;
55
import static org.hamcrest.CoreMatchers.is;
66
import static org.junit.Assert.assertThat;
77

0 commit comments

Comments
 (0)