Package net.grinder.console.model

Examples of net.grinder.console.model.SampleModelImplementationEx$StoppedState


    // 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


    };

    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

Related Classes of net.grinder.console.model.SampleModelImplementationEx$StoppedState

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.