Search in sources :

Example 91 with TdExpression

use of org.talend.cwm.relational.TdExpression in project tdq-studio-se by Talend.

the class TextIndicatorForNetezzaTest method testSoundex.

@Test
public void testSoundex() {
    TdExpression expression = findExpressionForNetezza(SOUNDEX_FREQUENCY);
    Assert.assertNotNull(expression);
    Assert.assertEquals(SOUNDEX_FREQUENCY_SQL, expression.getBody());
}
Also used : TdExpression(org.talend.cwm.relational.TdExpression) Test(org.junit.Test)

Example 92 with TdExpression

use of org.talend.cwm.relational.TdExpression in project tdq-studio-se by Talend.

the class TextIndicatorForNetezzaTest method testMinLengthNull.

@Test
public void testMinLengthNull() {
    TdExpression expression = findExpressionForNetezza(MINIMAL_LENGTH_WITH_NULL);
    Assert.assertNotNull(expression);
    Assert.assertEquals(MINIMAL_LENGTH_WITH_NULL_SQL, expression.getBody());
}
Also used : TdExpression(org.talend.cwm.relational.TdExpression) Test(org.junit.Test)

Example 93 with TdExpression

use of org.talend.cwm.relational.TdExpression in project tdq-studio-se by Talend.

the class TextIndicatorForNetezzaTest method testSoundexLow.

@Test
public void testSoundexLow() {
    TdExpression expression = findExpressionForNetezza(SOUNDEX_LOW_FREQUENCY);
    Assert.assertNotNull(expression);
    Assert.assertEquals(SOUNDEX_LOW_FREQUENCY_SQL, expression.getBody());
}
Also used : TdExpression(org.talend.cwm.relational.TdExpression) Test(org.junit.Test)

Example 94 with TdExpression

use of org.talend.cwm.relational.TdExpression in project tdq-studio-se by Talend.

the class TextIndicatorForNetezzaTest method testMaxLengthWithNull.

@Test
public void testMaxLengthWithNull() {
    TdExpression expression = findExpressionForNetezza(MAXIMAL_LENGTH_WITH_NULL);
    Assert.assertNotNull(expression);
    Assert.assertEquals(MAXIMAL_LENGTH_WITH_NULL_SQL, expression.getBody());
}
Also used : TdExpression(org.talend.cwm.relational.TdExpression) Test(org.junit.Test)

Example 95 with TdExpression

use of org.talend.cwm.relational.TdExpression in project tdq-studio-se by Talend.

the class TextIndicatorForNetezzaTest method testAverageLengthWithBlankAndNull.

@Test
public void testAverageLengthWithBlankAndNull() {
    TdExpression expression = findExpressionForNetezza(AVERAGE_LENGTH_WITH_BLANK_AND_NULL);
    Assert.assertNotNull(expression);
    Assert.assertEquals(AVERAGE_LENGTH_WITH_BLANK_AND_NULL_SQL, expression.getBody());
}
Also used : TdExpression(org.talend.cwm.relational.TdExpression) Test(org.junit.Test)

Aggregations

TdExpression (org.talend.cwm.relational.TdExpression)121 Test (org.junit.Test)51 IndicatorDefinition (org.talend.dataquality.indicators.definition.IndicatorDefinition)30 UDIndicatorDefinition (org.talend.dataquality.indicators.definition.userdefine.UDIndicatorDefinition)29 ArrayList (java.util.ArrayList)19 RegularExpression (org.talend.dataquality.domain.pattern.RegularExpression)19 Pattern (org.talend.dataquality.domain.pattern.Pattern)16 TdColumn (org.talend.cwm.relational.TdColumn)12 Expression (orgomg.cwm.objectmodel.core.Expression)12 BasicEList (org.eclipse.emf.common.util.BasicEList)11 IndicatorParameters (org.talend.dataquality.indicators.IndicatorParameters)11 Domain (org.talend.dataquality.domain.Domain)10 TdTable (org.talend.cwm.relational.TdTable)9 ProductVersion (org.talend.utils.ProductVersion)9 Analysis (org.talend.dataquality.analysis.Analysis)8 PatternComponent (org.talend.dataquality.domain.pattern.PatternComponent)8 ChartDataEntity (org.talend.dq.indicators.preview.table.ChartDataEntity)8 File (java.io.File)7 IFile (org.eclipse.core.resources.IFile)6 IFolder (org.eclipse.core.resources.IFolder)6