alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * Created on 24/02/2004
 *
 * To change the template for this generated file go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
package org.apache.jmeter.examples.testbeans.example1;

import org.apache.jmeter.samplers.Entry;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.samplers.Sampler;
import org.apache.jmeter.testbeans.TestBean;

/**
 * This TestBean is just an example about how to write testbeans. The intent is to demonstrate
 * usage of the TestBean features to podential TestBean developers. Note that only the class's
 * introspector view matters: the methods do nothing -- nothing useful, in any case.
 */
public class Example1 extends TestBean implements Sampler {
	public SampleResult sample(Entry e) {
		return new SampleResult();
	}
	
	// A String property:
	public void setMyStringProperty(String s)
	{};
	public String getMyStringProperty()
	{return "";}
	
	// A String[] property:
	public void setMyStrings(String[] s)
	{};
	public String[] getMyStrings()
	{return null;}
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.