Search in sources :

Example 16 with IOperation

use of org.pentaho.metaverse.api.model.IOperation in project pentaho-metaverse by pentaho.

the class ComponentDerivationRecordTest method testPutOperationNullOperands.

@Test
public void testPutOperationNullOperands() throws Exception {
    Operations operations = record.getOperations();
    assertNotNull(operations);
    assertTrue(operations.isEmpty());
    record.addOperation(new Operation("testOperation", null));
    operations = record.getOperations();
    assertNotNull(operations);
    List<IOperation> checkOperands = operations.get("testOperation");
    assertNull(checkOperands);
}
Also used : IOperation(org.pentaho.metaverse.api.model.IOperation) IOperation(org.pentaho.metaverse.api.model.IOperation) Operation(org.pentaho.metaverse.api.model.Operation) Operations(org.pentaho.metaverse.api.model.Operations) Test(org.junit.Test)

Aggregations

IOperation (org.pentaho.metaverse.api.model.IOperation)16 Operations (org.pentaho.metaverse.api.model.Operations)16 Test (org.junit.Test)15 Operation (org.pentaho.metaverse.api.model.Operation)7 StreamFieldNode (org.pentaho.metaverse.frames.StreamFieldNode)4 ComponentDerivationRecord (org.pentaho.metaverse.api.analyzer.kettle.ComponentDerivationRecord)3 TransformationStepNode (org.pentaho.metaverse.frames.TransformationStepNode)3 List (java.util.List)2 ValueMapperMeta (org.pentaho.di.trans.steps.valuemapper.ValueMapperMeta)2 FieldNode (org.pentaho.metaverse.frames.FieldNode)2 JSONDeserializer (flexjson.JSONDeserializer)1 Set (java.util.Set)1 NumberRangeMeta (org.pentaho.di.trans.steps.numberrange.NumberRangeMeta)1 SelectValuesMeta (org.pentaho.di.trans.steps.selectvalues.SelectValuesMeta)1 MetaverseAnalyzerException (org.pentaho.metaverse.api.MetaverseAnalyzerException)1 MetaverseException (org.pentaho.metaverse.api.MetaverseException)1 StepFieldOperations (org.pentaho.metaverse.api.StepFieldOperations)1 SelectValuesTransStepNode (org.pentaho.metaverse.frames.SelectValuesTransStepNode)1