|
30 | 30 |
|
31 | 31 | import org.junit.Test;
|
32 | 32 |
|
33 |
| -import com.arangodb.ArangoDB; |
34 | 33 | import com.arangodb.velocypack.exception.VPackBuilderNeedOpenCompoundException;
|
35 | 34 | import com.arangodb.velocypack.exception.VPackBuilderNumberOutOfRangeException;
|
36 | 35 | import com.arangodb.velocypack.exception.VPackBuilderUnexpectedValueException;
|
@@ -954,25 +953,4 @@ public void objectWithByteSizeOver65536() {
|
954 | 953 | assertThat(vpack.get(foo).get(bar2).getLength(), is(0));
|
955 | 954 | }
|
956 | 955 |
|
957 |
| - @Test |
958 |
| - public void bytelength() { |
959 |
| - final String name1 = "{\"name1\":\"job_04_detail_1\",\"seven__\":\"123456789\",\"_key\":\"191d936d-1eb9-4094-9c1c-9e0ba1d01867\",\"lang\":\"it\",\"value\":\"[CTO]\\n Ha supervisionato e gestito il reparto di R&D per il software, 1234567 formulando una visione di lungo periodo con la Direzione dell'Azienda.\"}"; |
960 |
| - final String name = "{\"name\":\"job_04_detail_1\",\"seven__\":\"123456789\",\"_key\":\"191d936d-1eb9-4094-9c1c-9e0ba1d01867\",\"lang\":\"it\",\"value\":\"[CTO]\\n Ha supervisionato e gestito il reparto di R&D per il software, 1234567 formulando una visione di lungo periodo con la Direzione dell'Azienda.\"}"; |
961 |
| - |
962 |
| - final ArangoDB arangoDB = new ArangoDB.Builder().build(); |
963 |
| - { |
964 |
| - final VPackSlice vpack = arangoDB.util().serialize(name1); |
965 |
| - assertThat(vpack.isObject(), is(true)); |
966 |
| - assertThat(vpack.get("name1").isString(), is(true)); |
967 |
| - assertThat(vpack.get("name1").getAsString(), is("job_04_detail_1")); |
968 |
| - |
969 |
| - } |
970 |
| - { |
971 |
| - final VPackSlice vpack = arangoDB.util().serialize(name); |
972 |
| - assertThat(vpack.isObject(), is(true)); |
973 |
| - assertThat(vpack.get("name").isString(), is(true)); |
974 |
| - assertThat(vpack.get("name").getAsString(), is("job_04_detail_1")); |
975 |
| - } |
976 |
| - } |
977 |
| - |
978 | 956 | }
|
0 commit comments