@Ignore("test is difficult") @Test public void testAddListener() { System.out.println("addListener"); VariableListListener listener = new FormalExpErrorFinderTreeListener(null, null); SymbolicVariableList instance = new SymbolicVariableList(); instance.addListener(listener); String id = "test"; InternalTypeContainer internalTypeContainer = new InternalTypeContainer(InternalTypeRep.INTEGER); instance.addSymbolicVariable(id, internalTypeContainer); }
public synchronized void addListener(VariableListListener listener) { this.listenerList.add(listener); symbolicVariableList.forEach((var) -> { listener.addedVar(var); }); }
SymbolicVariableList { public synchronized void addListener(VariableListListener listener) { this.listenerList.add(listener); symbolicVariableList.forEach((var) -> { listener.addedVar(var); }); } }
SymbolicVariableList { public synchronized void addListener(VariableListListener listener) { this.listenerList.add(listener); symbolicVariableList.forEach((var) -> { listener.addedVar(var); }); } SymbolicVariableList(); }
SymbolicVariableList { public synchronized void addListener(VariableListListener listener) { this.listenerList.add(listener); symbolicVariableList.forEach((var) -> { listener.addedVar(var); }); } SymbolicVariableList(); synchronized void addSymbolicVariable(String id, InternalTypeContainer internalTypeContainer); synchronized boolean isVarIDAllowed(String id); synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList); synchronized List<SymbolicVariable> getSymbolicVariables(); synchronized List<SymbolicVariable> getSymbolicVariablesCloned(); synchronized boolean removeSymbolicVariable(String id); synchronized void removeSymbolicVariable(int index); synchronized void addListener(VariableListListener listener); synchronized void removeListener(VariableListListener listener); }
SymbolicVariableList { public synchronized void addListener(VariableListListener listener) { this.listenerList.add(listener); symbolicVariableList.forEach((var) -> { listener.addedVar(var); }); } SymbolicVariableList(); synchronized void addSymbolicVariable(String id, InternalTypeContainer internalTypeContainer); synchronized boolean isVarIDAllowed(String id); synchronized void setSymbolicVariableList(List<SymbolicVariable> symbolicVariableList); synchronized List<SymbolicVariable> getSymbolicVariables(); synchronized List<SymbolicVariable> getSymbolicVariablesCloned(); synchronized boolean removeSymbolicVariable(String id); synchronized void removeSymbolicVariable(int index); synchronized void addListener(VariableListListener listener); synchronized void removeListener(VariableListListener listener);  }