* Test method for {@link com.neuralnetwork
* .shared.neurons.Neuron#setInputs(Vector)}.
*/
@Test
public final void testInputs() {
Neuron n = new InputNeuron();
Neuron n1 = new InputNeuron();
Neuron m = new HiddenNeuron();
m.addInputLink(n);
m.addInputLink(n1);
Vector<ILink> v = new Vector<ILink>();
v.add(m.getInputLinks(0)[0]);
v.add(m.getInputLinks(1)[0]);
m.setInputs(v);
assertEquals(v.get(0).getHead(), m);
assertEquals(v.get(1).getHead(), m);
assertEquals(v.get(0).getTail(), n);
assertEquals(v.get(1).getTail(), n1);
m.setInputs(null);
assertNull(m.getInputs());
v.clear();
m.setInputs(v);
assertEquals(m.getInputs().size(), 0);
}