- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3269
|
r3270
|
|
| 12 | 12 | import ome.services.blitz.fire.Ring; |
| 13 | 13 | import ome.services.blitz.test.mock.MockFixture; |
| | 14 | import ome.services.messages.CreateSessionMessage; |
| 14 | 15 | import ome.system.OmeroContext; |
| 15 | 16 | |
| … |
… |
|
| 123 | 124 | |
| 124 | 125 | @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 |
| 125 | 134 | public void testHandlesMissingServers() throws Exception { |
| 126 | 135 | fail(); |
Download in other formats:
1.2.1-PRO © 2008-2009
agile42 all
rights reserved
(this page was served in: 0.125402 sec.)