Created
September 24, 2023 03:49
-
-
Save drawers/882c4eeac0180afccc8822017073574e to your computer and use it in GitHub Desktop.
TestableHtml refactor from Clean Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void includeSetupAndTeardownPages() throws Exception { | |
includeSetupPages(); | |
includePageContent(); | |
includeTeardownPages(); | |
updatePageContent(); | |
} | |
private void includeSetupPages() throws Exception { | |
if (isSuite) | |
includeSuiteSetupPage(); | |
includeSetupPage(); | |
} | |
private void includeSuiteSetupPage() throws Exception { | |
include(SuiteResponder.SUITE_SETUP_NAME, "-setup"); | |
} | |
private void includeSetupPage() throws Exception { | |
include("SetUp", "-setup"); | |
} | |
private void includePageContent() throws Exception { | |
newPageContent.append(pageData.getContent()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment