Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 7907022427211386880
This apply will demonstrate the key's JSON serialization, and verify deserialization integrity.
SerializationTest.java:99 executed in 0.00 seconds (0.000 gc):
final JsonObject json = layer.getJson().getAsJsonObject();
@Nonnull final Layer echo = Layer.fromJson(json);
if (layer == echo) {
echo.freeRef();
throw new AssertionError("Serialization did not copy");
}
if (!layer.equals(echo)) {
echo.freeRef();
throw new AssertionError("Serialization not equal");
}
echo.freeRef();
return json;
Returns
{
"class": "com.simiacryptus.mindseye.layers.java.ProductInputsLayer",
"id": "8e7c4335-8702-40a3-be0e-7a0330a8bc4d",
"isFrozen": false,
"name": "ProductInputsLayer"
}
Wrote Model to ProductInputsLayer_jsonTest.json; 174 characters
LayerTests.java:425 executed in 0.00 seconds (0.000 gc):
throwException(exceptions.addRef());
class | result |
---|---|
com.simiacryptus.mindseye.test.unit.SerializationTest | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.470",
"gc_time": "0.243"
},
"created_on": 1586738584268,
"file_name": "jsonTest",
"report": {
"simpleName": "N1Test",
"canonicalName": "com.simiacryptus.mindseye.layers.java.ProductInputsLayerTest.N1Test",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/ProductInputsLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/ProductInputsLayer/N1Test/jsonTest/202004134303",
"id": "0699279e-ca5c-41a4-8b36-20097c6d97f4",
"report_type": "Components",
"display_name": "JSON Serialization",
"target": {
"simpleName": "ProductInputsLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.ProductInputsLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/ProductInputsLayer.java",
"javaDoc": ""
}
}