Skip to content

Commit

Permalink
refactor: deprecate RestStepListener (#3540) (#3543)
Browse files Browse the repository at this point in the history
since it no longer does anything

Co-authored-by: James Shaw <[email protected]>
  • Loading branch information
hertzsprung and James Shaw authored Sep 25, 2024
1 parent 6fc140c commit f0f17ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

import net.thucydides.model.steps.StepListenerAdapter;

/**
* @deprecated With no replacement, since {@code RestStepListener} no longer performs any operations.
*/
@Deprecated(since="4.2.2")
public class RestStepListener extends StepListenerAdapter {

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.serenitybdd.core.Serenity;
import net.serenitybdd.model.rest.RestMethod;
import net.serenitybdd.model.rest.RestQuery;
import net.serenitybdd.rest.RestStepListener;
import net.serenitybdd.rest.decorators.request.RequestSpecificationDecorated;
import net.serenitybdd.rest.event.RecordRestQueryEvent;
import net.serenitybdd.rest.filters.FieldsRecordingFilter;
Expand Down Expand Up @@ -39,10 +38,6 @@
*/
public class RestReportingHelper {

public RestReportingHelper() {
getParallelEventBus().registerListener(new RestStepListener());
}

private static boolean shouldRecordResponseBodyFor(Response result) {
final ContentType type = ContentType.fromContentType(result.contentType());
return type != null && (ContentType.JSON == type || ContentType.XML == type
Expand Down

0 comments on commit f0f17ed

Please sign in to comment.