optimize soul-bootstrap test case
modify all string variables to constants in soul-bootstrap test,Keep indents (including blank lines) consistent with the previous one in soul-bootstrap test
@@ -30,8 +30,8 @@ public final class DubboMultiParameterTest {
@Test
public void assertTwoStringParam() {
- String body = "{\"id\": \"123\",\"name\": \"xiaoyu\"}";
- String parameterTypes = "java.lang.String,java.lang.String";
+ final String body = "{\"id\": \"123\",\"name\": \"xiaoyu\"}";
+ final String parameterTypes = "java.lang.String,java.lang.String";
Pair<String[], Object[]> pair = resolveService.buildParameter(body, parameterTypes);
assertThat(pair.getLeft().length, is(2));
assertThat(pair.getRight().length, is(2));
@@ -39,8 +39,8 @@ public final class DubboMultiParameterTest {
@Test
public void assertArrayAndString() {
- String body = "{\"ids\":[\"123\",\"456\"],\"name\":\"hello world\"}\n";
- String parameterTypes = "java.lang.Integer[],java.lang.String";
+ final String body = "{\"ids\":[\"123\",\"456\"],\"name\":\"hello world\"}\n";
+ final String parameterTypes = "java.lang.Integer[],java.lang.String";
Pair<String[], Object[]> pair = resolveService.buildParameter(body, parameterTypes);
assertThat(pair.getLeft().length, is(2));
assertThat(pair.getRight().length, is(2));
