use of com.axibase.tsd.api.model.property.Property in project atsd-api-test by axibase.
the class PropertyQueryTimezoneTest method testISOTimezoneZ.
@Issue("2850")
@Test
public void testISOTimezoneZ() throws Exception {
PropertyQuery propertyQuery = buildPropertyQuery();
propertyQuery.setStartDate("2016-05-21T00:00:00Z");
List<Property> storedPropertyList = queryProperty(propertyQuery).readEntity(new GenericType<List<Property>>() {
});
Property storedProperty = storedPropertyList.get(0);
assertEquals("Incorrect property entity", property.getEntity(), storedProperty.getEntity());
assertEquals("Incorrect property tags", property.getTags(), storedProperty.getTags());
assertEquals("Incorrect property date", property.getDate(), storedProperty.getDate());
}
use of com.axibase.tsd.api.model.property.Property in project atsd-api-test by axibase.
the class PropertyTypeQueryTest method testEntityNameContainsSlash.
@Issue("1278")
@Test
public void testEntityNameContainsSlash() throws Exception {
Property property = new Property("typequery-property-type-2", "typequery/entityname-2");
assertUrlencodedPathHandledSuccessfullyOnTypeQuery(property);
}
use of com.axibase.tsd.api.model.property.Property in project atsd-api-test by axibase.
the class PropertyTypeQueryTest method testEntityNameContainsCyrillic.
@Issue("1278")
@Test
public void testEntityNameContainsCyrillic() throws Exception {
Property property = new Property("typequery-property-type-3", "typequeryйёentityname-3");
assertUrlencodedPathHandledSuccessfullyOnTypeQuery(property);
}
use of com.axibase.tsd.api.model.property.Property in project atsd-api-test by axibase.
the class BackslashCharEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Property property = new Property("property-command-test-t6", "property-command-test\\-e6");
property.setTags(DEFAULT_PROPERTY_TAGS);
property.setDate(getCurrentDate());
PlainCommand command = new PropertyCommand(property);
CommandMethod.send(command);
assertPropertyExisting("Inserted property can not be received", property);
}
use of com.axibase.tsd.api.model.property.Property in project atsd-api-test by axibase.
the class DoubleBackslashCharEscapeTest method testEntity.
@Issue("2854")
@Test
public void testEntity() throws Exception {
Property property = new Property("property-command-test-t8", "property-command-test\\\\-e8");
property.setTags(DEFAULT_PROPERTY_TAGS);
property.setDate(getCurrentDate());
PlainCommand command = new PropertyCommand(property);
CommandMethod.send(command);
assertPropertyExisting("Inserted property can not be received", property);
}
Aggregations