use of org.pentaho.metaverse.api.model.Operation in project pentaho-metaverse by pentaho.
the class ComponentDerivationRecordTest method testHasDelta.
@Test
public void testHasDelta() throws Exception {
Operations operations = record.getOperations();
assertNotNull(operations);
assertTrue(operations.isEmpty());
assertFalse("This record should not say it has been changed!", record.hasDelta());
record.addOperation(new Operation("testOperation", "testOperand"));
assertTrue("This record should say it has been changed!", record.hasDelta());
}
use of org.pentaho.metaverse.api.model.Operation 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);
}
Aggregations