@@ -0,0 +1,1555 @@
+package com.codeborne.selenide.collections;%0A%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0Aimport org.openqa.selenium.WebElement;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collections;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.mockito.Mockito.when;%0A%0Apublic class TextsTest %7B%0A%0A  @Test%0A  public void testApplyWithEmptyList() %7B%0A    Texts texts = new Texts(%22One%22, %22Two%22, %22Three%22);%0A    assertFalse(texts.apply(Collections.emptyList()));%0A  %7D%0A%0A  @Test%0A  public void testApplyWithWrongSizeList() %7B%0A    Texts texts = new Texts(Arrays.asList(%22One%22, %22Two%22, %22Three%22));%0A    assertFalse(texts.apply(Collections.singletonList(Mockito.mock(WebElement.class))));%0A  %7D%0A%0A  @Test%0A  public void testApplyWithMatchOnPartialText() %7B%0A    testApplyMethod(true);%0A  %7D%0A%0A  @Test%0A  public void testApplyWithNoMatchOnPartialText() %7B%0A    testApplyMethod(false);%0A  %7D%0A%0A  private void testApplyMethod(boolean shouldMatch) %7B%0A    Texts texts = new Texts(Arrays.asList(%22One%22, %22Two%22));%0A    WebElement mockElement1 = Mockito.mock(WebElement.class);%0A    WebElement mockElement2 = Mockito.mock(WebElement.class);%0A%0A    when(mockElement1.getText()).thenReturn(shouldMatch ? %22OneThing%22 : %22Three%22);%0A    when(mockElement2.getText()).thenReturn(shouldMatch ? %22Two%22 : %22Selenide%22);%0A    assertEquals(shouldMatch, texts.apply(Arrays.asList(mockElement1, mockElement2)));%0A  %7D%0A%0A  @Test%0A  public void testToString() %7B%0A    Texts texts = new Texts(Arrays.asList(%22One%22, %22Two%22));%0A    assertEquals(%22Texts %5BOne, Two%5D%22, texts.toString());%0A  %7D%0A%0A%7D%0A

add Texts unit tests