// ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.dataquality.common.regex;
import org.junit.Assert;
import org.junit.Test;
/**
* DOC talend class global comment. Detailled comment
*/
public class FullwidthLatinUppercasedLettersTest {
/**
* Test method for
* {@link org.talend.dataquality.statistics.frequency.regex.ChainResponsibilityHandler#handleRequest(java.lang.String)}.
*
* case1 normal case
*/
@Test
public void testHandleRequestCase1() {
FullwidthLatinUppercasedLetters fullwidthLatinUppercasedLetters = new FullwidthLatinUppercasedLetters();
String handleRequest = fullwidthLatinUppercasedLetters.handleRequest("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); //$NON-NLS-1$
Assert.assertEquals("AAAAAAAAAAAAAAAAAAAAAAAAAA", handleRequest); //$NON-NLS-1$
}
/**
* Test method for
* {@link org.talend.dataquality.statistics.frequency.regex.ChainResponsibilityHandler#handleRequest(java.lang.String)}.
*
* case2 special case
*/
@Test
public void testHandleRequestCase2() {
FullwidthLatinUppercasedLetters fullwidthLatinUppercasedLetters = new FullwidthLatinUppercasedLetters();
String handleRequest = fullwidthLatinUppercasedLetters.handleRequest("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); //$NON-NLS-1$
Assert.assertEquals("ABCDEFGHIJKLMNOPQRSTUVWXYZ", handleRequest); //$NON-NLS-1$
}
}