• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 2615

Show
Ignore:
Timestamp:
07/11/08 11:24:07 (2 months ago)
Author:
jmoore
Message:

Added another ScreenPlateWell test

Files:
1 modified

  • trunk/components/server/test/ome/server/itests/spw/SpwTest.java (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • trunk/components/server/test/ome/server/itests/spw/SpwTest.java

    r2613 r2615  
    9191                null); 
    9292    } 
     93 
     94    @Test 
     95    public void testRetrievingWellSamples() { 
     96        loginRoot(); 
     97 
     98        Plate plate = new Plate("plate"); 
     99        Well well = new Well(); 
     100        WellSample sample = new WellSample(); 
     101        Image image = new Image("image"); 
     102        plate.addWell(well); 
     103        well.addWellSample(sample); 
     104        sample.setImage(image); 
     105        plate = iUpdate.saveAndReturnObject(plate); 
     106        well = plate.unmodifiableWells().iterator().next(); 
     107 
     108        StringBuilder sb = new StringBuilder(); 
     109        sb.append("select well from Well well "); 
     110        sb.append("left outer join fetch well.wellSamples ws "); 
     111        sb.append("left outer join fetch ws.image wsi "); 
     112        sb.append("where well.plate.id = :plateID"); 
     113 
     114        well = iQuery.findByQuery(sb.toString(), new Parameters().addLong( 
     115                "plateID", well.getPlate().getId())); 
     116        assertNotNull(well); 
     117        assertTrue(well.sizeOfWellSamples() > 0); 
     118    } 
    93119} 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/