I have a similar problem
Genericindex a;
Genericindex b;
a= datafrommethod();//returns object of Genericindex
b= datafrommethod();//returns object of Genericindex
b= anothermethod(b);//some object might be overriden
if(notoverridden){
assertEquals(a,b);}// this fails
can someone explain this?
In JUnit Assert class have
assertSame(Object expect, Object actual)
and
assertEquals(Object expect, Object actual)
What is/are the difference(s)?
Interesting, there is
assertNotSame(Object expect, Object actual)
But there is no
assertNotEquals(Object expect, Object actual)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 148:16:05 |
Calls: | 10,383 |
Calls today: | 8 |
Files: | 14,054 |
D/L today: |
2 files (1,861K bytes) |
Messages: | 6,417,740 |