Examples of MongoPersistentEntity


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
Copyright © 2018 www.massapi.com. 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.