All Downloads are FREE. Search and download functionalities are using the official Maven repository.

FitNesseRoot.Fitnesse.SuiteAcceptanceTests.SuiteResponderTests.SuiteRenameResponder.TestRenamePageThatRefersToItself.content.txt Maven / Gradle / Ivy

There is a newer version: 4.4
Show newest version
!3 When a page is renamed, any internal links to that page are changed.

If you have a page that refers to itself, then its internal references will be changed.

First build the page with a self reference.

|Page creator.|
|Page name.|Page contents.|Page attributes.|valid?|
|!-MyPage-!|!-refer to self MyPage-!||true|

Then rename that page.

|Response Requester.|
|uri   |status?|
|!-MyPage?responder=renamePage&newName=ThePage&refactorReferences=on-!||

Next fetch the page.

|Response Requester.|
|uri|valid?|contents?|
|!-ThePage-!|true||

Make sure that the new name is present and that the old name is not.

|Response Examiner.|
|type  |pattern|matches?|wrapped html?|
|contents|!-ThePage-!|true||

|Response Examiner.|
|type  |pattern|matches?|
|contents|!-MyPage-!|false|






© 2015 - 2025 Weber Informatics LLC | Privacy Policy