Revision f64f32be
Added by Andreas Müller almost 2 years ago
src/main/java/eu/etaxonomy/dataportal/ElementUtils.java | ||
---|---|---|
12 | 12 |
import java.util.List; |
13 | 13 |
|
14 | 14 |
import org.apache.commons.lang3.StringUtils; |
15 |
import org.apache.log4j.Logger; |
|
15 |
import org.apache.logging.log4j.LogManager; |
|
16 |
import org.apache.logging.log4j.Logger; |
|
16 | 17 |
import org.openqa.selenium.By; |
17 | 18 |
import org.openqa.selenium.WebElement; |
18 | 19 |
import org.openqa.selenium.support.ui.WebDriverWait; |
... | ... | |
26 | 27 |
/** |
27 | 28 |
* @author andreas |
28 | 29 |
* @since Sep 16, 2011 |
29 |
* |
|
30 | 30 |
*/ |
31 | 31 |
public class ElementUtils { |
32 | 32 |
|
33 |
|
|
34 |
public static final Logger logger = Logger.getLogger(ElementUtils.class); |
|
35 |
|
|
33 |
private static final Logger logger = LogManager.getLogger(); |
|
36 | 34 |
|
37 | 35 |
public static List<BaseElement> baseElementsFromFootNoteListElements(List<WebElement> fnListElements) { |
38 |
List<BaseElement> footNotes = new ArrayList<BaseElement>();
|
|
36 |
List<BaseElement> footNotes = new ArrayList<>(); |
|
39 | 37 |
for(WebElement fn : fnListElements) { |
40 | 38 |
footNotes.add(new BaseElement(fn)); |
41 | 39 |
} |
... | ... | |
44 | 42 |
|
45 | 43 |
|
46 | 44 |
public static List<LinkElement> linkElementsFromFootNoteKeyListElements(List<WebElement> fnkListElements) { |
47 |
List<LinkElement> footNoteKeys = new ArrayList<LinkElement>();
|
|
45 |
List<LinkElement> footNoteKeys = new ArrayList<>(); |
|
48 | 46 |
for(WebElement fnk : fnkListElements) { |
49 | 47 |
footNoteKeys.add(new LinkElement(fnk)); |
50 | 48 |
} |
... | ... | |
64 | 62 |
return null; |
65 | 63 |
} |
66 | 64 |
|
67 |
ArrayList<List<GalleryImage>> galleryImageRows = new ArrayList<List<GalleryImage>>();
|
|
65 |
ArrayList<List<GalleryImage>> galleryImageRows = new ArrayList<>(); |
|
68 | 66 |
|
69 | 67 |
List<WebElement> mediaRows = gallery.findElements(By.cssSelector("tr.media-row")); |
70 | 68 |
List<WebElement> captionRows = gallery.findElements(By.cssSelector("tr.caption-row")); |
... | ... | |
144 | 142 |
markup += ">"; |
145 | 143 |
return markup; |
146 | 144 |
} |
147 |
|
|
148 |
|
|
149 |
} |
|
145 |
} |
Also available in: Unified diff
ref #10072 adapt dataportal to log4j2