Skip to content

Commit

Permalink
fix capitalization in requestURLOverride
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydeluca committed Jul 16, 2024
1 parent 3501071 commit e09bd38
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ void testNonErroneousMultiGet() {
new JspSpanAssertionBuilder()
.withParent(trace.getSpan(2))
.withRoute("/common/javaLoopH2.jsp")
.withRequestURLOverride("/includes/includeMulti.jsp")
.withRequestUrlOverride("/includes/includeMulti.jsp")
.build()),
span ->
spanAsserts.assertCompileSpan(
Expand All @@ -395,7 +395,7 @@ void testNonErroneousMultiGet() {
new JspSpanAssertionBuilder()
.withParent(trace.getSpan(2))
.withRoute("/common/javaLoopH2.jsp")
.withRequestURLOverride("/includes/includeMulti.jsp")
.withRequestUrlOverride("/includes/includeMulti.jsp")
.build())));

assertThat(res.status().code()).isEqualTo(200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ void testNonErroneousGetForwardedToJspWithMultipleIncludes() {
new JspSpanAssertionBuilder()
.withParent(trace.getSpan(4))
.withRoute("/common/javaLoopH2.jsp")
.withRequestURLOverride("/includes/includeMulti.jsp")
.withRequestUrlOverride("/includes/includeMulti.jsp")
.withForwardOrigin("/forwards/forwardToIncludeMulti.jsp")
.build()),
span ->
Expand All @@ -288,7 +288,7 @@ void testNonErroneousGetForwardedToJspWithMultipleIncludes() {
new JspSpanAssertionBuilder()
.withParent(trace.getSpan(4))
.withRoute("/common/javaLoopH2.jsp")
.withRequestURLOverride("/includes/includeMulti.jsp")
.withRequestUrlOverride("/includes/includeMulti.jsp")
.withForwardOrigin("/forwards/forwardToIncludeMulti.jsp")
.build())));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class JspSpan {
private SpanData parent;
private String method;
private String className;
private String requestURLOverride;
private String requestUrlOverride;
private String forwardOrigin;
private String route;
private int responseStatus;
Expand Down Expand Up @@ -42,12 +42,12 @@ public void setClassName(String className) {
this.className = className;
}

public String getRequestURLOverride() {
return requestURLOverride;
public String getRequestUrlOverride() {
return requestUrlOverride;
}

public void setRequestURLOverride(String requestURLOverride) {
this.requestURLOverride = requestURLOverride;
public void setRequestUrlOverride(String requestUrlOverride) {
this.requestUrlOverride = requestUrlOverride;
}

public String getForwardOrigin() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class JspSpanAssertionBuilder {
private String method;
private String route;
private String className;
private String requestURLOverride;
private String requestUrlOverride;
private String forwardOrigin;
private int responseStatus;
private Class<?> exceptionClass;
Expand All @@ -38,8 +38,8 @@ public JspSpanAssertionBuilder withClassName(String className) {
return this;
}

public JspSpanAssertionBuilder withRequestURLOverride(String requestURLOverride) {
this.requestURLOverride = requestURLOverride;
public JspSpanAssertionBuilder withRequestUrlOverride(String requestUrlOverride) {
this.requestUrlOverride = requestUrlOverride;
return this;
}

Expand Down Expand Up @@ -69,7 +69,7 @@ public JspSpan build() {
serverSpan.setMethod(this.method);
serverSpan.setRoute(this.route);
serverSpan.setClassName(this.className);
serverSpan.setRequestURLOverride(this.requestURLOverride);
serverSpan.setRequestUrlOverride(this.requestUrlOverride);
serverSpan.setForwardOrigin(this.forwardOrigin);
serverSpan.setResponseStatus(this.responseStatus);
serverSpan.setExceptionClass(this.exceptionClass);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ SpanDataAssert assertCompileSpan(SpanDataAssert span, JspSpan spanData) {

SpanDataAssert assertRenderSpan(SpanDataAssert span, JspSpan spanData) {
String requestURL = spanData.getRoute();
if (spanData.getRequestURLOverride() != null) {
requestURL = spanData.getRequestURLOverride();
if (spanData.getRequestUrlOverride() != null) {
requestURL = spanData.getRequestUrlOverride();
}

if (spanData.getExceptionClass() != null) {
Expand Down

0 comments on commit e09bd38

Please sign in to comment.