@Test (expected = BadCheckpointException.class) public void testCheckpointBadVersion() throws Exception { RandomAccessFile writer = new RandomAccessFile(checkpoint, "rw"); try { EventQueueBackingStore backingStore = EventQueueBackingStoreFactory. get(checkpoint, 10, "test"); backingStore.close(); writer.seek( EventQueueBackingStoreFile.INDEX_VERSION * Serialization.SIZE_OF_LONG); writer.writeLong(94L); writer.getFD().sync(); backingStore = EventQueueBackingStoreFactory.get(checkpoint, 10, "test"); } finally { writer.close(); } }
static EventQueueBackingStore get(File checkpointFile, int capacity, String name) throws Exception { return get(checkpointFile, capacity, name, true); }
EventQueueBackingStoreFactory { static EventQueueBackingStore get(File checkpointFile, int capacity, String name) throws Exception { return get(checkpointFile, capacity, name, true); } }
EventQueueBackingStoreFactory { static EventQueueBackingStore get(File checkpointFile, int capacity, String name) throws Exception { return get(checkpointFile, capacity, name, true); } private  EventQueueBackingStoreFactory(); }
EventQueueBackingStoreFactory { static EventQueueBackingStore get(File checkpointFile, int capacity, String name) throws Exception { return get(checkpointFile, capacity, name, true); } private  EventQueueBackingStoreFactory();  }
EventQueueBackingStoreFactory { static EventQueueBackingStore get(File checkpointFile, int capacity, String name) throws Exception { return get(checkpointFile, capacity, name, true); } private  EventQueueBackingStoreFactory();   }