Skip to content

Device unit testing#257

Open
aliansyahkay wants to merge 15 commits into
develop/1.0from
device_unit_testing
Open

Device unit testing#257
aliansyahkay wants to merge 15 commits into
develop/1.0from
device_unit_testing

Conversation

@aliansyahkay

Copy link
Copy Markdown
Collaborator

No description provided.

@shygnome

shygnome commented Dec 5, 2022

Copy link
Copy Markdown
Contributor

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