Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Commit e1e4f82

Browse files
authored
Merge pull request #400 from CJSCommonPlatform/merge-1.7-to-master
Merge 1.7 to master
2 parents c721484 + 1186827 commit e1e4f82

File tree

17 files changed

+142
-58
lines changed

17 files changed

+142
-58
lines changed

CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
1111
### Removed
1212
- Access control Provider annotation and annotation scanning; this functionality has moved to the access control library
1313

14-
## [2.0.0-rc1]
14+
## [2.0.0-rc1] 2017-05-31
1515

1616
### Changed
17+
- Refactor all framework components that are not internal so that they are provided as interfaces
18+
via new Framework API modules
19+
- Rework interceptor chain so that it is specific to a service component, by allowing each component
20+
to provide an interceptor chain definition rather than using annotation scanning
1721
- Upgrade to use framework parent POM [1.3.0](https://github.com/CJSCommonPlatform/maven-framework-parent-pom/releases/tag/release-1.3.0)
1822

1923
### Removed
@@ -22,6 +26,28 @@ be provided, typically by generating one from the destination RAML.
2226

2327
### Fixed
2428
- Test cases for random ZonedDateTime generators and added logging to show more info when they fail
29+
- Javadoc errors
30+
31+
### Added
32+
- Script for building dependencies locally
33+
- Support for generating and discovering direct adapters, if a message destination exists locally
34+
a service component in the same application
35+
36+
## [1.7.1] 2017-05-16
37+
38+
### Added
39+
- Utility for browsing and deleting DLQ messages, backported from separate test utils library
40+
- Support for adding additional fields when building metadata
41+
42+
## [1.7.0] 2017-05-16
43+
44+
### Added
45+
- Add test event log repository to the test-utils-core module
46+
47+
## [1.6.0] 2017-05-05
48+
49+
### Added
50+
- Support for PDF generation in Alfresco interface
2551

2652
## [1.5.2] 2017-04-07
2753

aggregate-snapshot/aggregate-snapshot-repository/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@
3939
<scope>test</scope>
4040
</dependency>
4141
</dependencies>
42-
</project>
42+
</project>

aggregate-snapshot/aggregate-snapshot-service/src/test/java/uk/gov/justice/services/eventsourcing/source/core/SnapshotAwareEnvelopeEventStreamTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@
1414
import uk.gov.justice.domain.aggregate.TestAggregate;
1515
import uk.gov.justice.services.eventsourcing.source.core.snapshot.SnapshotService;
1616
import uk.gov.justice.services.messaging.JsonEnvelope;
17-
import uk.gov.justice.services.messaging.Metadata;
1817

1918
import java.util.List;
2019
import java.util.UUID;
21-
import java.util.stream.Collectors;
2220
import java.util.stream.Stream;
2321

24-
import org.hamcrest.Matchers;
25-
import org.hibernate.metamodel.MetadataBuilder;
2622
import org.junit.Before;
2723
import org.junit.Test;
2824
import org.junit.runner.RunWith;

event-sourcing/event-repository/event-repository-jdbc/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,17 @@
9797
</dependency>
9898
<dependency>
9999
<groupId>uk.gov.justice.services</groupId>
100-
<artifactId>test-utils-persistence</artifactId>
100+
<artifactId>test-utils-common</artifactId>
101101
<version>${project.version}</version>
102102
<scope>test</scope>
103103
</dependency>
104104
<dependency>
105105
<groupId>uk.gov.justice.services</groupId>
106-
<artifactId>test-utils-core</artifactId>
106+
<artifactId>test-utils-persistence</artifactId>
107107
<version>${project.version}</version>
108108
<scope>test</scope>
109109
</dependency>
110+
110111
</dependencies>
111112

112113
</project>

event-sourcing/event-repository/event-repository-jdbc/src/main/java/uk/gov/justice/services/eventsourcing/repository/jdbc/eventlog/EventLogJdbcRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class EventLogJdbcRepository extends AbstractJdbcRepository<EventLog> {
2727

2828
//TODO @mrich 2016-09-29 - Re-enable the date_created field once liquibase scripts are configured
2929
@Inject
30-
Logger logger;
30+
protected Logger logger;
3131

3232
@Inject
3333
EventLogInsertionStrategy eventLogInsertionStrategy;

event-sourcing/event-repository/event-repository-jdbc/src/test/java/uk/gov/justice/services/eventsourcing/repository/jdbc/eventlog/EventLogConverterTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
import static org.hamcrest.CoreMatchers.equalTo;
44
import static org.hamcrest.CoreMatchers.is;
55
import static org.junit.Assert.assertThat;
6+
import static uk.gov.justice.services.messaging.DefaultJsonEnvelope.envelope;
67
import static uk.gov.justice.services.messaging.JsonObjectMetadata.metadataOf;
78
import static uk.gov.justice.services.messaging.JsonObjectMetadata.metadataWithRandomUUIDAndName;
8-
import static uk.gov.justice.services.test.utils.core.messaging.JsonEnvelopeBuilder.envelope;
99

1010
import uk.gov.justice.services.common.converter.StringToJsonObjectConverter;
1111
import uk.gov.justice.services.common.util.Clock;
1212
import uk.gov.justice.services.common.util.UtcClock;
1313
import uk.gov.justice.services.eventsourcing.repository.jdbc.exception.InvalidStreamIdException;
1414
import uk.gov.justice.services.messaging.DefaultJsonObjectEnvelopeConverter;
1515
import uk.gov.justice.services.messaging.JsonEnvelope;
16-
import uk.gov.justice.services.test.utils.core.helper.StoppedClock;
16+
import uk.gov.justice.services.test.utils.common.helper.StoppedClock;
1717

1818
import java.util.UUID;
1919

event-sourcing/event-source/src/test/java/uk/gov/justice/services/eventsourcing/source/core/EnvelopeEventStreamTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,11 @@
1414

1515
import uk.gov.justice.services.eventsourcing.source.core.exception.EventStreamException;
1616
import uk.gov.justice.services.messaging.JsonEnvelope;
17-
import uk.gov.justice.services.messaging.JsonObjectMetadata;
18-
import uk.gov.justice.services.test.utils.core.messaging.JsonEnvelopeBuilder;
1917

2018
import java.util.List;
2119
import java.util.UUID;
22-
import java.util.stream.Collectors;
2320
import java.util.stream.Stream;
2421

25-
import com.jayway.jsonassert.impl.matcher.IsCollectionWithSize;
2622
import org.junit.Before;
2723
import org.junit.Test;
2824
import org.junit.runner.RunWith;

example-context/example-service/example-it/src/test/java/uk/gov/justice/services/example/cakeshop/it/CakeShopIT.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import static javax.ws.rs.client.Entity.entity;
1616
import static javax.ws.rs.core.MediaType.APPLICATION_OCTET_STREAM_TYPE;
1717
import static org.apache.commons.io.IOUtils.contentEquals;
18-
import static org.apache.http.entity.ContentType.APPLICATION_JSON;
1918
import static org.apache.http.entity.ContentType.APPLICATION_OCTET_STREAM;
2019
import static org.apache.http.entity.mime.HttpMultipartMode.BROWSER_COMPATIBLE;
2120
import static org.exparity.hamcrest.date.ZonedDateTimeMatchers.within;
@@ -38,7 +37,7 @@
3837
import uk.gov.justice.services.eventsourcing.repository.jdbc.eventlog.EventLog;
3938
import uk.gov.justice.services.example.cakeshop.domain.aggregate.Recipe;
4039
import uk.gov.justice.services.example.cakeshop.it.util.ApiResponse;
41-
import uk.gov.justice.services.example.cakeshop.it.util.StandaloneEventLogJdbcRepository;
40+
import uk.gov.justice.services.test.utils.core.eventsource.TestEventLogRepository;
4241
import uk.gov.justice.services.example.cakeshop.it.util.StandaloneSnapshotJdbcRepository;
4342
import uk.gov.justice.services.example.cakeshop.it.util.StandaloneStreamStatusJdbcRepository;
4443
import uk.gov.justice.services.example.cakeshop.it.util.TestProperties;
@@ -65,7 +64,6 @@
6564
import javax.jms.Session;
6665
import javax.jms.TextMessage;
6766
import javax.jms.Topic;
68-
import javax.json.JsonObject;
6967
import javax.json.JsonObjectBuilder;
7068
import javax.sql.DataSource;
7169
import javax.ws.rs.client.Client;
@@ -130,7 +128,7 @@ public class CakeShopIT {
130128

131129
private static final TestProperties TEST_PROPERTIES = new TestProperties("test.properties");
132130

133-
private static StandaloneEventLogJdbcRepository EVENT_LOG_REPOSITORY;
131+
private static TestEventLogRepository EVENT_LOG_REPOSITORY;
134132
private static StandaloneStreamStatusJdbcRepository STREAM_STATUS_REPOSITORY;
135133
private static StandaloneSnapshotJdbcRepository SNAPSHOT_REPOSITORY;
136134
private static ActiveMQConnectionFactory JMS_CONNECTION_FACTORY;
@@ -143,7 +141,7 @@ public class CakeShopIT {
143141
@BeforeClass
144142
public static void beforeClass() throws Exception {
145143
final DataSource eventStoreDataSource = initEventStoreDb();
146-
EVENT_LOG_REPOSITORY = new StandaloneEventLogJdbcRepository(eventStoreDataSource);
144+
EVENT_LOG_REPOSITORY = new TestEventLogRepository(eventStoreDataSource);
147145
JMS_CONNECTION_FACTORY = new ActiveMQConnectionFactory(JMS_BROKER_URL);
148146

149147
final DataSource viewStoreDatasource = initViewStoreDb();

example-context/example-service/example-it/src/test/java/uk/gov/justice/services/example/cakeshop/it/util/StandaloneEventLogJdbcRepository.java

Lines changed: 0 additions & 33 deletions
This file was deleted.

test-utils/test-utils-common/pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
<artifactId>test-utils-common</artifactId>
1313
<dependencies>
14+
<!-- Leave glassfish at top as the preferred Json provider (even though its for test) -->
15+
<dependency>
16+
<groupId>org.glassfish</groupId>
17+
<artifactId>javax.json</artifactId>
18+
</dependency>
1419
<dependency>
1520
<groupId>uk.gov.justice.services</groupId>
1621
<artifactId>messaging-core</artifactId>
@@ -33,6 +38,10 @@
3338
<groupId>org.slf4j</groupId>
3439
<artifactId>slf4j-log4j12</artifactId>
3540
</dependency>
41+
<dependency>
42+
<groupId>com.jayway.jsonpath</groupId>
43+
<artifactId>json-path-assert</artifactId>
44+
</dependency>
3645
</dependencies>
3746

3847

0 commit comments

Comments
 (0)