mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-11-29 02:43:53 +00:00
removed unused imports from Strman.java and split tests out to match current test convention
This commit is contained in:
@@ -38,9 +38,6 @@ import static java.util.function.Function.identity;
|
|||||||
import static java.util.stream.Collectors.counting;
|
import static java.util.stream.Collectors.counting;
|
||||||
import static java.util.stream.Collectors.groupingBy;
|
import static java.util.stream.Collectors.groupingBy;
|
||||||
import static java.util.stream.Collectors.joining;
|
import static java.util.stream.Collectors.joining;
|
||||||
import static org.junit.Assert.assertFalse;
|
|
||||||
import static org.junit.Assert.assertTrue;
|
|
||||||
import static strman.Strman.isBlank;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A String manipulation library without any dependencies
|
* A String manipulation library without any dependencies
|
||||||
|
|||||||
@@ -1027,9 +1027,17 @@ public class StrmanTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testIsBlank() {
|
public void isBlank_shouldReturnTrueIfNull() {
|
||||||
assertTrue(isBlank(""));
|
|
||||||
assertTrue(isBlank(null));
|
assertTrue(isBlank(null));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void isBlank_shouldReturnTrueIfEmpty() {
|
||||||
|
assertTrue(isBlank(""));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void isBlank_shouldReturnFalseIfNotEmpty() {
|
||||||
assertFalse(isBlank("ac"));
|
assertFalse(isBlank("ac"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user