@Test void match31() { ControllerModel cm = this.getControllerModelForMatchingTest("/[shell01|shell02]/route01/route02/:parameter", "route01/route02"); Assertions.assertFalse(cm.match("/shell03/route01/route02")); }
public boolean match(String route) { for (String originalRoute : this.originalRoute) { if (this.matchShell(originalRoute, route)) { String routeWithoutShell = this.getRouteWithoutShell(originalRoute); String startRouteWithoutShell = this.getRouteWithoutShell(route); if (routeWithoutShell.equals(startRouteWithoutShell)) { return true; } } } return false; }
ControllerModel { public boolean match(String route) { for (String originalRoute : this.originalRoute) { if (this.matchShell(originalRoute, route)) { String routeWithoutShell = this.getRouteWithoutShell(originalRoute); String startRouteWithoutShell = this.getRouteWithoutShell(route); if (routeWithoutShell.equals(startRouteWithoutShell)) { return true; } } } return false; } }
ControllerModel { public boolean match(String route) { for (String originalRoute : this.originalRoute) { if (this.matchShell(originalRoute, route)) { String routeWithoutShell = this.getRouteWithoutShell(originalRoute); String startRouteWithoutShell = this.getRouteWithoutShell(route); if (routeWithoutShell.equals(startRouteWithoutShell)) { return true; } } } return false; } ControllerModel(String[] originalRoute,
                         List<String> route,
                         String selector,
                         List<String> parameters,
                         ClassNameModel context,
                         ClassNameModel controller,
                         ClassNameModel componentInterface,
                         ClassNameModel component,
                         ClassNameModel provider,
                         boolean componentCreator); }
ControllerModel { public boolean match(String route) { for (String originalRoute : this.originalRoute) { if (this.matchShell(originalRoute, route)) { String routeWithoutShell = this.getRouteWithoutShell(originalRoute); String startRouteWithoutShell = this.getRouteWithoutShell(route); if (routeWithoutShell.equals(startRouteWithoutShell)) { return true; } } } return false; } ControllerModel(String[] originalRoute,
                         List<String> route,
                         String selector,
                         List<String> parameters,
                         ClassNameModel context,
                         ClassNameModel controller,
                         ClassNameModel componentInterface,
                         ClassNameModel component,
                         ClassNameModel provider,
                         boolean componentCreator); List<String> getRoute(); void setRoute(List<String> route); String getSelector(); void setSelector(String selector); List<String> getParameters(); ClassNameModel getController(); void setController(ClassNameModel controller); ClassNameModel getComponentInterface(); void setComponentInterface(ClassNameModel componentInterface); ClassNameModel getComponent(); void setComponent(ClassNameModel component); ClassNameModel getProvider(); List<ParameterAcceptor> getParameterAcceptors(); String getParameterAcceptors(String parameterName); ClassNameModel getContext(); void setContext(ClassNameModel context); List<ControllerCompositeModel> getComposites(); void setComposites(List<ControllerCompositeModel> composites); boolean isComponentCreator(); boolean match(String route); }
ControllerModel { public boolean match(String route) { for (String originalRoute : this.originalRoute) { if (this.matchShell(originalRoute, route)) { String routeWithoutShell = this.getRouteWithoutShell(originalRoute); String startRouteWithoutShell = this.getRouteWithoutShell(route); if (routeWithoutShell.equals(startRouteWithoutShell)) { return true; } } } return false; } ControllerModel(String[] originalRoute,
                         List<String> route,
                         String selector,
                         List<String> parameters,
                         ClassNameModel context,
                         ClassNameModel controller,
                         ClassNameModel componentInterface,
                         ClassNameModel component,
                         ClassNameModel provider,
                         boolean componentCreator); List<String> getRoute(); void setRoute(List<String> route); String getSelector(); void setSelector(String selector); List<String> getParameters(); ClassNameModel getController(); void setController(ClassNameModel controller); ClassNameModel getComponentInterface(); void setComponentInterface(ClassNameModel componentInterface); ClassNameModel getComponent(); void setComponent(ClassNameModel component); ClassNameModel getProvider(); List<ParameterAcceptor> getParameterAcceptors(); String getParameterAcceptors(String parameterName); ClassNameModel getContext(); void setContext(ClassNameModel context); List<ControllerCompositeModel> getComposites(); void setComposites(List<ControllerCompositeModel> composites); boolean isComponentCreator(); boolean match(String route);  }