blob: c2500662218deb316fcb2cb620f766c04012c3a6 [file] [log] [blame]
Umesh Krishnaswamy345ee992012-12-13 20:29:48 -08001/**
2* Copyright 2011, Big Switch Networks, Inc.
3* Originally created by David Erickson, Stanford University
4*
5* Licensed under the Apache License, Version 2.0 (the "License"); you may
6* not use this file except in compliance with the License. You may obtain
7* a copy of the License at
8*
9* http://www.apache.org/licenses/LICENSE-2.0
10*
11* Unless required by applicable law or agreed to in writing, software
12* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14* License for the specific language governing permissions and limitations
15* under the License.
16**/
17
18package net.floodlightcontroller.storage.memory.tests;
19
20import net.floodlightcontroller.core.module.FloodlightModuleContext;
21import net.floodlightcontroller.restserver.IRestApiService;
22import net.floodlightcontroller.restserver.RestApiServer;
23import net.floodlightcontroller.storage.memory.MemoryStorageSource;
24import net.floodlightcontroller.storage.tests.StorageTest;
25import org.junit.Before;
26
27public class MemoryStorageTest extends StorageTest {
28
29 @Before
30 public void setUp() throws Exception {
31 storageSource = new MemoryStorageSource();
32 restApi = new RestApiServer();
33 FloodlightModuleContext fmc = new FloodlightModuleContext();
34 fmc.addService(IRestApiService.class, restApi);
35 restApi.init(fmc);
36 storageSource.init(fmc);
37 restApi.startUp(fmc);
38 storageSource.startUp(fmc);
39 super.setUp();
40 }
41}