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,
Tag... tags) |
static void |
readFile(String string) |
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 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)