Examples of skipEntityId()


Examples of org.sonatype.nexus.component.services.query.MetadataQuery.skipEntityId()

    MetadataQuery query = new MetadataQuery().limit(2);

    List<TestAsset> page1 = componentStore.findAssets(TestAsset.class, query);
    assertThat(page1.size(), is(2));

    query.skipEntityId(page1.get(1).getId());
    List<TestAsset> page2 = componentStore.findAssets(TestAsset.class, query);
    assertThat(page2.size(), is(2));

    query.skipEntityId(page2.get(1).getId());
    List<TestAsset> page3 = componentStore.findAssets(TestAsset.class, query);
View Full Code Here

Examples of org.sonatype.nexus.component.services.query.MetadataQuery.skipEntityId()

    query.skipEntityId(page1.get(1).getId());
    List<TestAsset> page2 = componentStore.findAssets(TestAsset.class, query);
    assertThat(page2.size(), is(2));

    query.skipEntityId(page2.get(1).getId());
    List<TestAsset> page3 = componentStore.findAssets(TestAsset.class, query);
    assertThat(page3.size(), is(0));
  }

  @Test
View Full Code Here

Examples of org.sonatype.nexus.component.services.query.MetadataQuery.skipEntityId()

    MetadataQuery query = new MetadataQuery().limit(1);

    List<TestComponent> page1 = componentStore.findComponents(TestComponent.class, query);
    assertThat(page1.size(), is(1));

    query.skipEntityId(page1.get(0).getId());
    List<TestComponent> page2 = componentStore.findComponents(TestComponent.class, query);
    assertThat(page2.size(), is(1));

    query.skipEntityId(page2.get(0).getId());
    List<TestComponent> page3 = componentStore.findComponents(TestComponent.class, query);
View Full Code Here

Examples of org.sonatype.nexus.component.services.query.MetadataQuery.skipEntityId()

    query.skipEntityId(page1.get(0).getId());
    List<TestComponent> page2 = componentStore.findComponents(TestComponent.class, query);
    assertThat(page2.size(), is(1));

    query.skipEntityId(page2.get(0).getId());
    List<TestComponent> page3 = componentStore.findComponents(TestComponent.class, query);
    assertThat(page3.size(), is(0));
  }
}
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.