()
| 67 | |
| 68 | |
| 69 | public void testBinaryEEQ() throws Exception{ |
| 70 | int preload = 7; |
| 71 | File tmpBinFile = File.createTempFile("TempBinTest", |
| 72 | BinaryEventsReader.BINARY_EXT); |
| 73 | String binFileName = tmpBinFile.getAbsolutePath(); |
| 74 | ExternalEventsReader r = new StandardEventsReader(tempFile); |
| 75 | List<ExternalEvent> events = r.readEvents(100); |
| 76 | BinaryEventsReader.storeToBinaryFile(binFileName, events); |
| 77 | |
| 78 | eeq = new ExternalEventsQueue(binFileName, preload); |
| 79 | checkEeq(eeq, preload); |
| 80 | |
| 81 | assertTrue(tmpBinFile.delete()); // make sure all locks are gone |
| 82 | } |
| 83 | |
| 84 | |
| 85 | private void checkEeq(ExternalEventsQueue eeq, int preloadVal) { |
nothing calls this directly
no test coverage detected