BAEL-972 - Apache Commons Text - just indentation
This commit is contained in:
parent
760d4e1a91
commit
7d87b3aeb7
@ -5,20 +5,20 @@ import org.junit.Assert;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class StrBuilderTest {
|
public class StrBuilderTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenReplaced_thenCorrect() {
|
public void whenReplaced_thenCorrect() {
|
||||||
StrBuilder strBuilder = new StrBuilder("example StrBuilder!");
|
StrBuilder strBuilder = new StrBuilder("example StrBuilder!");
|
||||||
strBuilder.replaceAll("example", "new");
|
strBuilder.replaceAll("example", "new");
|
||||||
|
|
||||||
Assert.assertEquals(new StrBuilder("new StrBuilder!"), strBuilder);
|
Assert.assertEquals(new StrBuilder("new StrBuilder!"), strBuilder);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void whenCleared_thenEmpty() {
|
public void whenCleared_thenEmpty() {
|
||||||
StrBuilder strBuilder = new StrBuilder("example StrBuilder!");
|
StrBuilder strBuilder = new StrBuilder("example StrBuilder!");
|
||||||
strBuilder.clear();
|
strBuilder.clear();
|
||||||
|
|
||||||
Assert.assertEquals(new StrBuilder(""), strBuilder);
|
Assert.assertEquals(new StrBuilder(""), strBuilder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user