View Javadoc
1   /*
2    * Created by IntelliJ IDEA.
3    * User: Mike
4    * Date: Jul 29, 2004
5    * Time: 3:47:36 PM
6    */
7   package com.atlassian.plugin.store;
8   
9   import com.atlassian.plugin.manager.PluginPersistentState;
10  import com.atlassian.plugin.manager.store.MemoryPluginPersistentStateStore;
11  import org.junit.Test;
12  
13  import static org.junit.Assert.assertEquals;
14  
15  public class TestMemoryPluginStateStore {
16  
17      @Test
18      public void testStore() {
19          final MemoryPluginPersistentStateStore store = new MemoryPluginPersistentStateStore();
20          final PluginPersistentState state = PluginPersistentState.builder().toState();
21          store.save(state);
22          assertEquals(state.getStatesMap(), store.load().getStatesMap());
23      }
24  }