I am new to Fitnesse testing Tool. I was wondering what level of thread safety we need to provide for my fixture classes.
public class SampleModel {
String code;
String value;
Integer index;
Map<Integer, SomeClass> mapTest = new HashMap<>();
// Setters
public void execute() {
mapTest.put(index++, new SomeClass(code, value));
}
}
Decision Table
!| Sample Model
|code |value
|a |apple
|b |banana
In the above example if I run same test twice in Fitnesse at the same time does the variables index and mapTest posses an issue of thread safety ?