Search in sources :

Example 1 with RealNode

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");
}
Also used : RealNode(org.neo4j.ogm.domain.gh619.model.RealNode) MetaData(org.neo4j.ogm.metadata.MetaData) Test(org.junit.Test)

Example 2 with RealNode

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");
}
Also used : RealNode(org.neo4j.ogm.domain.gh619.model.RealNode) MetaData(org.neo4j.ogm.metadata.MetaData) Test(org.junit.Test)

Example 3 with RealNode

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");
}
Also used : RealNode(org.neo4j.ogm.domain.gh619.model.RealNode) MetaData(org.neo4j.ogm.metadata.MetaData) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)3 RealNode (org.neo4j.ogm.domain.gh619.model.RealNode)3 MetaData (org.neo4j.ogm.metadata.MetaData)3