Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

Junit Test Help

$
0
0
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());
}

Viewing all articles
Browse latest Browse all 2703

Trending Articles