void function ( ) { event = new Event ( ) ; Assert . assertNull ( event . getIndexId ( ) ) ; event = index . addEvent ( event ) ; Assert . assertNotNull ( event . getIndexId ( ) ) ; }
insert a dummy event into the database . check the event indexid after adding it to the database and it should be not null . concode_field_sep Event event concode_elem_sep BigDecimal TEST_SUMMARY_DENORMALIZED_LONGITUDE concode_elem_sep ProductSummary summary concode_elem_sep JDBCProductIndex index concode_elem_sep ProductIndexQuery query concode_elem_sep boolean deleteIndexOnClose concode_elem_sep String JDBC_DRIVER concode_elem_sep String INDEX_DB_FILE concode_elem_sep BigDecimal TEST_SUMMARY_LATITUDE concode_elem_sep BigDecimal TEST_SUMMARY_LONGITUDE concode_elem_sep ProductTest productFactory concode_elem_sep String JDBC_URL concode_field_sep void setup concode_elem_sep void addAssociationTest concode_elem_sep void getEventsTest concode_elem_sep void getProductsTest concode_elem_sep void addSummaryTest concode_elem_sep void addNormailizedSummaryTest concode_elem_sep void mysqlConnectionTest concode_elem_sep void shutdown concode_elem_sep void getUnassociatedProductTest