Skip to content

Commit a846f28

Browse files
committedSep 28, 2017
Updated stateful simulation slides
1 parent 2a10258 commit a846f28

File tree

10 files changed

+1
-266
lines changed

10 files changed

+1
-266
lines changed
 
-104 Bytes
Binary file not shown.

‎2-api-simulation-basics/log/flights-service.out

-132
This file was deleted.

‎3-matching/flights-service.jar

-104 Bytes
Binary file not shown.
14.8 MB
Binary file not shown.
-104 Bytes
Binary file not shown.

‎4-dynamic-responses/log/flights-service.out

-127
This file was deleted.
17.3 MB
Binary file not shown.

‎5-stateful/shopping-service.jar

-159 Bytes
Binary file not shown.

‎6-fault-injection/flights-service.jar

-104 Bytes
Binary file not shown.

‎flights-service/src/main/java/io/specto/Flight.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22

33
import java.math.BigDecimal;
44
import java.time.LocalDateTime;
5-
import java.time.format.DateTimeFormatter;
6-
import java.time.format.DateTimeFormatterBuilder;
75

86
public class Flight {
97

10-
private DateTimeFormatter dateTimeFormatter = new DateTimeFormatterBuilder()
11-
.appendPattern("kk:mm")
12-
.toFormatter();
13-
148
private final String origin;
159
private final String destination;
1610
private final BigDecimal cost;
@@ -37,6 +31,6 @@ public String getCost() {
3731
}
3832

3933
public String getWhen() {
40-
return when.format(dateTimeFormatter);
34+
return when.toString();
4135
}
4236
}

0 commit comments

Comments
 (0)
Please sign in to comment.