helper
<h1>PAGINATION HELPER</h1>
PaginationHelper used for implementation of pagination UI components and a set of Unit tests to properly test it.
TECHNOLOGIES
-Java 8
-Junit5 (junit.jupiter v5.8.0)
COMPONENTS OF PAGINATION HELPER
!! Zero Base Indexes!!
-Pagination Constructor :
PaginationHelper(char[], int) : Takes 2 parameters
-items:char[]
-itemsPerPage:int
-itemCount():int : returns counts of entire items
-pageCount():int : returns how many pages can be returns according to itemCount
-pageIndex(int):int : determines what page an item is on.
-pageItemCount(int):int : returns the number of items on the current page.
HOW TO TEST
-In the project under the test folder>java> create a test class.java
-Call you object from PaginationHelper in the test class
-Use @Test annotations from junit.jupiter
-Assertion use static imports from jupiter junit
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
Are there any code examples left?
New code examples in category Html
-
Html 2022-03-27 21:55:05 how to kill html
-
Html 2022-03-27 21:55:02 How to create web urls without extensions
-
Html 2022-03-27 21:45:11 space between 2 h tags without break
-
Html 2022-03-27 21:40:13 how to resize submit button in html
-
Html 2022-03-27 20:40:18 https://www.codegrepper.com
-
Html 2022-03-27 19:55:09 show image inside table with innerhtml
-
Html 2022-03-27 19:30:47 html email input
-
Html 2022-03-27 18:45:01 how to add favicon in html
-
Html 2022-03-27 18:15:21 picture html
-
Html 2022-03-27 18:15:11 ex: javaasdasdasdasd