Search in sources :

Example 1 with AccountForm

use of cn.edu.zjnu.acm.judge.data.form.AccountForm in project judge by zjnu-acm.

the class AccountServiceTest method testFindAll.

/**
 * Test of findAll method, of class AccountService.
 */
@Test
public void testFindAll() {
    log.info("findAll");
    for (Pageable pageable : Pageables.users()) {
        accountService.findAll(pageable);
        for (AccountForm accountForm : buildForms()) {
            accountService.findAll(accountForm, pageable);
            accountService.findAll(accountForm.toBuilder().disabled(true).build(), pageable);
            accountService.findAll(accountForm.toBuilder().disabled(false).build(), pageable);
        }
    }
}
Also used : AccountForm(cn.edu.zjnu.acm.judge.data.form.AccountForm) Pageable(org.springframework.data.domain.Pageable) Test(org.junit.jupiter.api.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

AccountForm (cn.edu.zjnu.acm.judge.data.form.AccountForm)1 Test (org.junit.jupiter.api.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1 Pageable (org.springframework.data.domain.Pageable)1