Examples of SampleModelImplementationEx


Examples of net.grinder.console.model.SampleModelImplementationEx

    // When the stop perftest is requested
    perfTestRunnable.setRunnable(new Runnable() {
      @Override
      public void run() {
        SingleConsole singleConsole = consoleManager.getConsoleInUse().get(0);
        SampleModelImplementationEx sampleModelMock = mock(SampleModelImplementationEx.class);
        singleConsole.setSampleModel(sampleModelMock);
        assertThat(singleConsole, notNullValue());
        perfTestController.stop(getTestUser(), String.valueOf(perfTest.getId()));
      }
    }, substep);
View Full Code Here

Examples of net.grinder.console.model.SampleModelImplementationEx

    };

    singleConsole.update(null, null);
    singleConsole.startSampling();

    SampleModelImplementationEx sampleModelMock = mock(SampleModelImplementationEx.class);

    singleConsole.setSampleModel(sampleModelMock);
    StatisticExpression exp = mock(StatisticExpression.class);
    StatisticsSet statisticMock = mock(StatisticsSet.class);
    StatisticsSet statisticAccumulatedMock = mock(StatisticsSet.class);
    when(statisticMock.snapshot()).thenReturn(statisticMock);
    when(statisticAccumulatedMock.snapshot()).thenReturn(statisticAccumulatedMock);
    when(exp.getDoubleValue(any(StatisticsSet.class))).thenReturn(3D);
    when(sampleModelMock.getTPSExpression()).thenReturn(exp);

    singleConsole.update(statisticMock, statisticAccumulatedMock);
    singleConsole.update(statisticMock, statisticAccumulatedMock);

  }
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.