public class TestUtils extends Object
Constructor and Description |
---|
TestUtils() |
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) |
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)
Returns an array of empty value tags enclosed in 16RS with the given qualifier
|
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
|
static void |
readFile(String string) |
static void |
setREMIT(SwiftMessage m) |
static void |
setSTP(SwiftMessage m) |
public static SwiftMessage createMT(int type)
@Deprecated public static SwiftMessage createMT(int i, Tag... tags)
@Deprecated 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)
public static SwiftMessage createMTwithEmptyTags(int i, String... tags)
public static void setSTP(SwiftMessage m)
public static void setREMIT(SwiftMessage m)
@Deprecated public static Tag[] newSeq(String startEnd16rs, Tag... tags)
startEnd16rs
- qualifier for 16RS tagtags
- tags to includepublic 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 nullpublic static void readFile(String string)