cerza
19-10-2016, 17:09
Salve a tutti,
ho dubbio, dopo aver inserito questo pezzo di codice
Set<State> newSet = new HashSet<>();
for (State state : stateReached) {
if ((state.getFather() != null)) {
if ((state.getFather().isCount()) & (state.getFather().getMin() == 0)) {
for (Transition transPadre : state.getFather().getEpsilonTransition()) {
newSet.addAll(transPadre.runTransition(stateInitial, c));
}
}
}
}
stateReached.addAll(newSet);
nell'eseguire i test di unità mi ritrovo una concurrentModifiactionExcpetion, ma non riesco a capire cosa c'è di concorrente, può essere che Junit esegua contemporaneamente vari test e quindi l'eccezione è legata a questo?
Grazie a quanti leggeranno ed un grazie in più a chi sa darmi qualche suggerimento ;)
ho dubbio, dopo aver inserito questo pezzo di codice
Set<State> newSet = new HashSet<>();
for (State state : stateReached) {
if ((state.getFather() != null)) {
if ((state.getFather().isCount()) & (state.getFather().getMin() == 0)) {
for (Transition transPadre : state.getFather().getEpsilonTransition()) {
newSet.addAll(transPadre.runTransition(stateInitial, c));
}
}
}
}
stateReached.addAll(newSet);
nell'eseguire i test di unità mi ritrovo una concurrentModifiactionExcpetion, ma non riesco a capire cosa c'è di concorrente, può essere che Junit esegua contemporaneamente vari test e quindi l'eccezione è legata a questo?
Grazie a quanti leggeranno ed un grazie in più a chi sa darmi qualche suggerimento ;)