Skip to content

Commit

Permalink
fix test failures that were not updated to the latest removal of bean…
Browse files Browse the repository at this point in the history
…s symbol addon information objects
  • Loading branch information
martinlippert committed Jan 10, 2025
1 parent 435cd59 commit f58305d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void testRoutesMappingSymbols() throws Exception {
assertTrue(containsSymbol(symbols, "@/quotes -- GET - Accept: application/stream+json", docUri, 25, 5, 25, 94));

List<? extends SymbolAddOnInformation> addons = indexer.getAdditonalInformation(docUri);
assertEquals(10, addons.size());
assertEquals(8, addons.size());

WebfluxHandlerInformation handlerInfo1 = getWebfluxHandler(addons, "/hello", "GET").get(0);
assertEquals("/hello", handlerInfo1.getPath());
Expand Down Expand Up @@ -138,7 +138,7 @@ void testNestedRoutesMappingSymbols1() throws Exception {
assertTrue(containsSymbol(symbols, "@/person -- GET - Accept: application/json", docUri, 28, 7, 28, 60));

List<? extends SymbolAddOnInformation> addons = indexer.getAdditonalInformation(docUri);
assertEquals(8, addons.size());
assertEquals(6, addons.size());

WebfluxHandlerInformation handlerInfo1 = getWebfluxHandler(addons, "/person/{id}", "GET").get(0);
assertEquals("/person/{id}", handlerInfo1.getPath());
Expand Down Expand Up @@ -175,7 +175,7 @@ void testNestedRoutesMappingSymbols2() throws Exception {
assertTrue(containsSymbol(symbols, "@/person -- GET,HEAD - Accept: text/plain,application/json", docUri, 30, 7, 30, 113));

List<? extends SymbolAddOnInformation> addons = indexer.getAdditonalInformation(docUri);
assertEquals(8, addons.size());
assertEquals(6, addons.size());

WebfluxHandlerInformation handlerInfo1 = getWebfluxHandler(addons, "/person/{id}", "GET").get(0);
assertEquals("/person/{id}", handlerInfo1.getPath());
Expand Down Expand Up @@ -216,7 +216,7 @@ void testNestedRoutesMappingSymbols3() throws Exception {
assertTrue(containsSymbol(symbols, "@/nestedDelete -- DELETE", docUri, 35, 42, 35, 93));

List<? extends SymbolAddOnInformation> addons = indexer.getAdditonalInformation(docUri);
assertEquals(14, addons.size());
assertEquals(12, addons.size());

WebfluxHandlerInformation handlerInfo1 = getWebfluxHandler(addons, "/person/sub1/sub2/{id}", "GET").get(0);
assertEquals("/person/sub1/sub2/{id}", handlerInfo1.getPath());
Expand Down

0 comments on commit f58305d

Please sign in to comment.