• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TestBean类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.jmeter.testbeans.TestBean的典型用法代码示例。如果您正苦于以下问题:Java TestBean类的具体用法?Java TestBean怎么用?Java TestBean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



TestBean类属于org.apache.jmeter.testbeans包,在下文中一共展示了TestBean类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: suiteBeanComponents

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
private static Test suiteBeanComponents() throws Exception {
    TestSuite suite = new TestSuite("BeanComponents");
    Iterator<Object> iter = getObjects(TestBean.class).iterator();
    while (iter.hasNext()) {
        Class<? extends Object> c = iter.next().getClass();
        try {
            JMeterGUIComponent item = new TestBeanGUI(c);
            // JMeterGUIComponent item = (JMeterGUIComponent) iter.next();
            TestSuite ts = new TestSuite(item.getClass().getName());
            ts.addTest(new JMeterTest("GUIComponents2", item));
            ts.addTest(new JMeterTest("runGUITitle", item));
            suite.addTest(ts);
        } catch (IllegalArgumentException e) {
            System.out.println("o.a.j.junit.JMeterTest Cannot create test for " + c.getName() + " " + e);
            e.printStackTrace(System.out);
        }
    }
    return suite;
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:20,代码来源:JMeterTest.java


示例2: AbstractCqlSamplerBeanInfo

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected AbstractCqlSamplerBeanInfo(Class<? extends TestBean> beanClass) {
	super(beanClass);
	createPropertyGroup("cql", new String[] { "clusterId", "keySpace", "consistency", "query" });

	PropertyDescriptor p = property("query", TypeEditor.TextAreaEditor);
	p.setValue(NOT_UNDEFINED, Boolean.TRUE);
	p.setValue(DEFAULT, "select * from Standard");
	p.setValue(TEXT_LANGUAGE, "sql");
	
	p = property("keySpace");
	p.setValue(NOT_UNDEFINED, Boolean.TRUE);
	p.setValue(DEFAULT, "stress");
	
	p = property("clusterId");
	p.setValue(NOT_UNDEFINED, Boolean.TRUE);
	p.setValue(DEFAULT, "Cluster1");
	
	p = property("consistency");
	p.setValue(NOT_OTHER, Boolean.TRUE);
	p.setValue(TAGS, CassandraClusterConfigBeanInfo.toStrings(ConsistencyLevel.values()));
}
 
开发者ID:Mishail,项目名称:CqlJmeter,代码行数:22,代码来源:AbstractCqlSamplerBeanInfo.java


示例3: notifyTestListenersOfStart

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
private void notifyTestListenersOfStart(SearchByClass<TestStateListener> testListeners) {
    for (TestStateListener tl : testListeners.getSearchResults()) {
        if (tl instanceof TestBean) {
            TestBeanHelper.prepare((TestElement) tl);
        }
        if (host == null) {
            tl.testStarted();
        } else {
            tl.testStarted(host);
        }
    }
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:13,代码来源:StandardJMeterEngine.java


示例4: getIcon

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
public ImageIcon getIcon(boolean enabled) {
    try {
        if (getTestElement() instanceof TestBean) {
            try {
                Image img = Introspector.getBeanInfo(
                        getTestElement().getClass()).getIcon(
                        BeanInfo.ICON_COLOR_16x16);
                // If icon has not been defined, then use GUI_CLASS property
                if (img == null) {//
                    Object clazz = Introspector.getBeanInfo(
                            getTestElement().getClass())
                            .getBeanDescriptor().getValue(
                                    TestElement.GUI_CLASS);
                    if (clazz == null) {
                        log.error("Can't obtain GUI class for "
                                + getTestElement().getClass().getName());
                        return null;
                    }
                    return GUIFactory.getIcon(
                            Class.forName((String) clazz), enabled);
                }
                return new ImageIcon(img);
            } catch (IntrospectionException e1) {
                log.error("Can't obtain icon", e1);
                throw new org.apache.jorphan.util.JMeterError(e1);
            }
        } else {
            return GUIFactory.getIcon(Class.forName(getTestElement()
                    .getPropertyAsString(TestElement.GUI_CLASS)), enabled);
        }
    } catch (ClassNotFoundException e) {
        log.warn("Can't get icon for class " + getTestElement(), e);
        return null;
    }
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:36,代码来源:ReportTreeNode.java


示例5: notifyTestListenersOfStart

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
@SuppressWarnings("deprecation") // Deliberate use of deprecated method
private void notifyTestListenersOfStart(SearchByClass<TestStateListener> testListeners) {
    for (TestStateListener tl : testListeners.getSearchResults()) {
        if (tl instanceof TestBean) {
            TestBeanHelper.prepare((TestElement) tl);
        }
        if (host == null) {
            tl.testStarted();
        } else {
            tl.testStarted(host);
        }
    }
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:14,代码来源:StandardJMeterEngine.java


示例6: BeanShellBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected BeanShellBeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass);
    PropertyDescriptor p;

    p = property("resetInterpreter");
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, Boolean.FALSE);
    p.setValue(NOT_EXPRESSION, Boolean.TRUE);
    p.setValue(NOT_OTHER, Boolean.TRUE);

    createPropertyGroup("resetGroup", new String[] { "resetInterpreter" });

    p = property("parameters");
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "");

    createPropertyGroup("parameterGroup", new String[] { "parameters" });

    p = property("filename");
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "");

    createPropertyGroup("filenameGroup", new String[] { "filename" });

    p = property("script");
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "");
    p.setPropertyEditorClass(TextAreaEditor.class);

    createPropertyGroup("scripting", new String[] { "script" });
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:32,代码来源:BeanShellBeanInfoSupport.java


示例7: getIcon

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
public ImageIcon getIcon(boolean enabled) {
    TestElement testElement = getTestElement();
    try {
        if (testElement instanceof TestBean) {
            Class<?> testClass = testElement.getClass();
            try {
                Image img = Introspector.getBeanInfo(testClass).getIcon(BeanInfo.ICON_COLOR_16x16);
                // If icon has not been defined, then use GUI_CLASS property
                if (img == null) {
                    Object clazz = Introspector.getBeanInfo(testClass).getBeanDescriptor()
                            .getValue(TestElement.GUI_CLASS);
                    if (clazz == null) {
                        log.warn("getIcon(): Can't obtain GUI class from " + testClass.getName());
                        return null;
                    }
                    return GUIFactory.getIcon(Class.forName((String) clazz), enabled);
                }
                return new ImageIcon(img);
            } catch (IntrospectionException e1) {
                log.error("Can't obtain icon for class "+testElement, e1);
                throw new org.apache.jorphan.util.JMeterError(e1);
            }
        }
        return GUIFactory.getIcon(Class.forName(testElement.getPropertyAsString(TestElement.GUI_CLASS)),
                    enabled);
    } catch (ClassNotFoundException e) {
        log.warn("Can't get icon for class " + testElement, e);
        return null;
    }
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:31,代码来源:JMeterTreeNode.java


示例8: prepareBean

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected void prepareBean() {
    if (wrapped instanceof TestBean) {
        //noinspection deprecation
        TestBeanHelper.prepare((TestElement) wrapped); // the deprecation reason is not sufficient
    }
}
 
开发者ID:Blazemeter,项目名称:jmeter-debugger,代码行数:7,代码来源:AbstractDebugElement.java


示例9: JSR223BeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected JSR223BeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass, LANGUAGE_TAGS, NAME_BUNDLE);
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:4,代码来源:JSR223BeanInfoSupport.java


示例10: BeanShellBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected BeanShellBeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass);
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:4,代码来源:BeanShellBeanInfoSupport.java


示例11: BSFBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected BSFBeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass, LANGUAGE_TAGS);
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:4,代码来源:BSFBeanInfoSupport.java


示例12: ScriptingBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
public ScriptingBeanInfoSupport(Class<? extends TestBean> beanClass, String[] languageTags) {
    this(beanClass, languageTags, null);
}
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:4,代码来源:ScriptingBeanInfoSupport.java


示例13: JDBCTestElementBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
/**
     * @param beanClass class to create bean info for
     */
    public JDBCTestElementBeanInfoSupport(Class<? extends TestBean> beanClass) {
        super(beanClass);

//        createPropertyGroup("varName", // $NON-NLS-1$
//                new String[]{"dataSource" }); // $NON-NLS-1$
//
//        createPropertyGroup("sql", // $NON-NLS-1$
//                new String[] {
//                "queryType", // $NON-NLS-1$
//                "query", // $NON-NLS-1$
//                "queryArguments", // $NON-NLS-1$
//                "queryArgumentsTypes", // $NON-NLS-1$
//                "variableNames", // $NON-NLS-1$
//                "resultVariable", // $NON-NLS-1$
//                "queryTimeout", // $NON-NLS-1$
//                "resultSetHandler" // $NON-NLS-1$
//                });
//
//        PropertyDescriptor p = property("dataSource"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//
//        p = property("queryArguments"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//
//        p = property("queryArgumentsTypes"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//
//        p = property("variableNames"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//
//        p = property("resultSetHandler"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, AbstractJDBCTestElement.RS_STORE_AS_STRING);
//        p.setValue(NOT_OTHER, Boolean.TRUE);
//        p.setValue(TAGS,new String[]{
//                AbstractJDBCTestElement.RS_STORE_AS_STRING,
//                AbstractJDBCTestElement.RS_STORE_AS_OBJECT,
//                AbstractJDBCTestElement.RS_COUNT_RECORDS
//                });       
//
//        p = property("resultVariable"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//
//        p = property("queryTimeout"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, "");
//        
//        p = property("queryType"); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, AbstractJDBCTestElement.SELECT);
//        p.setValue(NOT_OTHER,Boolean.TRUE);
//        p.setValue(TAGS,new String[]{
//                AbstractJDBCTestElement.SELECT,
//                AbstractJDBCTestElement.UPDATE,
//                AbstractJDBCTestElement.CALLABLE,
//                AbstractJDBCTestElement.PREPARED_SELECT,
//                AbstractJDBCTestElement.PREPARED_UPDATE,
//                AbstractJDBCTestElement.COMMIT,
//                AbstractJDBCTestElement.ROLLBACK,
//                AbstractJDBCTestElement.AUTOCOMMIT_FALSE,
//                AbstractJDBCTestElement.AUTOCOMMIT_TRUE,
//                });
//
//        p = property("query", TypeEditor.TextAreaEditor); // $NON-NLS-1$
//        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
//        p.setValue(DEFAULT, ""); // $NON-NLS-1$
//        p.setValue(TEXT_LANGUAGE, "sql");  // $NON-NLS-1$

    }
 
开发者ID:johrstrom,项目名称:cloud-meter,代码行数:78,代码来源:JDBCTestElementBeanInfoSupport.java


示例14: CassandraTestElementBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
/**
 *
 */
public CassandraTestElementBeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass);

    createPropertyGroup("varName", // $NON-NLS-1$
            new String[]{"sessionName" }); // $NON-NLS-1$

    createPropertyGroup("cql", // $NON-NLS-1$
            new String[] {
            "queryType", // $NON-NLS-1$
            "query", // $NON-NLS-1$
            "queryArguments", // $NON-NLS-1$
            "variableNames", // $NON-NLS-1$
            "resultVariable", // $NON-NLS-1$
            "consistencyLevel", // $NON-NLS-1$
            "batchSize" // $NON-NLS-1$
            });

    PropertyDescriptor p = property("sessionName"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("queryArguments"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("variableNames"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("resultVariable"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("batchSize"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "");

    p = property("queryType"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, AbstractCassandaTestElement.SIMPLE);
    p.setValue(NOT_OTHER,Boolean.TRUE);
    p.setValue(TAGS,new String[]{
            AbstractCassandaTestElement.SIMPLE,
            AbstractCassandaTestElement.PREPARED,
            AbstractCassandaTestElement.DYNAMIC_BATCH
            });

    p = property("consistencyLevel"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "ONE");
    p.setValue(NOT_OTHER,Boolean.TRUE);
    p.setValue(TAGS,new String[]{
            AbstractCassandaTestElement.ANY,
            AbstractCassandaTestElement.ONE,
            AbstractCassandaTestElement.QUORUM,
            AbstractCassandaTestElement.TWO,
            AbstractCassandaTestElement.THREE,
            AbstractCassandaTestElement.ALL,
            AbstractCassandaTestElement.LOCAL_ONE,
            AbstractCassandaTestElement.LOCAL_QUORUM,
            AbstractCassandaTestElement.EACH_QUORUM
    });

    p = property("query", TypeEditor.TextAreaEditor); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$
    p.setValue(TEXT_LANGUAGE, "sql");  // $NON-NLS-1$

}
 
开发者ID:slowenthal,项目名称:jmeter-cassandra,代码行数:73,代码来源:CassandraTestElementBeanInfoSupport.java


示例15: JDBCTestElementBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
/**
 *
 */
public JDBCTestElementBeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass);

    createPropertyGroup("varName", // $NON-NLS-1$
            new String[]{"dataSource" }); // $NON-NLS-1$

    createPropertyGroup("sql", // $NON-NLS-1$
            new String[] {
            "queryType", // $NON-NLS-1$
            "query", // $NON-NLS-1$
            "queryArguments", // $NON-NLS-1$
            "queryArgumentsTypes", // $NON-NLS-1$
            "variableNames", // $NON-NLS-1$
            "resultVariable", // $NON-NLS-1$
            "queryTimeout" // $NON-NLS-1$
            });

    PropertyDescriptor p = property("dataSource"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("queryArguments"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("queryArgumentsTypes"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("variableNames"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("resultVariable"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    p = property("queryTimeout"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, "");
    
    p = property("queryType"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, AbstractJDBCTestElement.SELECT);
    p.setValue(NOT_OTHER,Boolean.TRUE);
    p.setValue(TAGS,new String[]{
            AbstractJDBCTestElement.SELECT,
            AbstractJDBCTestElement.UPDATE,
            AbstractJDBCTestElement.CALLABLE,
            AbstractJDBCTestElement.PREPARED_SELECT,
            AbstractJDBCTestElement.PREPARED_UPDATE,
            AbstractJDBCTestElement.COMMIT,
            AbstractJDBCTestElement.ROLLBACK,
            AbstractJDBCTestElement.AUTOCOMMIT_FALSE,
            AbstractJDBCTestElement.AUTOCOMMIT_TRUE,
            });

    p = property("query", TypeEditor.TextAreaEditor); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$
    p.setValue(TEXT_LANGUAGE, "sql");  // $NON-NLS-1$

}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:67,代码来源:JDBCTestElementBeanInfoSupport.java


示例16: JSR223BeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected JSR223BeanInfoSupport(Class<? extends TestBean> beanClass) {
    super(beanClass, LANGUAGE_TAGS);
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:4,代码来源:JSR223BeanInfoSupport.java


示例17: ScriptingBeanInfoSupport

import org.apache.jmeter.testbeans.TestBean; //导入依赖的package包/类
protected ScriptingBeanInfoSupport(Class<? extends TestBean> beanClass, String[] LANGUAGE_TAGS) {
    super(beanClass);
    PropertyDescriptor p;

    p = property("scriptLanguage"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$
    p.setValue(TAGS, LANGUAGE_TAGS);

    createPropertyGroup("scriptingLanguage", // $NON-NLS-1$
            new String[] { "scriptLanguage" }); // $NON-NLS-1$

    p = property("parameters"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$

    createPropertyGroup("parameterGroup", // $NON-NLS-1$
            new String[] { "parameters" }); // $NON-NLS-1$

    p = property("filename"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$
    p.setPropertyEditorClass(FileEditor.class);

    createPropertyGroup("filenameGroup",  // $NON-NLS-1$
            new String[] { "filename" }); // $NON-NLS-1$

    /*
     * If we are creating a JSR223 element, add the cache key property.
     * 
     * Note that this cannot be done in the JSR223BeanInfoSupport class
     * because that causes problems with the group; its properties are
     * not always set up before they are needed. This cause various
     * issues with the GUI:
     * - wrong field attributes (should not allow null)
     * - sometimes GUI is completely mangled
     * - field appears at start rather than at end.
     * - the following warning is logged:
     * jmeter.testbeans.gui.GenericTestBeanCustomizer: 
     * org.apache.jmeter.util.JSR223TestElement#cacheKey does not appear to have been configured
     * 
     * Adding the group here solves these issues, and it's also
     * possible to add the key just before the script panel
     * to which it relates.
     * 
     * It's not yet clear why this should be, but it looks as though
     * createPropertyGroup does not work properly if it is called from
     * any subclasses of this class.
     * 
     */
    if (JSR223TestElement.class.isAssignableFrom(beanClass) ) {
        p = property("cacheKey"); // $NON-NLS-1$
        p.setValue(NOT_UNDEFINED, Boolean.TRUE);
        p.setValue(DEFAULT, ""); // $NON-NLS-1$

        createPropertyGroup("cacheKey_group", // $NON-NLS-1$
            new String[] { "cacheKey" }); // $NON-NLS-1$
    }

    p = property("script"); // $NON-NLS-1$
    p.setValue(NOT_UNDEFINED, Boolean.TRUE);
    p.setValue(DEFAULT, ""); // $NON-NLS-1$
    p.setPropertyEditorClass(TextAreaEditor.class);

    createPropertyGroup("scripting", // $NON-NLS-1$
            new String[] { "script" }); // $NON-NLS-1$
}
 
开发者ID:botelhojp,项目名称:apache-jmeter-2.10,代码行数:68,代码来源:ScriptingBeanInfoSupport.java



注:本文中的org.apache.jmeter.testbeans.TestBean类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SunDropTargetContextPeer类代码示例发布时间:2022-05-21
下一篇:
Java CanvasPeer类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap