Java

Moderators: zibadian
Number of threads: 7832
Number of posts: 18231

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Junit Test Help Posted by princejohn on 8 Apr 2013 at 9:43 AM
i need help to make this test pass, i am using eclipse/.

@Test
public void testCreation()
{
Song s1 = new Song("First Song Title", 246);
Song s2 = new Song("Second Song Title", 340);
assertEquals(246, s1.getDuration());
assertEquals(340, s2.getDuration());
assertEquals("First Song Title", s1.getTitle());
assertEquals("Second Song Title", s2.getTitle());
}



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.