Skip to content

Commit

Permalink
Added new keys for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Guian Gumpac <[email protected]>
  • Loading branch information
GumpacG committed Sep 12, 2024
1 parent a0ddbde commit 497818a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions java/integTest/src/test/java/glide/SharedCommandTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ public void non_UTF8_GlideString_map(BaseClient client) {
byte[] nonUTF8Bytes = new byte[] {(byte) 0xEE};
GlideString key = gs(nonUTF8Bytes);
GlideString hashKey = gs(UUID.randomUUID().toString());
GlideString hashNonUTF8Key = gs(new byte[] {(byte) 0xFF});
GlideString hashNonUTF8Key = gs(new byte[] {(byte) 0xDD});
GlideString value = gs(nonUTF8Bytes);
String stringField = "field";
Map<GlideString, GlideString> fieldValueMap = Map.of(gs(stringField), value);
Expand Down Expand Up @@ -1029,7 +1029,7 @@ public void non_UTF8_GlideString_map(BaseClient client) {
public void non_UTF8_GlideString_map_with_double(BaseClient client) {
byte[] nonUTF8Bytes = new byte[] {(byte) 0xEE};
GlideString key = gs(UUID.randomUUID().toString());
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xFF});
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xEF});
Map<GlideString, Double> membersScores =
Map.of(gs(nonUTF8Bytes), 1.0, gs("two"), 2.0, gs("three"), 3.0);

Expand Down Expand Up @@ -1095,7 +1095,7 @@ public void non_UTF8_GlideString_nested_array(BaseClient client) {
public void non_UTF8_GlideString_map_with_geospatial(BaseClient client) {
byte[] nonUTF8Bytes = new byte[] {(byte) 0xEE};
GlideString key = gs(UUID.randomUUID().toString());
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xFF});
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xDF});
Map<GlideString, GeospatialData> membersToCoordinates = new HashMap<>();
membersToCoordinates.put(gs(nonUTF8Bytes), new GeospatialData(13.361389, 38.115556));
membersToCoordinates.put(gs("Catania"), new GeospatialData(15.087269, 37.502669));
Expand Down Expand Up @@ -1145,7 +1145,7 @@ public void non_UTF8_GlideString_map_with_geospatial(BaseClient client) {
public void non_UTF8_GlideString_map_of_arrays(BaseClient client) {
byte[] nonUTF8Bytes = new byte[] {(byte) 0xEE};
GlideString key = gs(UUID.randomUUID().toString());
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xFF});
GlideString nonUTF8Key = gs(new byte[] {(byte) 0xFE});
GlideString[] lpushArgs = {gs(nonUTF8Bytes), gs("two")};

// Testing map of arrays using byte[] that cannot be converted to UTF-8 Strings.
Expand Down

0 comments on commit 497818a

Please sign in to comment.