1
2
3
4
5
6
7 package com.atlassian.plugin.store;
8
9 import com.atlassian.plugin.manager.DefaultPluginPersistentState;
10 import com.atlassian.plugin.manager.PluginPersistentState;
11 import com.atlassian.plugin.manager.store.MemoryPluginPersistentStateStore;
12 import junit.framework.TestCase;
13
14 public class TestMemoryPluginStateStore extends TestCase {
15 public void testStore() {
16 final MemoryPluginPersistentStateStore store = new MemoryPluginPersistentStateStore();
17 final PluginPersistentState state = new DefaultPluginPersistentState();
18 store.save(state);
19 assertEquals(state.getMap(), store.load().getMap());
20 }
21 }