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

Update Eplanning Bidder with sizes priority by device type #1143

Merged
merged 4 commits into from
Feb 17, 2021

Conversation

BraslavskiyAndrey
Copy link
Contributor

No description provided.

assertThat(result.getErrors()).isEmpty();
assertThat(result.getValue()).hasSize(1)
.extracting(HttpRequest::getUri)
.containsOnly("https://eplanning.com/clientId/1/FILE/ROS?r=pbs&ncb=1&ur=FILE&e=testadun_itco_de%3A"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be used containsExactly() and then no .hasSize(1) needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is much more easier for reader to identify that there can be only one request by hasSize(1) than counting how many values were passed to containsExactly. But probably one hasSize() use for test dedicated to checking that bidder produces only one request is enough, and in all other places containsExactly can be used.

@rpanchyk rpanchyk merged commit 238bdad into master Feb 17, 2021
@rpanchyk rpanchyk deleted the update-eplanning-bidder branch February 17, 2021 10:22
nickluck9 pushed a commit that referenced this pull request Aug 9, 2021
* Update Eplanning Bidder with sizes priority by device type

* Minor cleaning

* Replace containsOnly with containsExactly
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
* Update Eplanning Bidder with sizes priority by device type

* Minor cleaning

* Replace containsOnly with containsExactly
nickluck9 pushed a commit that referenced this pull request Aug 10, 2021
* Update Eplanning Bidder with sizes priority by device type

* Minor cleaning

* Replace containsOnly with containsExactly
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

Successfully merging this pull request may close these issues.

4 participants