Show
Ignore:
Timestamp:
01/12/09 08:49:34 (14 months ago)
Author:
jmoore
Message:

OmeroClustering : Cleaning sessions in jdbc ring and protecting NPEs

(cherry picked from commit bcafc11e48d911ccb405680477e40d66332241d8)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/components/blitz/test/ome/services/blitz/test/ClusteredRingTest.java

    r3269 r3270  
    1212import ome.services.blitz.fire.Ring; 
    1313import ome.services.blitz.test.mock.MockFixture; 
     14import ome.services.messages.CreateSessionMessage; 
    1415import ome.system.OmeroContext; 
    1516 
     
    123124 
    124125    @Test 
     126    public void testAddedSessionGetsUuidOfManager() throws Exception { 
     127        fixture1.ctx.publishEvent(new CreateSessionMessage(this, "test-for-uuid")); 
     128        assertTrue(fixture1.blitz.getRing().checkPassword("test-for-uuid")); 
     129        String value = fixture1.jdbc.queryForObject("select value from session_ring where key = ?", String.class, "session-test-for-uuid"); 
     130        assertEquals(fixture1.blitz.getRing().uuid, value); 
     131    } 
     132     
     133    @Test 
    125134    public void testHandlesMissingServers() throws Exception { 
    126135        fail(); 

1.2.1-PRO © 2008-2009 agile42 all rights reserved (this page was served in: 0.44896 sec.)