import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
+import org.openecomp.aai.champcore.graph.impl.InMemoryChampGraphImpl;
import org.openecomp.crud.dao.GraphDao;
import org.openecomp.crud.entity.Edge;
import org.openecomp.crud.entity.Vertex;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import java.util.Properties;
import static org.junit.Assert.*;
// Create an instance of the Champ DAO, backed by the Champ library's in-memory back end
// for testing purposes.
- Properties champDaoProperties = new Properties();
+ Map<String, Object> champDaoProperties = new HashMap<String, Object>();
champDaoProperties.put(ChampDao.CONFIG_STORAGE_BACKEND, "in-memory");
champDaoProperties.put(ChampDao.CONFIG_GRAPH_NAME, GRAPH_NAME);
- champDao = new ChampDao(champDaoProperties);
+ champDao = new ChampDao(new InMemoryChampGraphImpl.Builder().properties(champDaoProperties).build());
}
// updated edge.
// *** We will leave this validation commented out for now, as the Champ library actually
// merges update properties instead of replacing them...
-// assertFalse("Property 'key2' should no longer be associated with updated edge",
-// updatedEdge.getProperties().containsKey("key2"));
+ assertFalse("Property 'key2' should no longer be associated with updated edge",
+ updatedEdge.getProperties().containsKey("key2"));
}
@Test