Package org.springframework.data.mongodb.core.mapping

Examples of org.springframework.data.mongodb.core.mapping.MongoPersistentEntity


  @SuppressWarnings("rawtypes")
  public void shouldAllowMatchingPathForDifferentOwners() {

    MongoPersistentProperty existing = createPersistentPropertyMock(entityMock, "foo");

    MongoPersistentEntity entityOfDifferentType = Mockito.mock(MongoPersistentEntity.class);
    when(entityOfDifferentType.getType()).thenReturn(String.class);
    MongoPersistentProperty toBeVerified = createPersistentPropertyMock(entityOfDifferentType, "foo");

    assertThat(new Path(existing, "foo.bar").cycles(toBeVerified, "foo.bar.bar"), is(false));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.mapping.MongoPersistentEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.