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) |
static SwiftMessage |
createMT(int i,
Tag... tags)
create a message of given type, initialize blocks and add in order tags param in block 4
|
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 addSeq(SwiftMessage msg, String sequenceIdentifier, Tag... tags)
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 SwiftMessage createMT(int type)
public static SwiftMessage createMT(int i, SwiftTagListBlock... blocks)
public static SwiftMessage createMT(int i, Tag... tags)
i
- tags
- public static SwiftMessage createMTwithEmptyTags(int i, String... tags)
public static SwiftMessage enclose(SwiftMessage msg, String sequenceIdentifier, Tag... tags)
public static void readFile(String string)
public static void setSTP(SwiftMessage m)