1 package net.pterodactylus.xdcc.data;
3 import static org.hamcrest.MatcherAssert.*;
4 import static org.hamcrest.Matchers.*;
6 import org.hamcrest.MatcherAssert;
7 import org.hamcrest.Matchers;
9 import org.mockito.Mockito;
12 * Unit test for {@link Bot}.
14 * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
16 public class BotTest {
18 private final Network network = Mockito.mock(Network.class);
19 private final Bot bot = new Bot(network, "#test", "Test-Bot");
20 private final Pack oldPack = new Pack("7", "123", "new-file.dat");
21 private final Pack newPack = new Pack("15", "234", "new-file.dat");
24 public void addingOneFileWithTwoIdsRemovesTheOldId() {
27 assertThat(bot.packs(), contains(newPack));