Search in sources :

Example 6 with SimpleField

use of io.atlasmap.v2.SimpleField in project atlasmap by atlasmap.

the class DefaultAtlasFieldActionsServiceTest method testProcessActionsActionsFieldAtlasConversionException.

@Test(expected = AtlasConversionException.class)
public void testProcessActionsActionsFieldAtlasConversionException() throws AtlasException {
    Actions actions = null;
    SimpleField field = new SimpleField();
    Object value = new Object();
    field.setValue(value);
    field.setFieldType(FieldType.INTEGER);
    fieldActionsService.processActions(actions, field);
}
Also used : Actions(io.atlasmap.v2.Actions) SimpleField(io.atlasmap.v2.SimpleField) Test(org.junit.Test)

Example 7 with SimpleField

use of io.atlasmap.v2.SimpleField in project atlasmap by atlasmap.

the class DefaultAtlasFieldActionsServiceTest method testprocessActionsActionsObjectFieldTypeAtlasConversionException.

@Test(expected = AtlasConversionException.class)
public void testprocessActionsActionsObjectFieldTypeAtlasConversionException() throws AtlasException {
    Actions actions = null;
    SimpleField field = new SimpleField();
    Object value = new Object();
    field.setValue(value);
    field.setFieldType(FieldType.INTEGER);
    fieldActionsService.processActions(actions, field);
}
Also used : Actions(io.atlasmap.v2.Actions) SimpleField(io.atlasmap.v2.SimpleField) Test(org.junit.Test)

Aggregations

SimpleField (io.atlasmap.v2.SimpleField)7 Field (io.atlasmap.v2.Field)4 Actions (io.atlasmap.v2.Actions)3 Test (org.junit.Test)3 Action (io.atlasmap.v2.Action)2 AtlasConversionException (io.atlasmap.api.AtlasConversionException)1 AtlasFieldAction (io.atlasmap.api.AtlasFieldAction)1 StringDelimiter (io.atlasmap.spi.StringDelimiter)1 ActionDetail (io.atlasmap.v2.ActionDetail)1 ConstantField (io.atlasmap.v2.ConstantField)1 FieldType (io.atlasmap.v2.FieldType)1 PropertyField (io.atlasmap.v2.PropertyField)1 Trim (io.atlasmap.v2.Trim)1 ArrayList (java.util.ArrayList)1