Skip to content

Commit fefdba6

Browse files
committed
Merge branch 'dkapil-task/BAEL-10944'
2 parents 6bae0fc + 480aada commit fefdba6

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@
561561
<module>reactor-core</module>
562562
<module>rest-with-spark-java</module>
563563
<module>resteasy</module>
564-
<!-- <module>restx</module> --> <!-- Tests failing. Fixing in BAEL-10944 -->
564+
<module>restx</module>
565565
<!-- <module>rmi</module> --> <!-- Not a maven project -->
566566
<module>rule-engines/easy-rules</module>
567567
<module>rule-engines/openl-tablets</module>
@@ -1279,7 +1279,7 @@
12791279
<module>reactor-core</module>
12801280
<module>rest-with-spark-java</module>
12811281
<module>resteasy</module>
1282-
<!-- <module>restx</module> --> <!-- Tests failing. Fixing in BAEL-10944 -->
1282+
<module>restx</module>
12831283
<!-- <module>rmi</module> --> <!-- Not a maven project -->
12841284
<module>rule-engines/easy-rules</module>
12851285
<module>rule-engines/openl-tablets</module>

restx/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,6 @@
151151
<maven.compiler.target>1.8</maven.compiler.target>
152152
<maven.compiler.source>1.8</maven.compiler.source>
153153
<restx.version>0.35-rc4</restx.version>
154-
<logback-classic.version>1.0.13</logback-classic.version>
154+
<logback-classic.version>1.2.3</logback-classic.version>
155155
</properties>
156156
</project>

restx/src/main/java/restx/demo/rest/HelloResource.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import restx.demo.domain.Message;
44
import restx.demo.Roles;
55
import org.joda.time.DateTime;
6+
import org.joda.time.DateTimeZone;
7+
68
import restx.annotations.GET;
79
import restx.annotations.POST;
810
import restx.annotations.RestxResource;
@@ -29,7 +31,7 @@ public Message sayHello() {
2931
return new Message().setMessage(String.format(
3032
"hello %s, it's %s",
3133
RestxSession.current().getPrincipal().get().getName(),
32-
DateTime.now().toString("HH:mm:ss")));
34+
DateTime.now(DateTimeZone.UTC).toString("HH:mm:ss")));
3335
}
3436

3537
/**
@@ -44,7 +46,7 @@ public Message sayHello() {
4446
public Message helloPublic(String who) {
4547
return new Message().setMessage(String.format(
4648
"hello %s, it's %s",
47-
who, DateTime.now().toString("HH:mm:ss")));
49+
who, DateTime.now(DateTimeZone.UTC).toString("HH:mm:ss")));
4850
}
4951

5052
public static class MyPOJO {

restx/src/test/resources/specs/hello/should_admin_say_hello.spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ wts:
77
GET message
88
$RestxSession: {"_expires":"2013-09-27T01:18:00.822+02:00","principal":"admin","sessionKey":"e2b4430f-9541-4602-9a3a-413d17c56a6b"}
99
then: |
10-
{"message":"hello admin, it's 01:18:00"}
10+
{"message":"hello admin, it's 23:18:00"}

restx/src/test/resources/specs/hello/should_anyone_say_hello.spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ wts:
55
- when: |
66
GET hello?who=xavier
77
then: |
8-
{"message":"hello xavier, it's 01:18:00"}
8+
{"message":"hello xavier, it's 23:18:00"}

restx/src/test/resources/specs/hello/should_user1_say_hello.spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ wts:
77
GET message
88
$RestxSession: {"_expires":"2013-09-27T01:18:00.822+02:00","principal":"user1","sessionKey":"e2b4430f-9541-4602-9a3a-413d17c56a6b"}
99
then: |
10-
{"message":"hello user1, it's 01:18:00"}
10+
{"message":"hello user1, it's 23:18:00"}

0 commit comments

Comments
 (0)