assertEquals(indexDefinition.getTypes(), new OType[] { OType.INTEGER, OType.INTEGER });
assertEquals(indexDefinition.getParamCount(), 2);
}
public void testCreateCompositeLinkListIndex() {
final OIndex result = oClass.createIndex("ClassIndexTestCompositeLinkList", OClass.INDEX_TYPE.UNIQUE, "fFourteen", "fLinkList");
assertEquals(result.getName(), "ClassIndexTestCompositeLinkList");
assertEquals(oClass.getClassIndex("ClassIndexTestCompositeLinkList").getName(), result.getName());
assertEquals(database.getMetadata().getIndexManager().getClassIndex("ClassIndexTestClass", "ClassIndexTestCompositeLinkList")
.getName(), result.getName());
final OIndexDefinition indexDefinition = result.getDefinition();
assertTrue(indexDefinition instanceof OCompositeIndexDefinition);
assertEquals(indexDefinition.getFields().toArray(), new String[] { "fFourteen", "fLinkList" });
assertEquals(indexDefinition.getTypes(), new OType[] { OType.INTEGER, OType.LINK });