UniqueConstraintImpl extends TableConstraintImpl implements UniqueConstraint { @Override public KomodoType getTypeIdentifier(UnitOfWork uow) { return UniqueConstraint.IDENTIFIER; } UniqueConstraintImpl( final UnitOfWork uow,
                                 final Repository repository,
                                 final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override ConstraintType getConstraintType(); @Override int getTypeId(); @Override Table getParent( final UnitOfWork transaction );  }
@Test public void shouldHaveCorrectTypeIdentifier() throws Exception { assertThat(this.uniqueConstraint.getTypeIdentifier( getTransaction() ), is(KomodoType.UNIQUE_CONSTRAINT)); }