@Test public void testConfigure() { System.out.println("configure"); TestElement tg = new SteppingThreadGroup(); SteppingThreadGroupGui instance = new SteppingThreadGroupGui(); instance.createTestElement(); instance.configure(tg); }
@Override public void configure(TestElement te) { super.configure(te); SteppingThreadGroup tg = (SteppingThreadGroup) te; totalThreads.setText(tg.getNumThreadsAsString()); initialDelay.setText(tg.getThreadGroupDelay()); incUserCount.setText(tg.getInUserCount()); incUserCountBurst.setText(tg.getInUserCountBurst()); incUserPeriod.setText(tg.getInUserPeriod()); decUserCount.setText(tg.getOutUserCount()); decUserPeriod.setText(tg.getOutUserPeriod()); flightTime.setText(tg.getFlightTime()); rampUp.setText(tg.getRampUp()); TestElement controller = (TestElement) tg.getProperty(AbstractThreadGroup.MAIN_CONTROLLER).getObjectValue(); if (controller != null) { loopPanel.configure(controller); } }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void configure(TestElement te) { super.configure(te); SteppingThreadGroup tg = (SteppingThreadGroup) te; totalThreads.setText(tg.getNumThreadsAsString()); initialDelay.setText(tg.getThreadGroupDelay()); incUserCount.setText(tg.getInUserCount()); incUserCountBurst.setText(tg.getInUserCountBurst()); incUserPeriod.setText(tg.getInUserPeriod()); decUserCount.setText(tg.getOutUserCount()); decUserPeriod.setText(tg.getOutUserPeriod()); flightTime.setText(tg.getFlightTime()); rampUp.setText(tg.getRampUp()); TestElement controller = (TestElement) tg.getProperty(AbstractThreadGroup.MAIN_CONTROLLER).getObjectValue(); if (controller != null) { loopPanel.configure(controller); } } }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void configure(TestElement te) { super.configure(te); SteppingThreadGroup tg = (SteppingThreadGroup) te; totalThreads.setText(tg.getNumThreadsAsString()); initialDelay.setText(tg.getThreadGroupDelay()); incUserCount.setText(tg.getInUserCount()); incUserCountBurst.setText(tg.getInUserCountBurst()); incUserPeriod.setText(tg.getInUserPeriod()); decUserCount.setText(tg.getOutUserCount()); decUserPeriod.setText(tg.getOutUserPeriod()); flightTime.setText(tg.getFlightTime()); rampUp.setText(tg.getRampUp()); TestElement controller = (TestElement) tg.getProperty(AbstractThreadGroup.MAIN_CONTROLLER).getObjectValue(); if (controller != null) { loopPanel.configure(controller); } } SteppingThreadGroupGui(); }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void configure(TestElement te) { super.configure(te); SteppingThreadGroup tg = (SteppingThreadGroup) te; totalThreads.setText(tg.getNumThreadsAsString()); initialDelay.setText(tg.getThreadGroupDelay()); incUserCount.setText(tg.getInUserCount()); incUserCountBurst.setText(tg.getInUserCountBurst()); incUserPeriod.setText(tg.getInUserPeriod()); decUserCount.setText(tg.getOutUserCount()); decUserPeriod.setText(tg.getOutUserPeriod()); flightTime.setText(tg.getFlightTime()); rampUp.setText(tg.getRampUp()); TestElement controller = (TestElement) tg.getProperty(AbstractThreadGroup.MAIN_CONTROLLER).getObjectValue(); if (controller != null) { loopPanel.configure(controller); } } SteppingThreadGroupGui(); @Override void clearGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); }
SteppingThreadGroupGui extends AbstractThreadGroupGui { @Override public void configure(TestElement te) { super.configure(te); SteppingThreadGroup tg = (SteppingThreadGroup) te; totalThreads.setText(tg.getNumThreadsAsString()); initialDelay.setText(tg.getThreadGroupDelay()); incUserCount.setText(tg.getInUserCount()); incUserCountBurst.setText(tg.getInUserCountBurst()); incUserPeriod.setText(tg.getInUserPeriod()); decUserCount.setText(tg.getOutUserCount()); decUserPeriod.setText(tg.getOutUserPeriod()); flightTime.setText(tg.getFlightTime()); rampUp.setText(tg.getRampUp()); TestElement controller = (TestElement) tg.getProperty(AbstractThreadGroup.MAIN_CONTROLLER).getObjectValue(); if (controller != null) { loopPanel.configure(controller); } } SteppingThreadGroupGui(); @Override void clearGui(); @Override String getLabelResource(); @Override String getStaticLabel(); @Override TestElement createTestElement(); @Override void modifyTestElement(TestElement te); @Override void configure(TestElement te); static final String WIKIPAGE; }