package com.example.jz.dao;
|
|
import org.junit.jupiter.api.Test;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
/**
|
* @author 安瑾然
|
* @data 2022/7/18 - 11:49 AM
|
* @description
|
*/
|
@SpringBootTest
|
class UserDaoTest {
|
|
@Autowired
|
private UserDao userDao;
|
|
@Test
|
void updateUser() {
|
String str = "XXO";
|
int conut = 0;
|
for (char c : str.toCharArray()) {
|
if (c != 'O') {
|
conut++;
|
}
|
}
|
System.out.println(conut);
|
}
|
}
|