try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeInterpolationAlgorithm(CesiumInterpolationAlgorithm.HERMITE);
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_boolean"); try { customPropertyWriter.writeBoolean(true); cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_cartesian"); try { customPropertyWriter.writeCartesian(new Cartesian(1D, 2D, 3D));
@Test public final void customPropertyBooleanConstant() { { final PacketCesiumWriter usingExpression_0 = (getPacket()); try { { cesiumlanguagewriter.CustomPropertiesCesiumWriter customPropertiesWriter = getPacket().openPropertiesProperty(); try { { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeBoolean(true); } finally { DisposeHelper.dispose(customPropertyWriter); } } } finally { DisposeHelper.dispose(customPropertiesWriter); } } } finally { DisposeHelper.dispose(usingExpression_0); } } Assert.assertEquals("{\"properties\":{\"custom_property\":true}}", getStringWriter().toString()); }
@Test public final void customPropertyCartesianConstant() { { final PacketCesiumWriter usingExpression_2 = (getPacket()); try { { cesiumlanguagewriter.CustomPropertiesCesiumWriter customPropertiesWriter = getPacket().openPropertiesProperty(); try { { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try { customPropertyWriter.writeCartesian(new Cartesian(1D, 2D, 3D)); } finally { DisposeHelper.dispose(customPropertyWriter); } } } finally { DisposeHelper.dispose(customPropertiesWriter); } } } finally { DisposeHelper.dispose(usingExpression_2); } } Assert.assertEquals("{\"properties\":{\"custom_property\":{\"cartesian\":[1,2,3]}}}", getStringWriter().toString()); }
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_property"); try {
try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_boolean"); try { cesiumlanguagewriter.CustomPropertyCesiumWriter customPropertyWriter = customPropertiesWriter.openCustomPropertyProperty("custom_cartesian"); try { ArrayList<cesiumlanguagewriter.JulianDate> dates = new ArrayList<cesiumlanguagewriter.JulianDate>();