IndexImpl extends TableConstraintImpl implements Index { @Override public ConstraintType getConstraintType() { return ConstraintType.INDEX; } IndexImpl( final UnitOfWork uow,
                      final Repository repository,
                      final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override ConstraintType getConstraintType(); @Override String getExpression( final UnitOfWork uow ); @Override int getTypeId(); @Override Table getParent( final UnitOfWork transaction ); @Override void setExpression( final UnitOfWork uow,
                               final String newExpression );  }
@Test public void shouldHaveCorrectConstraintType() throws Exception { assertThat( this.index.getConstraintType(), is( TableConstraint.ConstraintType.INDEX ) ); assertThat( this.index.getRawProperty( getTransaction(), TeiidDdlLexicon.Constraint.TYPE ).getStringValue( getTransaction() ), is( TableConstraint.ConstraintType.INDEX.toValue() ) ); }