use of com.microsoft.appcenter.ingestion.models.properties.BooleanTypedProperty in project mobile-center-sdk-android by Microsoft.
the class CommonSchemaDataUtilsAndroidTest method booleanTypedProperty.
@Test
public void booleanTypedProperty() throws JSONException {
MockCommonSchemaLog log = new MockCommonSchemaLog();
List<TypedProperty> properties = new ArrayList<>();
BooleanTypedProperty property = new BooleanTypedProperty();
property.setName("a");
property.setValue(true);
properties.add(property);
CommonSchemaDataUtils.addCommonSchemaData(properties, log);
assertEquals(1, log.getData().getProperties().length());
assertTrue(log.getData().getProperties().getBoolean("a"));
}
Aggregations