package de.fernunihagen.dna.jkn.scalephant;

import junit.framework.Assert;

import org.junit.Test;

import de.fernunihagen.dna.jkn.scalephant.storage.StorageInterface;

public class TestStorageInterface {
	
	/**
	 * Test registering and unregistering the storage manager
	 * @throws Exception
	 */
	@Test
	public void testRegisterAndUnregister() {
		Assert.assertFalse(StorageInterface.isStorageManagerActive("test_storage"));
		StorageInterface.getStorageManager("test_storage");
		Assert.assertTrue(StorageInterface.isStorageManagerActive("test_storage"));
		StorageInterface.shutdown("test_storage");
		Assert.assertFalse(StorageInterface.isStorageManagerActive("test_storage"));
	}
}

@@ -201,16 +201,124 @@
 ace %7B%0A%09%0A
+%09/**%0A%09 * The name of the test relation%0A%09 */%0A%09protected static final String RELATION_NAME = %22test_storage%22;%0A%0A
 %09/**%0A%09 *
@@ -373,16 +373,21 @@
 manager%0A
+%09 * %0A
 %09 * @thr
@@ -512,38 +512,37 @@
 nagerActive(
-%22test_storage%22
+RELATION_NAME
 ));%0A%09%09Storag
@@ -570,30 +570,29 @@
 Manager(
-%22test_storage%22
+RELATION_NAME
 );%0A%09%09Ass
@@ -642,38 +642,37 @@
 nagerActive(
-%22test_storage%22
+RELATION_NAME
 ));%0A%09%09Storag
@@ -691,30 +691,29 @@
 hutdown(
-%22test_storage%22
+RELATION_NAME
 );%0A%09%09Ass
@@ -768,30 +768,29 @@
 rActive(
-%22test_storage%22
+RELATION_NAME
 ));%0A%09%7D%0A%7D

Extracted relation name