PinyinUtilTest.java 589 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package com.kwan.springbootkwan.utils;

import com.kwan.springbootkwan.SpringBootKwanApplication;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
@ContextConfiguration(classes = SpringBootKwanApplication.class)
public class PinyinUtilTest {

    @Test
    public void testName() {
        assert "ceshi".equals(PinyinUtil.getPinyin("测试"));
    }
}