* .shared.neurons.Neuron
* #equals(java.lang.Object)}.
*/
@Test
public final void testEqualsObject() {
Neuron n = new InputNeuron();
Neuron n1 = new InputNeuron();
assertEquals(n, n1);
n.setType(null);
n1.setType(null);
assertEquals(n, n1);
n1 = null;
assertFalse(n.equals(n1));
HiddenLayer n2 = new HiddenLayer(1);
assertFalse(n.equals(n2));
n.setActivationFunction(null);
n1 = new InputNeuron();
assertFalse(n.equals(n1));
n1.setType(null);
n1.setActivationFunction(null);
assertEquals(n, n1);
n.setActivationFunction(new SigmoidFunction());
assertFalse(n.equals(n1));
Neuron i = new InputNeuron();
Neuron i1 = new InputNeuron();
Neuron m = new HiddenNeuron();
Neuron o = new OutputNeuron();
Neuron o1 = new OutputNeuron();
i.addOutputLink(m);
i1.addOutputLink(m);
m.addOutputLink(o);
m.addOutputLink(o1);
i.getNextChild();
assertFalse(i.equals(i1));
o.getNextParent();
assertFalse(o.equals(o1));
assertFalse(i1.equals(o1));
Neuron k = new OutputNeuron();
Neuron k1 = new OutputNeuron();
k1.addOutputLink(o);
assertFalse(k.equals(k1));
Neuron l = new OutputNeuron();
Neuron l1 = new InputNeuron();
assertFalse(l.equals(l1));
Neuron p = new OutputNeuron();
p.setValue(new DoubleValue());
Neuron p1 = new OutputNeuron();
p1.setValue(new DoubleValue(Constants.TEN));
assertFalse(p.equals(p1));
p.setValue(null);
p1.setValue(new DoubleValue(Constants.ELEVEN_D));
assertFalse(p.equals(p1));
p.setValue(null);
p1.setValue(null);
assertEquals(p, p1);
}