package kg.apc.jmeter.vizualizers; import kg.apc.emulators.TestJMeterUtils; import org.apache.jmeter.reporters.ResultCollector; import org.apache.jmeter.samplers.SampleResult; import org.apache.jmeter.testelement.TestElement; import org.junit.*; import static org.junit.Assert.*; public class ThroughputVsThreadsGuiTest { /** * */ public ThroughputVsThreadsGuiTest() { } /** * @throws Exception */ @BeforeClass public static void setUpClass() throws Exception { TestJMeterUtils.createJmeterEnv(); } /** * @throws Exception */ @AfterClass public static void tearDownClass() throws Exception { } /** * */ @Before public void setUp() { } /** * */ @After public void tearDown() { } /** * Test of getLabelResource method, of class ThroughputVsThreadsGui. */ @Test public void testGetLabelResource() { System.out.println("getLabelResource"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); String expResult = "ThroughputVsThreadsGui"; String result = instance.getLabelResource(); assertEquals(expResult, result); } /** * Test of getStaticLabel method, of class ThroughputVsThreadsGui. */ @Test public void testGetStaticLabel() { System.out.println("getStaticLabel"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); String result = instance.getStaticLabel(); assertTrue(result.length() > 0); } /** * Test of add method, of class ThroughputVsThreadsGui. */ @Test public void testAdd() { System.out.println("add"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); instance.add(new SampleResult()); instance.add(new SampleResult(0, 100)); instance.add(new SampleResult(0, 100)); } @Test public void testCreateTestElement() { System.out.println("createTestElement"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); TestElement result = instance.createTestElement(); assertNotNull(result); } @Test public void testModifyTestElement() { System.out.println("modifyTestElement"); TestElement c = new ResultCollector(); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); instance.modifyTestElement(c); } @Test public void testConfigure() { System.out.println("configure"); TestElement el = new ResultCollector(); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); instance.configure(el); } @Test public void testGetSettingsPanel() { System.out.println("getSettingsPanel"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); JSettingsPanel result = instance.createSettingsPanel(); assertNotNull(result); } /** * Test of getWikiPage method, of class ThroughputVsThreadsGui. */ @Test public void testGetWikiPage() { System.out.println("getWikiPage"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); String result = instance.getWikiPage(); assertTrue(result.length() > 0); } /** * Test of createSettingsPanel method, of class ThroughputVsThreadsGui. */ @Test public void testCreateSettingsPanel() { System.out.println("createSettingsPanel"); ThroughputVsThreadsGui instance = new ThroughputVsThreadsGui(); JSettingsPanel result = instance.createSettingsPanel(); assertNotNull(result); } }