package pirateboat.torrent;

import org.junit.jupiter.api.Test;
import pirateboat.utilities.HttpHelper;

import java.util.List;

import static org.junit.Assert.assertTrue;

class KatcrTest {

    @Test
    public void shouldFindTorrents() {
        // Given
        //when(httpHelper.getPage(anyString())).thenReturn("responseBody");
        // When
        List<Torrent> torrentList = new Katcr(new HttpHelper()).searchTorrents("planet");
        // Then
        assertTrue(torrentList.size() > 0);
    }
}
@@ -159,20 +159,23 @@
 t.assert
-True
+NotNull
 ;%0A%0Aclass
@@ -470,12 +470,15 @@
 sert
-True
+NotNull
 (tor
@@ -489,19 +489,8 @@
 List
-.size() %3E 0
 );%0A 

fix test