Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #4198
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2017-04-28 07:04 -0700 |
| References | <g7coe7$hn9$1@news.nems.noaa.gov> |
| Message-ID | <819d27c7-ecb0-4fd2-8b24-ab2040bfd636@googlegroups.com> (permalink) |
| Subject | Re: What is/are the difference(s) between assertSame and assertEquals in JUnit? |
| From | anvesh.boddupalli@securifi.com |
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?
Back to comp.lang.java.help | Previous | Next — Next in thread | Find similar
Re: What is/are the difference(s) between assertSame and assertEquals in JUnit? anvesh.boddupalli@securifi.com - 2017-04-28 07:04 -0700 Re: What is/are the difference(s) between assertSame and assertEquals in JUnit? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-04-28 11:03 -0400
csiph-web