Skip to content

Commit 206018f

Browse files
committed
Merge branch 'master' of github.com:GraphWalker/graphwalker-project
2 parents b58141c + db71239 commit 206018f

File tree

2 files changed

+8
-8
lines changed
  • graphwalker-cli/src/main/java/org/graphwalker/cli/service
  • graphwalker-core/src/test/java/org/graphwalker/core/model

2 files changed

+8
-8
lines changed

graphwalker-cli/src/main/java/org/graphwalker/cli/service/Restful.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public Restful(CLI cli, Iterator itr) throws Exception {
6161
* non-existent, the label of the step is an empty string.
6262
*/
6363
@GET
64-
@Produces("text/plain")
64+
@Produces("text/plain;charset=UTF-8")
6565
@Path("hasNext")
6666
public String hasNext() {
6767
if (machine.hasNextStep()) {
@@ -88,7 +88,7 @@ public String hasNext() {
8888
* non-existent, the label of the step is an empty string.
8989
*/
9090
@GET
91-
@Produces("text/plain")
91+
@Produces("text/plain;charset=UTF-8")
9292
@Path("getNext")
9393
public String getNext() {
9494
try {
@@ -104,7 +104,7 @@ public String getNext() {
104104
}
105105

106106
@GET
107-
@Produces("text/plain")
107+
@Produces("text/plain;charset=UTF-8")
108108
@Path("getData")
109109
public String getData(@QueryParam("key") String key) {
110110
String value = machine.getCurrentContext().getKeys().get(key);
@@ -117,7 +117,7 @@ public String getData(@QueryParam("key") String key) {
117117
}
118118

119119
@GET
120-
@Produces("text/plain")
120+
@Produces("text/plain;charset=UTF-8")
121121
@Path("setData")
122122
public String setData(@QueryParam("script") String script) {
123123
try {
@@ -139,7 +139,7 @@ public String setData(@QueryParam("script") String script) {
139139
}
140140

141141
@GET
142-
@Produces("text/plain")
142+
@Produces("text/plain;charset=UTF-8")
143143
@Path("restart")
144144
public String restart() throws Exception {
145145
machine = new SimpleMachine(cli.getContextsWithPathGenerators(cli.getOnline().model.iterator()));
@@ -152,7 +152,7 @@ public String restart() throws Exception {
152152
}
153153

154154
@GET
155-
@Produces("text/plain")
155+
@Produces("text/plain;charset=UTF-8")
156156
@Path("fail")
157157
public String fail(@QueryParam("reason") String reason) {
158158
try {
@@ -170,7 +170,7 @@ public String fail(@QueryParam("reason") String reason) {
170170
}
171171

172172
@GET
173-
@Produces("text/plain")
173+
@Produces("text/plain;charset=UTF-8")
174174
@Path("getStatistics")
175175
public String getStatistics() {
176176
if (cli.getOnline().json) {

graphwalker-core/src/test/java/org/graphwalker/core/model/ModelTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,6 @@ public void createLargeModel() {
182182
Assert.assertThat(model.getEdges().size(), is(50000));
183183
Assert.assertThat(runtimeModel.getVertices().size(), is(50000));
184184
Assert.assertThat(runtimeModel.getEdges().size(), is(50000));
185-
Assert.assertTrue(TimeUnit.MILLISECONDS.convert(stopTime - startTime, TimeUnit.NANOSECONDS) < 10000);
185+
Assert.assertTrue(TimeUnit.MILLISECONDS.convert(stopTime - startTime, TimeUnit.NANOSECONDS) < 30000);
186186
}
187187
}

0 commit comments

Comments
 (0)