UserRoleDaoTest.java 425 B

12345678910111213141516171819
  1. package com.nokia.dao;
  2. import org.junit.jupiter.api.Test;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.boot.test.context.SpringBootTest;
  5. @SpringBootTest
  6. public class UserRoleDaoTest {
  7. @Autowired
  8. private UserRoleDao userRoleDao;
  9. @Test
  10. public void testHasRole() {
  11. Integer role_id = userRoleDao.hasRole(2, 4);
  12. System.out.println(role_id);
  13. }
  14. }