Examples of total()


Examples of org.jboss.aerogear.controller.router.rest.pagination.PaginationProperties.total()

    public void nextOffset() {
        final PaginationProperties params = new PaginationProperties(14, 10, 30);
        assertThat(params.nextOffset()).isEqualTo(24);
        assertThat(params.offset()).isEqualTo(14);
        assertThat(params.limit()).isEqualTo(10);
        assertThat(params.total().get()).isEqualTo(30);
    }

    @Test
    public void nextOffsetLastPage() {
        final PaginationProperties params = new PaginationProperties(90, 10, 100);
View Full Code Here

Examples of org.jboss.aerogear.controller.router.rest.pagination.PaginationProperties.total()

    public void nextOffsetLastPage() {
        final PaginationProperties params = new PaginationProperties(90, 10, 100);
        assertThat(params.nextOffset()).isEqualTo(100);
        assertThat(params.offset()).isEqualTo(90);
        assertThat(params.limit()).isEqualTo(10);
        assertThat(params.total().get()).isEqualTo(100);
        assertThat(params.isLastOffset()).isTrue();
    }

    @Test
    public void previousOffset() {
View Full Code Here

Examples of org.locationtech.geogig.remote.BinaryPackedObjects.IngestResults.total()

        IngestResults ingestResults = unpacker.ingest(in, callback);
        sw.stop();

        String msg = String
                .format("Processed %,d objects. Inserted: %,d. Existing: %,d. Time: %s. Compressed size: %,d bytes. Uncompressed size: %,d bytes.",
                        ingestResults.total(), ingestResults.getInserted(),
                        ingestResults.getExisting(), sw, in.compressedSize(), in.unCompressedSize());
        LOGGER.info(msg);
        progress.setDescription(msg);
    }
View Full Code Here

Examples of org.locationtech.geogig.remote.BinaryPackedObjects.IngestResults.total()

            IngestResults ingestResults = unpacker.ingest(countingStream);
            sw.stop();

            LOGGER.info(String
                    .format("SendObjectResource: Processed %,d objects.\nInserted: %,d.\nExisting: %,d.\nTime to process: %s.\nStream size: %,d bytes.\n",
                            ingestResults.total(), ingestResults.getInserted(),
                            ingestResults.getExisting(), sw, countingStream.getCount()));

        } catch (IOException e) {
            LOGGER.warn("Error processing incoming objects from {}", request.getClientInfo()
                    .getAddress(), e);
View Full Code Here

Examples of org.sonar.wsclient.base.Paging.total()

    assertThat(issues.paging()).isNotNull();
    Paging paging = issues.paging();
    assertThat(paging.pageIndex()).isEqualTo(1);
    assertThat(paging.pageSize()).isEqualTo(100);
    assertThat(paging.pages()).isEqualTo(1);
    assertThat(paging.total()).isEqualTo(2);

    assertThat(issues.maxResultsReached()).isTrue();
  }

  @Test
View Full Code Here

Examples of prevaylerjr.tests.somador.Somador.total()

public class SomadorTest extends Assert {

  @Test
  public void soma() {
    Somador somador = new Somador();
    assertEquals(0, somador.total());
   
    somador.soma(5);
    assertEquals(5, somador.total());

    somador.soma(2);
View Full Code Here

Examples of prevaylerjr.tests.somador.Somador.total()

  public void soma() {
    Somador somador = new Somador();
    assertEquals(0, somador.total());
   
    somador.soma(5);
    assertEquals(5, somador.total());

    somador.soma(2);
    assertEquals(7, somador.total());

    somador.soma(-4);
View Full Code Here

Examples of prevaylerjr.tests.somador.Somador.total()

   
    somador.soma(5);
    assertEquals(5, somador.total());

    somador.soma(2);
    assertEquals(7, somador.total());

    somador.soma(-4);
    assertEquals(3, somador.total());
  }
 
View Full Code Here

Examples of prevaylerjr.tests.somador.Somador.total()

    somador.soma(2);
    assertEquals(7, somador.total());

    somador.soma(-4);
    assertEquals(3, somador.total());
  }
 
}
View Full Code Here

Examples of prevaylerjr.tests.somador.Somador.total()

  @Test
  public void execucao() throws IOException {
    prevayler.execute(new Soma());
   
    Somador s = (Somador)prevayler.sistema();
    assertEquals(5, s.total());
   
    PrevaylerJr prevayler2 = createPrevayler();
   
    Somador s2 = (Somador)prevayler2.sistema();
    assertEquals(5, s2.total());
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.