Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #4198

Re: What is/are the difference(s) between assertSame and assertEquals in JUnit?

X-Received by 10.129.85.207 with SMTP id j198mr5350365ywb.55.1493388273983; Fri, 28 Apr 2017 07:04:33 -0700 (PDT)
X-Received by 10.157.82.15 with SMTP id e15mr239152oth.6.1493388273895; Fri, 28 Apr 2017 07:04:33 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!c45no341413qtb.1!news-out.google.com!x200ni1936itb.0!nntp.google.com!c26no540828itd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.help
Date Fri, 28 Apr 2017 07:04:33 -0700 (PDT)
In-Reply-To <g7coe7$hn9$1@news.nems.noaa.gov>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=49.205.78.50; posting-account=cM5TIAoAAADC9LO6pM1lkX8Davi72Cht
NNTP-Posting-Host 49.205.78.50
References <g7coe7$hn9$1@news.nems.noaa.gov>
User-Agent G2/1.0
MIME-Version 1.0
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
Injection-Date Fri, 28 Apr 2017 14:04:33 +0000
Content-Type text/plain; charset=UTF-8
Lines 13
Xref csiph.com comp.lang.java.help:4198

Show key headers only | View raw


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 | NextNext in thread | Find similar


Thread

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