slightly better test method names

This commit is contained in:
Ceki Gulcu 2014-11-27 22:37:00 +01:00
parent fa9e7aa37c
commit 8737f4a054
1 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class MessageFormatterTest extends TestCase {
assertEquals(null, result);
}
public void testNullParam() {
public void nullParametersShouldBeHandledWithoutBarfing() {
result = MessageFormatter.format("Value is {}.", null).getMessage();
assertEquals("Value is null.", result);
@ -77,7 +77,7 @@ public class MessageFormatterTest extends TestCase {
assertEquals("Val1 is null, val2 is null, val3 is 3", result);
}
public void testOneParameter() {
public void verifyOneParameterIsHandledCorrectly() {
result = MessageFormatter.format("Value is {}.", i3).getMessage();
assertEquals("Value is 3.", result);