Revision 23de68fc
Added by Andreas Müller almost 2 years ago
cdmlib-ext/src/test/java/eu/etaxonomy/cdm/ext/kml/KmlJaxbMarshallerTest.java | ||
---|---|---|
3 | 3 |
import static org.junit.Assert.assertTrue; |
4 | 4 |
|
5 | 5 |
import java.io.File; |
6 |
import java.io.FileWriter; |
|
7 | 6 |
import java.io.IOException; |
8 | 7 |
import java.io.StringWriter; |
9 | 8 |
|
... | ... | |
12 | 11 |
import javax.xml.bind.Marshaller; |
13 | 12 |
|
14 | 13 |
import org.apache.commons.io.FileUtils; |
15 |
import org.apache.log4j.Level;
|
|
16 |
import org.apache.log4j.Logger; |
|
14 |
import org.apache.logging.log4j.LogManager;
|
|
15 |
import org.apache.logging.log4j.Logger;
|
|
17 | 16 |
import org.junit.Before; |
18 | 17 |
import org.junit.Test; |
19 | 18 |
|
... | ... | |
24 | 23 |
import eu.etaxonomy.cdm.model.occurrence.GatheringEvent; |
25 | 24 |
|
26 | 25 |
public class KmlJaxbMarshallerTest { |
27 |
|
|
28 |
Kml kml; |
|
29 |
|
|
30 |
Logger logger; |
|
31 |
|
|
26 |
|
|
27 |
private Kml kml; |
|
28 |
|
|
29 |
private static final Logger logger = LogManager.getLogger(KmlJaxbMarshallerTest.class); |
|
30 |
|
|
31 |
|
|
32 | 32 |
@Before |
33 | 33 |
public void makeKML() { |
34 | 34 |
FieldUnit fu = FieldUnit.NewInstance(); |
35 | 35 |
fu.setGatheringEvent(GatheringEvent.NewInstance()); |
36 | 36 |
fu.getGatheringEvent().setExactLocation(Point.NewInstance(-112.292238941097, 36.09520916122063, null, null)); |
37 |
|
|
37 |
|
|
38 | 38 |
KMLDocumentBuilder builder = new KMLDocumentBuilder(); |
39 | 39 |
builder.addSpecimenOrObservationBase(fu); |
40 | 40 |
kml = builder.build(); |
41 |
|
|
42 |
logger = Logger.getLogger(this.getClass()); |
|
43 |
logger.setLevel(Level.DEBUG); |
|
44 | 41 |
} |
45 |
|
|
46 |
|
|
42 |
|
|
43 |
|
|
47 | 44 |
@Test |
48 | 45 |
public void marshallTest() throws JAXBException, IOException { |
49 | 46 |
|
Also available in: Unified diff
ref #9359 upgrade cdmlib to log4j 2