You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fanruan.api.util;
|
|
|
|
|
|
|
|
import org.junit.Assert;
|
|
|
|
import org.junit.Test;
|
|
|
|
|
|
|
|
import static org.junit.Assert.*;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author richie
|
|
|
|
* @version 10.0
|
|
|
|
* Created by richie on 2019-08-19
|
|
|
|
*/
|
|
|
|
public class StringKitTest {
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void isEmpty() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void isNotEmpty() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void isBlank() {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
|
|
public void isNotBlank() {
|
|
|
|
}
|
|
|
|
@Test
|
|
|
|
public void trim(){
|
|
|
|
String stringHaveBlank = " abc ";
|
|
|
|
String stringWithoutBlank = "abc";
|
|
|
|
String blankString = " ";
|
|
|
|
Assert.assertEquals(StringKit.trim(stringHaveBlank), "abc");
|
|
|
|
Assert.assertEquals(StringKit.trim(stringWithoutBlank), "abc");
|
|
|
|
Assert.assertEquals(StringKit.trim(blankString), "");
|
|
|
|
}
|
|
|
|
}
|