Last change
on this file since 162 was 1, checked in by Wouter Pasman, 7 years ago |
Initial import : Genius 9.0.0
|
File size:
789 bytes
|
Line | |
---|
1 | package negotiator.repository;
|
---|
2 |
|
---|
3 | import java.io.StringWriter;
|
---|
4 |
|
---|
5 | import javax.xml.bind.JAXBContext;
|
---|
6 | import javax.xml.bind.JAXBException;
|
---|
7 | import javax.xml.bind.Marshaller;
|
---|
8 |
|
---|
9 | import org.junit.Test;
|
---|
10 |
|
---|
11 | import genius.core.repository.BoaPartiesList;
|
---|
12 | import genius.core.repository.BoaPartyRepository;
|
---|
13 |
|
---|
14 | /**
|
---|
15 | *
|
---|
16 | * FIXME we should make unit test for {@link BoaPartyRepository} but I can't
|
---|
17 | * figure out how to do it. #1400
|
---|
18 | */
|
---|
19 | public class BoaPartyRepoTest {
|
---|
20 |
|
---|
21 | @Test
|
---|
22 | public void testNewEmptyList() throws JAXBException {
|
---|
23 | BoaPartiesList list = new BoaPartiesList();
|
---|
24 | StringWriter writer = new StringWriter();
|
---|
25 |
|
---|
26 | JAXBContext context = JAXBContext.newInstance(BoaPartiesList.class);
|
---|
27 | Marshaller m = context.createMarshaller();
|
---|
28 | m.marshal(list, writer);
|
---|
29 | System.out.println(writer.toString());
|
---|
30 |
|
---|
31 | }
|
---|
32 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.