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 StringACK_MSG
           
static charDELIMITER
           
static intFAILED_ON_PERCENTAGE_TEST
           
static intFAILED_TEST
           
static intGENERIC_SUITE_COUNT
           
static charPARAM_DELIMITER
           
static intPASSED_TEST
           
static intSKIPPED_TEST
           
static StringSTOP_MSG
           
static intSUITE
           
static intSUITE_FINISH
           
static intSUITE_START
           
static intTEST
           
static intTEST_FINISH
           
static intTEST_RESULT
           
static intTEST_START
           
static intTEST_STARTED
           
 
Constructor Summary
MessageHelper()
           
 
Method Summary
static SuiteMessagecreateSuiteMessage(String message)
           
static TestMessagecreateTestMessage(String message)
           
static intgetMessageType(String message)
           
static StringreplaceAsciiCharactersWithUnicode(String message)
           
static StringreplaceNewLine(String message)
           
static StringreplaceNewLineReplacer(String message)
           
static StringreplaceUnicodeCharactersWithAscii(String message)
           
static GenericMessageunmarshallGenericMessage(String message)
           
static TestResultMessageunmarshallTestResultMessage(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 © 2012. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14