Package org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.CycleGuard

Examples of org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.CycleGuard.Path


   */
  @Test
  public void shouldIdentifyCycleForOwnerOfSameTypeAndMatchingPath() {

    MongoPersistentProperty property = createPersistentPropertyMock(entityMock, "foo");
    assertThat(new Path(property, "foo.bar").cycles(property, "foo.bar.bar"), is(true));
  }
View Full Code Here


    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

   */
  @Test
  public void shouldAllowEqaulPropertiesOnDifferentPaths() {

    MongoPersistentProperty property = createPersistentPropertyMock(entityMock, "foo");
    assertThat(new Path(property, "foo.bar").cycles(property, "foo2.bar.bar"), is(false));
  }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.index.MongoPersistentEntityIndexResolver.CycleGuard.Path

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.