PinyinUtilTest.java 649 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
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)
11
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
12 13 14 15 16 17 18 19
@ContextConfiguration(classes = SpringBootKwanApplication.class)
public class PinyinUtilTest {

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