use of org.springframework.data.mongodb.repository.QAddress in project spring-data-mongodb by spring-projects.
the class SpringDataMongodbSerializerUnitTests method returnsEmptyStringIfNoPathExpressionIsGiven.
// DATAMONGO-376
@Test
public void returnsEmptyStringIfNoPathExpressionIsGiven() {
QAddress address = QPerson.person.shippingAddresses.any();
assertThat(serializer.getKeyForPath(address, address.getMetadata()), is(""));
}