@TestInstance(value=PER_CLASS) public abstract class AbstractSchemaTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected JAXBContext |
context |
| Constructor and Description |
|---|
AbstractSchemaTest() |
| Modifier and Type | Method and Description |
|---|---|
protected JAXBContext |
generate(Class<?>... classes) |
static JAXBContext |
generate(File dir,
Class<?>... classes) |
void |
generateXSDs() |
protected abstract Class<?>[] |
getClasses() |
protected <T extends Enum<T>> |
testEnum(String resource,
String enumTypeName,
Class<T> enumClass) |
protected void |
testNamespace(String namespace) |
protected JAXBContext context
@BeforeAll
public final void generateXSDs()
throws JAXBException,
IOException
JAXBExceptionIOExceptionprotected abstract Class<?>[] getClasses()
protected <T extends Enum<T>> void testEnum(String resource, String enumTypeName, Class<T> enumClass)
protected void testNamespace(String namespace) throws IOException
IOExceptionprotected JAXBContext generate(Class<?>... classes) throws JAXBException, IOException
JAXBExceptionIOExceptionpublic static JAXBContext generate(File dir, Class<?>... classes) throws JAXBException, IOException
JAXBExceptionIOExceptionCopyright © 2022. All rights reserved.