Skip to content
Permalink
Browse files

Release v1.2.4

  • Loading branch information...
b_muth b_muth
b_muth authored and b_muth committed Oct 2, 2019
1 parent 2adac24 commit 2b7cc3f63e3d658938c01bf59de483b05311cf8f
@@ -28,14 +28,14 @@ If you are using Maven, include the following in your POM, to use the core:
<dependency>
<groupId>org.requirementsascode</groupId>
<artifactId>requirementsascodecore</artifactId>
<version>1.2.3</version>
<version>1.2.4</version>
</dependency>
```
If you are using Gradle, include the following in your build.gradle, to use the core:
```
compile 'org.requirementsascode:requirementsascodecore:1.2.3'
compile 'org.requirementsascode:requirementsascodecore:1.2.4'
```
# how to use requirements as code
Here's what you need to do as a developer.
@@ -1,6 +1,6 @@
allprojects{
group = 'org.requirementsascode'
version = '1.2.3'
version = '1.2.4'

apply plugin: 'java'
apply plugin: 'eclipse'
@@ -25,6 +25,11 @@ artifacts {
archives javadocJar, sourcesJar
}

tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}

if (project.hasProperty("signing.keyId")) {
apply plugin: 'signing'

@@ -86,8 +86,8 @@ public ModelRunner handleUnhandledWith(Consumer<Object> unhandledMessageHandler)
public ModelRunner publishWith(Consumer<Object> eventPublisher) {
Objects.requireNonNull(eventPublisher);
this.eventPublisher = event -> {
eventPublisher.accept(event);
latestPublishedEvent = event;
eventPublisher.accept(event);
};
return this;
}
@@ -457,7 +457,20 @@ public void publishEnteredTextAsStringWithUserInFirstStep() {
}

@Test
public void publishEnteredTextAsStringAfterMultipleEvents() {
public void publishIntegerInsteadOfEnteredText() {
final Integer EXPECTED_INTEGER = 1234;

Model model = modelBuilder.useCase(USE_CASE)
.user(EntersText.class).systemPublish(super::publishEnteredTextAsString)
.on(String.class).systemPublish(text -> EXPECTED_INTEGER)
.build();

Integer actualInteger = (Integer)modelRunner.run(model).reactTo(entersText()).get();
assertEquals(EXPECTED_INTEGER, actualInteger);
}

@Test
public void publishEnteredTextAsStringAfterDifferentEvent() {
Model model = modelBuilder.useCase(USE_CASE)
.user(EntersText.class).systemPublish(super::publishEnteredTextAsString)
.on(EntersNumber.class).system(new IgnoresIt<>())
@@ -19,7 +19,7 @@ jar {

dependencies {
compile("org.springframework.boot:spring-boot-starter-data-rest")
compile 'org.requirementsascode:requirementsascodeextract:1.2.3'
compile 'org.requirementsascode:requirementsascodeextract:1.2.4'
testCompile 'junit:junit:4.12'
}

@@ -1,12 +1,13 @@
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.7'
id 'org.openjfx.javafxplugin' version '0.0.8'
}

sourceCompatibility = 11

javafx {
version = 11
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

@@ -9,14 +9,14 @@ If you are using Maven, include the following in your POM:
<dependency>
<groupId>org.requirementsascode</groupId>
<artifactId>requirementsascodeextract</artifactId>
<version>1.2.3</version>
<version>1.2.4</version>
</dependency>
```

If you are using Gradle, include the following in your build.gradle:

```
compile 'org.requirementsascode:requirementsascodeextract:1.2.3'
compile 'org.requirementsascode:requirementsascodeextract:1.2.4'
```

This will put the following libraries on the classpath:

0 comments on commit 2b7cc3f

Please sign in to comment.
You can’t perform that action at this time.