public class LocalizedAssert extends Object
Constructor and Description |
---|
LocalizedAssert(ConnectorMessages cm)
Creates asserts with messages.
|
LocalizedAssert(ConnectorMessages cm,
boolean localizeArguments)
Creates asserts with messages with flag whether to localize argument
names
|
Modifier and Type | Method and Description |
---|---|
String |
assertBlank(String s,
String argument)
Asserts that argument string is blank.
|
String |
assertNotBlank(String o,
String argument)
Asserts that argument string is not blank.
|
<T> T |
assertNotNull(T o,
String argument)
Asserts the argument is not null.
|
<T> T |
assertNull(T o,
String argument)
Asserts the argument is null.
|
public LocalizedAssert(ConnectorMessages cm)
cm
- IllegalArgumentException
- if cm param is nullpublic LocalizedAssert(ConnectorMessages cm, boolean localizeArguments)
cm
- localizeArguments
- the argIllegalArgumentException
- if cm param is nullpublic <T> T assertNotNull(T o, String argument)
T
- o
- argument
- public <T> T assertNull(T o, String argument)
T
- o
- argument
- public String assertNotBlank(String o, String argument)
o
- argument
- Copyright © 2018–2025. All rights reserved.