Changeset 1790 for trunk/test


Ignore:
Timestamp:
Apr 21, 2011, 3:49:23 PM (10 years ago)
Author:
s.h.sikkema@…
Message:

fixed bug where preview of small export would fail; changed assay excel export to CSV because of excel limitations; ajaxGetAssays correctly handles case of no available studies; RelTime? is output as human readable string in export; units are displayed in header of export; submit button is disabled when no assays are available; added instructions to assay export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/dbnp/studycapturing/AssayServiceTests.groovy

    r1659 r1790  
    233233    }
    234234
     235//    // Test for out of memory exception when exporting large excel workbooks
     236//    // - xls format can handle max 256 columns
     237//    // - but, xls format can handle more data (1000000 cells, no problem -> 27.2 MB)
     238//    // - we'll need a good method to overcome the xlsx heap space problem
     239//    void testExportLargeExcelWorkbook() {
     240//
     241//        def file    = new File( '/tmp', 'tmpFile.xls' )
     242//
     243//        def os      = file.newOutputStream()
     244//
     245//        def rowData = (0..1).collect { row ->
     246//
     247//            (0..256).collect { col ->
     248//                "$row - $col"
     249//            }
     250//
     251//        }
     252//
     253////        try {
     254//            service.exportRowWiseDataToExcelFile rowData, os, false
     255////        } catch (Exception e) {
     256////            e.printStackTrace()
     257////            assert false
     258////        } finally {
     259//            os.flush()
     260////            file.delete()
     261////        }
     262//    }
     263
     264
    235265}
Note: See TracChangeset for help on using the changeset viewer.