Splitted test
This commit is contained in:
parent
5d9da98508
commit
96439e829e
|
@ -112,7 +112,57 @@ public class SchemaManagementImplTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void getList() throws Exception {
|
||||
public void getResourceTypes() throws Exception {
|
||||
logger.debug("\n\n\n");
|
||||
|
||||
boolean includeSubTypes = true;
|
||||
|
||||
SchemaManagement schemaManagement = new SchemaManagementImpl();
|
||||
|
||||
String list = schemaManagement.read(Resource.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", Resource.NAME, list);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getFacetTypes() throws Exception {
|
||||
logger.debug("\n\n\n");
|
||||
|
||||
boolean includeSubTypes = true;
|
||||
|
||||
SchemaManagement schemaManagement = new SchemaManagementImpl();
|
||||
|
||||
String list = schemaManagement.read(Facet.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", Facet.NAME, list);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getConsistsOfTypes() throws Exception {
|
||||
logger.debug("\n\n\n");
|
||||
|
||||
boolean includeSubTypes = true;
|
||||
|
||||
SchemaManagement schemaManagement = new SchemaManagementImpl();
|
||||
|
||||
String list = schemaManagement.read(ConsistsOf.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", ConsistsOf.NAME, list);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getIsRelatedToTypes() throws Exception {
|
||||
logger.debug("\n\n\n");
|
||||
|
||||
boolean includeSubTypes = true;
|
||||
|
||||
SchemaManagement schemaManagement = new SchemaManagementImpl();
|
||||
|
||||
String list = schemaManagement.read(IsRelatedTo.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", IsRelatedTo.NAME, list);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void getInvalidTypeDefinition() throws Exception {
|
||||
logger.debug("\n\n\n");
|
||||
|
||||
boolean includeSubTypes = true;
|
||||
|
@ -132,12 +182,6 @@ public class SchemaManagementImplTest {
|
|||
|
||||
}
|
||||
|
||||
String list = schemaManagement.read(Resource.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", Resource.NAME, list);
|
||||
|
||||
list = schemaManagement.read(Facet.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", Facet.NAME, list);
|
||||
|
||||
try {
|
||||
schemaManagement.read(Relation.NAME, includeSubTypes);
|
||||
throw new Exception("Should not be allowed to get " + Relation.NAME + " schema");
|
||||
|
@ -145,12 +189,6 @@ public class SchemaManagementImplTest {
|
|||
|
||||
}
|
||||
|
||||
list = schemaManagement.read(ConsistsOf.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", ConsistsOf.NAME, list);
|
||||
|
||||
list = schemaManagement.read(IsRelatedTo.NAME, includeSubTypes);
|
||||
logger.info("{} list : {}", IsRelatedTo.NAME, list);
|
||||
|
||||
}
|
||||
|
||||
@Test(expected=SchemaAlreadyPresentException.class)
|
||||
|
|
Loading…
Reference in New Issue