Polish
Closes gh-7081
This commit is contained in:
committed by
Stephane Nicoll
parent
8feef4560b
commit
503d735fdd
@@ -141,7 +141,7 @@ public final class ConditionMessage {
|
||||
/**
|
||||
* Factory method to create a new {@link ConditionMessage} with a specific message.
|
||||
* @param message the source message (may be a format string if {@code args} are
|
||||
* specified
|
||||
* specified)
|
||||
* @param args format arguments for the message
|
||||
* @return a new {@link ConditionMessage} instance
|
||||
*/
|
||||
@@ -155,7 +155,7 @@ public final class ConditionMessage {
|
||||
/**
|
||||
* Factory method to create a new {@link ConditionMessage} comprised of the specified
|
||||
* messages.
|
||||
* @param messages the source messages (may be {@code null}
|
||||
* @param messages the source messages (may be {@code null})
|
||||
* @return a new {@link ConditionMessage} instance
|
||||
*/
|
||||
public static ConditionMessage of(Collection<? extends ConditionMessage> messages) {
|
||||
@@ -283,7 +283,7 @@ public final class ConditionMessage {
|
||||
|
||||
/**
|
||||
* Indicates something is not available. For example {@code notAvailable("time")}
|
||||
* results in the message "time in not available".
|
||||
* results in the message "time is not available".
|
||||
* @param item the item that is not available
|
||||
* @return a built {@link ConditionMessage}
|
||||
*/
|
||||
@@ -374,9 +374,9 @@ public final class ConditionMessage {
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicate the items. For example
|
||||
* {@code didNotFind("bean", "beans").items(Collections.singleton("x")} results in
|
||||
* the message "did not find bean x".
|
||||
* Indicate the items with a {@link Style}. For example
|
||||
* {@code didNotFind("bean", "beans").items(Style.QUOTE, Collections.singleton("x")} results in
|
||||
* the message "did not find bean 'x'".
|
||||
* @param style the render style
|
||||
* @param items the source of the items (may be {@code null})
|
||||
* @return a built {@link ConditionMessage}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class ConditionMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void foundWhenSingleElementShouldUsingSingular() throws Exception {
|
||||
public void foundWhenSingleElementShouldUseSingular() throws Exception {
|
||||
ConditionMessage message = ConditionMessage.forCondition(Test.class)
|
||||
.found("bean", "beans").items("a");
|
||||
assertThat(message.toString()).isEqualTo("@Test found bean a");
|
||||
@@ -160,7 +160,7 @@ public class ConditionMessageTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void didNotFindWhenSingleElementShouldUsingSingular() throws Exception {
|
||||
public void didNotFindWhenSingleElementShouldUseSingular() throws Exception {
|
||||
ConditionMessage message = ConditionMessage.forCondition(Test.class)
|
||||
.didNotFind("class", "classes").items("a");
|
||||
assertThat(message.toString()).isEqualTo("@Test did not find class a");
|
||||
|
||||
Reference in New Issue
Block a user