20 lines
570 B
Java
20 lines
570 B
Java
|
package org.schabi.newpipe.player.playqueue;
|
||
|
|
||
|
import org.junit.Test;
|
||
|
|
||
|
import static org.junit.Assert.assertEquals;
|
||
|
import static org.junit.Assert.assertNotEquals;
|
||
|
|
||
|
public class PlayQueueItemTest {
|
||
|
|
||
|
public static final String URL = "MY_URL";
|
||
|
|
||
|
@Test
|
||
|
public void equalsMustNotBeOverloaded() {
|
||
|
final PlayQueueItem a = PlayQueueTest.makeItemWithUrl(URL);
|
||
|
final PlayQueueItem b = PlayQueueTest.makeItemWithUrl(URL);
|
||
|
assertEquals(a, a);
|
||
|
assertNotEquals(a, b); // they should compare different even if they have the same data
|
||
|
}
|
||
|
}
|