ViewImpl extends TableImpl implements View { @Override public ForeignKey addForeignKey( final UnitOfWork uow, final String foreignKeyName, final Table referencedTable ) { throw new UnsupportedOperationException(); } ViewImpl( final UnitOfWork uow,
                     final Repository repository,
                     final String workspacePath ); @Override KomodoType getTypeIdentifier(UnitOfWork uow); @Override Model getParent( final UnitOfWork transaction ); @Override ForeignKey addForeignKey( final UnitOfWork uow,
                                     final String foreignKeyName,
                                     final Table referencedTable ); @Override UniqueConstraint addUniqueConstraint( final UnitOfWork transaction,
                                                 final String constraintName ); @Override void removeForeignKey( final UnitOfWork transaction,
                                  final String foreignKeyToRemove ); @Override void removeUniqueConstraint( final UnitOfWork transaction,
                                        final String constraintToRemove ); @Override PrimaryKey setPrimaryKey( final UnitOfWork transaction,
                                     final String newPrimaryKeyName );  }
@Test( expected = UnsupportedOperationException.class ) public void shouldFailWhenAddingForeignKey() throws KException { this.view.addForeignKey( getTransaction(), "blah", mock( Table.class ) ); }