Github user bhupeshchawda commented on a diff in the pull request:

    
https://github.com/apache/incubator-apex-malhar/pull/227#discussion_r58709506
  
    --- Diff: 
contrib/src/test/java/com/datatorrent/contrib/cassandra/CassandraOperatorTest.java
 ---
    @@ -301,6 +324,59 @@ public void testCassandraOutputOperator()
         outputOperator.getEventsInStore();
       }
     
    +  @Test
    +  public void testupdateQueryWithParameters()
    +  {
    +    TestOutputOperator outputOperator = setupForOutputOperatorTest();
    +    outputOperator.input.setup(tpc);
    +    outputOperator.setup(context);
    +    outputOperator.activate(context);
    +
    +    UUID id = UUID.randomUUID();
    +    TestPojo testPojo = new TestPojo(id, 20, "Laura", true, 10, 2.0, new 
HashSet<Integer>(), new ArrayList<Integer>(), null, new 
Date(System.currentTimeMillis()));
    +    // insert record
    +    outputOperator.beginWindow(0);
    +    outputOperator.input.process(testPojo);
    +    outputOperator.endWindow();
    +    Assert.assertEquals("rows in db", 1, 
outputOperator.getNumOfEventsInStore());
    +
    +    // update record
    --- End diff --
    
    Please have this as a separate test. Don't reset the operator..


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to