Last change
on this file since 193 was
193,
checked in by Maciej Komosinski, 10 years ago
|
Set svn:eol-style native for all textual files
|
-
Property svn:eol-style set to
native
|
File size:
645 bytes
|
Line | |
---|
1 | package com.framsticks.util.lang; |
---|
2 | |
---|
3 | |
---|
4 | import org.testng.annotations.Test; |
---|
5 | |
---|
6 | import com.framsticks.test.TestConfiguration; |
---|
7 | import static org.fest.assertions.Assertions.*; |
---|
8 | |
---|
9 | @Test |
---|
10 | public class StringsTest extends TestConfiguration { |
---|
11 | |
---|
12 | @Test |
---|
13 | public void testStrings() { |
---|
14 | assertThat(Strings.splitIntoPair("test 2", ' ', null)).isEqualTo(Pair.make("test", "2")); |
---|
15 | assertThat(Strings.splitIntoPair("tes", ' ', "other")).isEqualTo(Pair.make("tes", "other")); |
---|
16 | assertThat(Strings.splitIntoPair("xx yy zz", ' ', null)).isEqualTo(Pair.make("xx", "yy zz")); |
---|
17 | assertThat(Strings.splitIntoPair(" empty", ' ', null)).isEqualTo(Pair.make("", "empty")); |
---|
18 | } |
---|
19 | |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.