Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use RequestMapping annotation in Unit-Tests to determine the HTTP settings #44

Closed
71 tasks done
OlliL opened this issue Mar 4, 2023 · 0 comments
Closed
71 tasks done

Comments

@OlliL
Copy link
Owner

OlliL commented Mar 4, 2023

current functionality

  • Each test class defines the HttpMethod the controller-method it tests uses.
  • The url is determined by a hardcoded Base-Url, the package name the tests is in and then derived from the test-classname.
  • Url parameters are handled inside each test method by string concatenation of the URL

desired functionality

  • examine the RequestMapping annotation for the to-be-tested controller-method
    • extract HttpMethod (RequestMethod)
    • extract full URI
  • handle Url parameters as varArray as its supposed to be used by MockHttpServletRequestBuilder

TODO

  • capitalsource/CreateCapitalsourceTest.java
  • capitalsource/DeleteCapitalsourceByIdTest.java
  • capitalsource/ShowCapitalsourceListTest.java
  • capitalsource/UpdateCapitalsourceTest.java
  • comparedata/CompareDataTest.java
  • comparedata/ShowCompareDataFormTest.java
  • contractpartner/CreateContractpartnerTest.java
  • contractpartner/DeleteContractpartnerTest.java
  • contractpartner/ShowContractpartnerListTest.java
  • contractpartner/UpdateContractpartnerTest.java
  • contractpartneraccount/CreateContractpartnerAccountTest.java
  • contractpartneraccount/DeleteContractpartnerAccountTest.java
  • contractpartneraccount/ShowContractpartnerAccountListTest.java
  • contractpartneraccount/UpdateContractpartnerAccountTest.java
  • etf/CalcEtfSaleTest.java
  • etf/CreateEtfFlowTest.java
  • etf/DeleteEtfFlowTest.java
  • etf/ListEtfFlowsTest.java
  • etf/ListEtfOverviewTest.java
  • etf/UpdateEtfFlowTest.java
  • event/ShowEventListTest.java
  • group/CreateGroupTest.java
  • group/DeleteGroupByIdTest.java
  • group/ShowGroupListTest.java
  • group/UpdateGroupTest.java
  • importedbalance/CreateImportedBalanceTest.java
  • importedmoneyflow/CreateImportedMoneyflowTest.java
  • importedmoneyflow/DeleteImportedMoneyflowByIdTest.java
  • importedmoneyflow/ImportImportedMoneyflowsTest.java
  • importedmoneyflow/ShowAddImportedMoneyflowsTest.java
  • importedmoneyflowreceipt/CreateImportedMoneyflowReceiptsTest.java
  • importedmoneyflowreceipt/DeleteImportedMoneyflowReceiptByIdTest.java
  • importedmoneyflowreceipt/ImportImportedMoneyflowReceiptTest.java
  • importedmoneyflowreceipt/ShowImportImportedMoneyflowReceiptsTest.java
  • importedmonthlysettlement/CreateImportedMonthlySettlementTest.java
  • moneyflow/CreateMoneyflowTest.java
  • moneyflow/DeleteMoneyflowByIdTest.java
  • moneyflow/SearchMoneyflowsByAmountTest.java
  • moneyflow/SearchMoneyflowsTest.java
  • moneyflow/ShowEditMoneyflowTest.java
  • moneyflow/UpdateMoneyflowV2Test.java
  • moneyflowreceipt/DeleteMoneyflowReceiptTest.java
  • moneyflowreceipt/ShowMoneyflowReceiptTest.java
  • monthlysettlement/DeleteMonthlySettlementTest.java
  • monthlysettlement/GetAvailableMonthTest.java
  • monthlysettlement/ShowMonthlySettlementCreateTest.java
  • monthlysettlement/ShowMonthlySettlementListV2Test.java
  • monthlysettlement/UpsertMonthlySettlementTest.java
  • postingaccount/CreatePostingAccountTest.java
  • postingaccount/DeletePostingAccountByIdTest.java
  • postingaccount/ShowPostingAccountListTest.java
  • postingaccount/UpdatePostingAccountTest.java
  • predefmoneyflow/CreatePreDefMoneyflowTest.java
  • predefmoneyflow/DeletePreDefMoneyflowTest.java
  • predefmoneyflow/ShowPreDefMoneyflowListTest.java
  • predefmoneyflow/UpdatePreDefMoneyflowTest.java
  • report/GetAvailableMonthTest.java
  • report/ListReportsV2Test.java
  • report/ShowMonthlyReportGraphTest.java
  • report/ShowReportingFormTest.java
  • report/ShowTrendsFormTest.java
  • report/ShowTrendsGraphTest.java
  • report/ShowYearlyReportGraphTest.java
  • user/ChangePasswordTest.java
  • user/CreateUserTest.java
  • user/DeleteUserByIdTest.java
  • user/LoginTest.java
  • user/RefreshTokenTest.java
  • user/ShowEditUserTest.java
  • user/ShowUserListTest.java
  • user/UpdateUserTest.java
OlliL added a commit that referenced this issue Mar 4, 2023
OlliL added a commit that referenced this issue Mar 4, 2023
OlliL added a commit that referenced this issue Mar 4, 2023
OlliL added a commit that referenced this issue Mar 4, 2023
OlliL added a commit that referenced this issue Mar 4, 2023
OlliL added a commit that referenced this issue Mar 4, 2023
@OlliL OlliL closed this as completed in d95c32c Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant