FitNesse. SuiteAcceptanceTests. SuiteSymbolicLinkTests.
TestRemovingSymbolicLink
Removing a Symbolic Link is also done from the properties view of the page containing the link. Each link in the list will have a remove link that will perform the removal. The link contains a URL of the form:

http://host/PathToPage?responder=symlink&remove=

But first we need to create a link to remove.
 Included page: CreateSymbolicLink
Creating a symbolic link is done in the properties view of the page that will contain the link. There is a form where a user supplies a name for the link and a path for the linked page. When submitted the URL has the following form:

http://host/PathToPage?responder=symlink&linkName=&linkPath=

First we need to create some pages to play with.
Page creator.
Page name. valid?
LinkingPage true
LinkedPage true

Now we create a symbolic link named SymLink. This links LinkedPage as a child of LinkingPage.
Response Requester.
uri status?
LinkingPage?responder=symlink&linkName=SymLink&linkPath=LinkedPage 303

When we look at the properties page we'll see the removal link.
Response Requester.
uri status?
LinkingPage?properties 200
Response Examiner.
type pattern matches?
contents SymLink true
contents <a href="LinkingPage\?responder=symlink&removal=SymLink">remove</a> true

Now click the remove link.
Response Requester.
uri status?
LinkingPage?responder=symlink&removal=SymLink 303

This should remove the symbolic link and redirect back to the properties view.
Response Examiner.
type pattern matches? contents?
contents Location: LinkingPage\?properties true  

When we look at the properties page again, the symbolic link will no longer be listed.
Response Requester.
uri status?
LinkingPage?properties 200
Response Examiner.
type pattern matches?
contents SymLink false


.FrontPage .RecentChanges .FitNesse.SuiteAcceptanceTests