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
13 import junit.framework.TestCase;
14
15 public class TestMemoryPluginStateStore extends TestCase
16 {
17 public void testStore()
18 {
19 final MemoryPluginPersistentStateStore store = new MemoryPluginPersistentStateStore();
20 final PluginPersistentState state = new DefaultPluginPersistentState();
21 store.save(state);
22 assertEquals(state.getMap(), store.load().getMap());
23 }
24 }