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

Device unit testing #257

Open
wants to merge 15 commits into
base: develop/1.0
Choose a base branch
from
Open

Device unit testing #257

wants to merge 15 commits into from

Conversation

aliansyahkay
Copy link
Collaborator

No description provided.

@shygnome
Copy link
Contributor

shygnome commented Dec 5, 2022

Tambah di sini.

@BeforeEach
public void initWebTest() throws Exception {
log.info("Setup web test start");
if (this.mockMvc == null) {
this.mockMvc = webAppContextSetup(webApplicationContext)
.apply(springSecurity()).build();
}
// register
UserRequest request = new UserRequest();
request.setFullname("testadmin");
request.setEmail(ADMIN_USER_EMAIL);
request.setPassword(ADMIN_USER_PASSWORD);
request.setPhoneNo("62898555907");
request.setOrganizationName("testadmin");
request.setCountry("Indonesia");
createUserAndLogin(request, ADMIN_USER_PASSWORD);
log.info("Setup web test done");
}

// TODO read organizationCode
// GET user details
// baca response get organization_code
// organizationCode = hasil respon

@aliansyahkay aliansyahkay changed the title WIP - Device unit testing Device unit testing Dec 8, 2022
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.

2 participants