Package org.mockito.internal.util
Class StringUtil
java.lang.Object
org.mockito.internal.util.StringUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
decamelizeMatcherName
(String className) static String
Joins Strings with line break character.static String
join
(String start, String linePrefix, Collection<?> lines) Joins Strings with EOL characterstatic String
join
(String start, Collection<?> lines) Joins Strings with EOL characterstatic String
removeFirstLine
(String text)
-
Method Details
-
removeFirstLine
- Parameters:
text
- to have the first line removed- Returns:
- less first line
-
join
Joins Strings with line break character. It adds line break in front, too. This makes it something like 'format' no really 'join'. -
join
Joins Strings with EOL character- Parameters:
start
- the starting Stringlines
- collection to join
-
join
Joins Strings with EOL character- Parameters:
start
- the starting StringlinePrefix
- the prefix for each line to be joinedlines
- collection to join
-
decamelizeMatcherName
-