1 /* 2 * This file is a part of CAST project. 3 * (c) Copyright 2007, AGH University of Science & Technology 4 * https://caribou.iisg.agh.edu.pl/trac/cast 5 * 6 * Licensed under the Eclipse Public License, Version 1.0 (the "License"). 7 * You may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * http://www.eclipse.org/legal/epl-v10.html 10 */ 11 /* 12 * File: JRubyIntegration.java 13 * Created: 2007-09-19 14 * Author: apohllo 15 * $Id: JRubyIntegration.java 2232 2009-01-04 22:59:53Z apohllo $ 16 */ 17 18 package pl.edu.agh.cast.model.mapper; 19 20 import java.util.Map; 21 22 23 /** 24 * JRuby integration class. This class facilitates running JRuby test. 25 * 26 * @author AGH CAST Team 27 */ 28 public class JRubyIntegration { 29 /** 30 * The keys in the map are converted to strings. 31 * @param map The map which keys are converted. 32 */ 33 public static void stringifyKeys(Map map) { 34 for (Object key : map.keySet()) { 35 map.put(key.toString(), map.get(key)); 36 } 37 } 38 39 }