File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
main/java/com/authenteq/util
test/java/com/authenteq/api Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public static Gson getGson() {
43
43
.registerTypeAdapter (Outputs .class , new OutputsDeserializer ())
44
44
.registerTypeAdapter (Votes .class , new VoteDeserializer ())
45
45
.registerTypeAdapterFactory (new GsonEmptyCheckTypeAdapterFactory ())
46
- .setExclusionStrategies (new CustomExclusionStrategy ()).create ();
46
+ .addSerializationExclusionStrategy (new CustomExclusionStrategy ()).create ();
47
47
}
48
48
return gson ;
49
49
}
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ public void testAssetSearch()
59
59
60
60
Assets assets = AssetsApi .getAssets ( asQuoted ( uuid ) );
61
61
assertTrue ( assets .size () == 1 ); // there should be one and only one
62
+ assertTrue ( assets .getAssets ().get (0 ).getId () != null ); // asset ID should not be null
62
63
} catch (IOException | StatusException e ) {
63
64
e .printStackTrace ();
64
65
}
You can’t perform that action at this time.
0 commit comments