use of org.neo4j.ogm.domain.gh619.model.RealNode in project neo4j-ogm by neo4j.
the class LabelDeterminationTest method metaDataWithImplicitParentPackageShouldWork.
// GH-619
@Test
public void metaDataWithImplicitParentPackageShouldWork() {
MetaData metaData = new MetaData("org.neo4j.ogm.domain.gh619.model");
Collection<String> labels = EntityUtils.labels(new RealNode(), metaData);
assertThat(labels).hasSize(1).containsExactly("real");
}
use of org.neo4j.ogm.domain.gh619.model.RealNode in project neo4j-ogm by neo4j.
the class LabelDeterminationTest method metaDataFromParentPackageShouldWork.
// GH-619
@Test
public void metaDataFromParentPackageShouldWork() {
MetaData metaData = new MetaData("org.neo4j.ogm.domain.gh619");
Collection<String> labels = EntityUtils.labels(new RealNode(), metaData);
assertThat(labels).hasSize(1).containsExactly("real");
}
use of org.neo4j.ogm.domain.gh619.model.RealNode in project neo4j-ogm by neo4j.
the class LabelDeterminationTest method metaDataWithExplicitPackagesShouldWork.
// GH-619
@Test
public void metaDataWithExplicitPackagesShouldWork() {
MetaData metaData = new MetaData("org.neo4j.ogm.domain.gh619.base", "org.neo4j.ogm.domain.gh619.model");
Collection<String> labels = EntityUtils.labels(new RealNode(), metaData);
assertThat(labels).hasSize(1).containsExactly("real");
}