0 Replies Latest reply on Jan 16, 2018 7:55 PM by roberttay RSS
    roberttay Apprentice

    InfoTable.isEmpty() returns true even if getRowCount() > 0

    I'm writing some unit tests for a custom extension in ThingWorx 6.5.4.

    In my test i create and populate a ValueCollection and add it to a new InfoTable (created using its default constructor).

    When i run my test and verify that the table is not empty, it fails.

    InfoTable table = new InfoTable();

    ValueCollection row = new ValueCollection();



    Assert.assertTrue(table.getRowCount() > 0);


    This test passes and i don't understand why.


    Javadocs for InfoTable imply that isEmpty():


    Returns a boolean indicating whether this InfoTable has a size of zero


    This makes no sense to me.

    What am i missing?