public class TestUtils extends Object
Modifier and Type | Method and Description |
---|---|
static SwiftMessage |
addSeq(SwiftMessage msg,
String sequenceIdentifier,
Tag... tags)
Adds the given tags in the message, surrounded with sequence boundaries for given sequence name.
|
static void |
append(SwiftMessage m,
SwiftTagListBlock block)
Appends block to the block4 of the given message.
|
static SwiftMessage |
createMT(int type) |
static SwiftMessage |
createMT(int i,
SwiftTagListBlock... blocks)
Deprecated.
use new MTxxx instead of this
|
static SwiftMessage |
createMT(int i,
Tag... tags)
Deprecated.
use new MTxxx instead of this
|
static SwiftMessage |
createMTwithEmptyTags(int i,
String... tags)
Deprecated.
use new MTnnn instead
|
static SwiftMessage |
enclose(SwiftMessage msg,
String sequenceIdentifier,
Tag... tags)
enclose tags in B4 with the given 16R/S tags.
|
static Tag[] |
newSeq(String startEnd16rs,
String... tagnames)
Deprecated.
use directly MTXXX.SequenceX.newInstance(Tag ...)
|
static Tag[] |
newSeq(String startEnd16rs,
Tag... tags)
Deprecated.
use directly MTXXX.SequenceX.newInstance(Tag ...)
|
static String |
patch(String xpath)
Patches a simple XPath to make it work in XMLUnit asserts
|
public static SwiftMessage createMT(int type)
@Deprecated @ProwideDeprecated(phase3=_2018) public static SwiftMessage createMT(int i, Tag... tags)
@Deprecated @ProwideDeprecated(phase3=_2018) public static SwiftMessage createMT(int i, SwiftTagListBlock... blocks)
public static SwiftMessage addSeq(SwiftMessage msg, String sequenceIdentifier, Tag... tags)
public static SwiftMessage enclose(SwiftMessage msg, String sequenceIdentifier, Tag... tags)
@Deprecated @ProwideDeprecated(phase3=_2018) public static SwiftMessage createMTwithEmptyTags(int i, String... tags)
@Deprecated @ProwideDeprecated(phase3=_2018) public static Tag[] newSeq(String startEnd16rs, Tag... tags)
startEnd16rs
- qualifier for 16RS tagtags
- tags to include@Deprecated @ProwideDeprecated(phase3=_2018) public static Tag[] newSeq(String startEnd16rs, String... tagnames)
startEnd16rs
- qualifier for 16RS tagtagnames
- tag names to createpublic static void append(SwiftMessage m, SwiftTagListBlock block)
m
- the message that will be appended the blockblock
- block to appendIllegalArgumentException
- if m or block is null