Skip to content

[BAEL-6105] code for list to page article#13955

Merged
davidmartinezbarua merged 4 commits into
eugenp:masterfrom
ukhan1980:BAEL-6344-convert-list-to-page
May 22, 2023
Merged

[BAEL-6105] code for list to page article#13955
davidmartinezbarua merged 4 commits into
eugenp:masterfrom
ukhan1980:BAEL-6344-convert-list-to-page

Conversation

@ukhan1980

Copy link
Copy Markdown
Contributor

No description provided.

@KevinGilmore KevinGilmore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

See notes about improving readability

Comment on lines +29 to +31
private static final List<Customer> ALL_CUSTOMERS = Arrays.asList(new Customer("Ali"), new Customer("Brian"), new Customer("Coddy"), new Customer("Di"), new Customer("Eve"), new Customer("Fin"), new Customer("Grace"), new Customer("Harry"),
new Customer("Ivan"), new Customer("Judy"), new Customer("Kasim"), new Customer("Liam"), new Customer("Mike"), new Customer("Nick"), new Customer("Omar"), new Customer("Penny"), new Customer("Queen"), new Customer("Rob"), new Customer("Sue"),
new Customer("Tammy"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please put each new Customer constructor call on a new line to improve the readability of the code.

}

private static Collection<Object[]> testIO() {
return Arrays.asList(new Object[][] { { 0, 5, PAGE_1_CONTENTS, 20L, 4L }, { 1, 5, PAGE_2_CONTENTS, 20L, 4L }, { 2, 5, PAGE_3_CONTENTS, 20L, 4L }, { 3, 5, PAGE_4_CONTENTS, 20L, 4L }, { 4, 5, EMPTY_PAGE, 20L, 4L } });

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Break into multiple lines to improve readability.

@davidmartinezbarua davidmartinezbarua merged commit 1a2c446 into eugenp:master May 22, 2023
pingm26 pushed a commit to pingm26/tutorials that referenced this pull request May 6, 2026
…-to-page

[BAEL-6105] code for list to page article
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.

3 participants