Changeset 7463


Ignore:
Timestamp:
Mar 27, 2018, 2:08:22 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #2110: QueryException? in annotation importer plug-in

Added a test case in the TestAnnotationFlatFileImporter test.

Running the same import twice will trigger the error so now we have a way to test and check if this problem comes back in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.12-stable/src/test/TestAnnotationFlatFileImporter.java

    r6921 r7463  
    8989    ok &= TestJob.test_execute(jobId, false);
    9090   
     91    // One more time to check if update is possible (due to Hibernate bug described in #2110)
     92    int jobId2 = test_create_job(pluginDefinitionId, fileId, timeId, ageId, enumId, timestampId, commentId, commentId);
     93    ok &= TestJob.test_execute(jobId2, false);
     94   
    9195    // Test: list the result
    9296    TestAnnotation.test_list_annotations(Item.SAMPLE, sample1, Annotation.Source.PRIMARY, 5);
     
    101105
    102106    TestJob.test_delete(jobId);
     107    TestJob.test_delete(jobId2);
    103108    TestFile.test_delete(fileId);
    104109    TestSample.test_delete(sample1);
Note: See TracChangeset for help on using the changeset viewer.