org.testng.remote.strprotocol
Class MessageHelper

java.lang.Object
  extended by org.testng.remote.strprotocol.MessageHelper

public class MessageHelper
extends Object

Marshal/unmarshal tool for IStringMessages.

Author:
Alexandru Popescu

Field Summary
static String ACK_MSG
           
static char DELIMITER
           
static int FAILED_ON_PERCENTAGE_TEST
           
static int FAILED_TEST
           
static int GENERIC_SUITE_COUNT
           
static char PARAM_DELIMITER
           
static int PASSED_TEST
           
static int SKIPPED_TEST
           
static String STOP_MSG
           
static int SUITE
           
static int SUITE_FINISH
           
static int SUITE_START
           
static int TEST
           
static int TEST_FINISH
           
static int TEST_RESULT
           
static int TEST_START
           
static int TEST_STARTED
           
 
Constructor Summary
MessageHelper()
           
 
Method Summary
static SuiteMessage createSuiteMessage(String message)
           
static TestMessage createTestMessage(String message)
           
static int getMessageType(String message)
           
static String replaceAsciiCharactersWithUnicode(String message)
           
static String replaceNewLine(String message)
           
static String replaceNewLineReplacer(String message)
           
static String replaceUnicodeCharactersWithAscii(String message)
           
static GenericMessage unmarshallGenericMessage(String message)
           
static TestResultMessage unmarshallTestResultMessage(String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITER

public static final char DELIMITER
See Also:
Constant Field Values

PARAM_DELIMITER

public static final char PARAM_DELIMITER
See Also:
Constant Field Values

GENERIC_SUITE_COUNT

public static final int GENERIC_SUITE_COUNT
See Also:
Constant Field Values

SUITE

public static final int SUITE
See Also:
Constant Field Values

SUITE_START

public static final int SUITE_START
See Also:
Constant Field Values

SUITE_FINISH

public static final int SUITE_FINISH
See Also:
Constant Field Values

TEST

public static final int TEST
See Also:
Constant Field Values

TEST_START

public static final int TEST_START
See Also:
Constant Field Values

TEST_FINISH

public static final int TEST_FINISH
See Also:
Constant Field Values

TEST_RESULT

public static final int TEST_RESULT
See Also:
Constant Field Values

PASSED_TEST

public static final int PASSED_TEST
See Also:
Constant Field Values

FAILED_TEST

public static final int FAILED_TEST
See Also:
Constant Field Values

SKIPPED_TEST

public static final int SKIPPED_TEST
See Also:
Constant Field Values

FAILED_ON_PERCENTAGE_TEST

public static final int FAILED_ON_PERCENTAGE_TEST
See Also:
Constant Field Values

TEST_STARTED

public static final int TEST_STARTED
See Also:
Constant Field Values

STOP_MSG

public static final String STOP_MSG
See Also:
Constant Field Values

ACK_MSG

public static final String ACK_MSG
See Also:
Constant Field Values
Constructor Detail

MessageHelper

public MessageHelper()
Method Detail

getMessageType

public static int getMessageType(String message)

unmarshallGenericMessage

public static GenericMessage unmarshallGenericMessage(String message)

createSuiteMessage

public static SuiteMessage createSuiteMessage(String message)

createTestMessage

public static TestMessage createTestMessage(String message)

unmarshallTestResultMessage

public static TestResultMessage unmarshallTestResultMessage(String message)

replaceNewLine

public static String replaceNewLine(String message)

replaceUnicodeCharactersWithAscii

public static String replaceUnicodeCharactersWithAscii(String message)

replaceAsciiCharactersWithUnicode

public static String replaceAsciiCharactersWithUnicode(String message)

replaceNewLineReplacer

public static String replaceNewLineReplacer(String message)


Copyright © 2015. All Rights Reserved.