(no commit message)
[cdmlib.git] / cdmlib-io / src / test / java / eu / etaxonomy / cdm / jaxb / CdmSchemaGeneratorTest.java
1 package eu.etaxonomy.cdm.io.jaxb;
2
3 import java.io.IOException;
4
5 import javax.xml.bind.JAXBException;
6
7 import junit.framework.Assert;
8
9 import org.junit.Before;
10 import org.junit.Ignore;
11 import org.junit.Test;
12 import org.xml.sax.SAXException;
13
14 import eu.etaxonomy.cdm.io.jaxb.CdmSchemaGenerator;
15
16 public class CdmSchemaGeneratorTest {
17
18 private CdmSchemaGenerator cdmSchemaGenerator;
19
20 @Before
21 public void onSetUp() throws Exception {
22 cdmSchemaGenerator = new CdmSchemaGenerator();
23 }
24
25 /* ******************** TESTS ***********************************************************/
26
27 @Ignore //for uuid
28 @Test
29 public void testCdmSchemaGeneratorInit() {
30 Assert.assertNotNull(cdmSchemaGenerator);
31 }
32
33 @Ignore //for uuid
34 @Test
35 // buffers the schema files
36 public void testCreateOutput() throws JAXBException, IOException, SAXException {
37
38 cdmSchemaGenerator.createOutput("http://etaxonomy.eu/cdm/model/1.0", "mySchema.xsd");
39 }
40
41 @Ignore
42 // Gives an IllegalArgumentException: argument contains null.
43 // Problem is in schema7.xsd.
44 @Test
45 // writes the schema files
46 public void testWriteSchema() throws JAXBException, IOException, SAXException {
47
48 cdmSchemaGenerator.writeSchema();
49 }
50 }