Tackling the multichannel testing challenge

Testing that moves between interfaces, from mobile to web and back again

Return to article

Figure 3. Code example for abstract class
package xxx.xxx.;

import java.sql.ResultSet;
import java.sql.SQLException;
 */
public abstract class Query

	//constructor
	public Query(Folder parent, String name) {
		super(parent, name);
	}

	//rename operation to be implemented in concrete class
	abstract protected void doRename(String newName, LogType logtype);

	//after rename succeeds, update name
	public void rename(String newName, LogType logtype){
		doRename(newName, logtype);
		this.setName(newName);
	}

	//setters/getters
	private void setName (String newName){
		this.name=newName;
	}

	public string getName(){
		return name;
	}

}

Return to article