package org.jibx.schema.elements;
import org.jibx.schema.SchemaTestBase;
/**
* Test handling of schemas with simple group and attributeGroup components.
*/
public class SimpleGroups extends SchemaTestBase
{
public static final String GROUP_EMPTY_SCHEMA =
"\n" +
" \n" +
" \n" +
" \n" +
"";
public static final String ATTRIBUTEGROUP_EMPTY_SCHEMA =
"\n" +
" \n" +
"";
public static final String GROUP_SIMPLE_SCHEMA1 =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public static final String GROUP_SIMPLE_SCHEMA2 =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public static final String GROUP_SIMPLE_SCHEMA3 =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public static final String ATTRIBUTEGROUP_SIMPLE_SCHEMA =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public static final String GROUP_REF_SCHEMA =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public static final String ATTRIBUTEGROUP_REF_SCHEMA =
"\n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
" \n" +
"";
public void testGroupEmpty() throws Exception {
runNoErrors(GROUP_EMPTY_SCHEMA);
}
public void testAttributeGroupEmpty() throws Exception {
runNoErrors(ATTRIBUTEGROUP_EMPTY_SCHEMA);
}
public void testGroupSimpleSchema1() throws Exception {
runNoErrors(GROUP_SIMPLE_SCHEMA1);
}
public void testGroupSimpleSchema2() throws Exception {
runNoErrors(GROUP_SIMPLE_SCHEMA2);
}
public void testGroupSimpleSchema3() throws Exception {
runNoErrors(GROUP_SIMPLE_SCHEMA3);
}
public void testAttributeGroupSimple() throws Exception {
runNoErrors(ATTRIBUTEGROUP_SIMPLE_SCHEMA);
}
public void testGroupRef() throws Exception {
runNoErrors(GROUP_REF_SCHEMA);
}
public void testAttributeGroupRef() throws Exception {
runNoErrors(ATTRIBUTEGROUP_REF_SCHEMA);
}
}