Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 Michael Ruflin, Andr´┐Ż Locher, Claudia von Bastian. This file is part of Tatool. Tatool is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tatool is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with Tatool. If not, see <>. /

Helper Class with getter and setter methods for general miscellaneous properties.

Michael Ruflin
public class Misc {

Property name used to set a description value.
	public static final String PROPERTY_DESCRIPTION = "description";
	public static final String PROPERTY_OUTCOME = "outcome";
	public static StringProperty getOutcomeProperty() {
	public static void setOutcomeProperty(StringProperty outcomeProperty) {
		. = outcomeProperty;
	/*public static String getLastOutcome(ExecutionContext executionContext) {
		List<Trial> trials = executionContext.getExecutionData().getTrials();
		if (trials.isEmpty()) return null;
		return getOutcomeProperty().getValue(trials.get(trials.size()-1);

Gets the descriptionProperty as a StringProperty.


Sets the descriptionProperty as a StringProperty

descriptionProperty the StringProperty that will be set
	public static void setDescriptionProperty(StringProperty descriptionProperty) {
		. = descriptionProperty;
New to GrepCode? Check out our FAQ X