package com.agilex.healthcare.schedulingmanager.validator;

import junit.framework.TestCase;
import org.junit.Test;

/**
 * Created with IntelliJ IDEA.
 * User: patelh
 * Date: 12/18/13
 * Time: 2:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class ResponseValidatorTest extends TestCase{

    private static final String Test_Error_Message = "Test Message^This is test error message string.^end of test message";
    private static final String Expected_Error_String = "This is test error message string.";

    @Test
    public void testStripTheErrorMessage(){
        ResponseValidator responseValidator = new ResponseValidator();
        String result = responseValidator.stripTheErrorMessage(Test_Error_Message);
        assertEquals(Expected_Error_String, result);
    }
}
