// Path: planetary/src/main/java/org/planetary/pricing/MockPriceUtil.java
// public class MockPriceUtil {
// 	
// 	private static Properties prop = new Properties();
// 	private static InputStream input = null;
// 	private static String configFile = "src/main/resources/config.properties";
// 	
// 	static{
// 		System.out.println(configFile);
// 		try{
// 			input = new FileInputStream(configFile);
// 			prop.load(input);
// 		}catch(IOException e) { e.printStackTrace();}
// 		finally {
// 			if (input != null) {
// 				try {
// 					input.close();
// 				} catch (IOException e) {
// 					e.printStackTrace();
// 				}
// 			}
// 		}
// 	}
// 	
// 	public static Map<Integer, PriceMap> getPriceMap(List<Integer> typeList, Integer region){
// 		//region doesn't matter atm but will be useful in the future.
// 		Map<Integer, PriceMap> priceMap = new HashMap<Integer, PriceMap>();
// 		for(int typeID: typeList){
// 			int id = typeID;
// 			String quantString = prop.getProperty(String.valueOf(typeID) + "q");
// 			String priceString = prop.getProperty(String.valueOf(typeID) + "b");
// 			//b for buy, not p for price
// 			try{
// 				priceMap.put(id, new PriceMap(id, Integer.valueOf(quantString), 
// 						Double.valueOf(priceString)));
// 			} catch(Exception e){
// 				System.out.println("ERROR: MockPriceUtil | String parsing failed at <" 
// 						+ quantString + " | " + priceString + "> with message: " + e.getMessage());
// 			}
// 		}
// 		return priceMap;
// 	}
// 	
// 	//this is old stuff. Salvaged this code from a reprocessing calculator, this is leftover. 
// 	public static HashMap<Integer, Double> getPriceMap2(List<Materials> componentList){
// 		HashMap<Integer, Double> priceMap = new HashMap<Integer, Double>();
// 		for(Materials materials: componentList){
// 			Integer id = materials.getTypeID();
// 			String price = prop.getProperty(String.valueOf(id));
// 			if(price != null){
// 				priceMap.put(id, Double.parseDouble(price));
// 			}
// 			else{
// 				System.out.println("Price for typeID not found: " + id);
// //				priceMap.put(id, null);
// 			}
// 		}
// 		return priceMap;
// 	}
// 	
// 	
// 	
// 
// }
// 
// Path: planetary/src/main/java/org/planetary/pricing/PriceMap.java
// public class PriceMap {
// 	private int id;
// 	private int quantity;
// 	private double price;
// 	
// 	public PriceMap(int id, int quantity, double price){
// 		this.id = id;
// 		this.quantity = quantity;
// 		this.price = price;
// 	}
// 	public int getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	public int getQuantity() {
// 		return quantity;
// 	}
// 	public void setQuantity(int quantity) {
// 		this.quantity = quantity;
// 	}
// 	public double getPrice() {
// 		return price;
// 	}
// 	public void setPrice(double price) {
// 		this.price = price;
// 	}
// 
// }


import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.planetary.pricing.MockPriceUtil;
import org.planetary.pricing.PriceMap;

package com.evegadgets.gadgets.planetary.pricing;



@RunWith(MockitoJUnitRunner.class)
public class MockPriceUtilTest {
	
	@Test
	public void testGetPriceMap(){
		List<Integer> typeList = new ArrayList<Integer>();
		typeList.add(2393);
		typeList.add(2396);

// Path: planetary/src/main/java/org/planetary/pricing/MockPriceUtil.java
// public class MockPriceUtil {
// 	
// 	private static Properties prop = new Properties();
// 	private static InputStream input = null;
// 	private static String configFile = "src/main/resources/config.properties";
// 	
// 	static{
// 		System.out.println(configFile);
// 		try{
// 			input = new FileInputStream(configFile);
// 			prop.load(input);
// 		}catch(IOException e) { e.printStackTrace();}
// 		finally {
// 			if (input != null) {
// 				try {
// 					input.close();
// 				} catch (IOException e) {
// 					e.printStackTrace();
// 				}
// 			}
// 		}
// 	}
// 	
// 	public static Map<Integer, PriceMap> getPriceMap(List<Integer> typeList, Integer region){
// 		//region doesn't matter atm but will be useful in the future.
// 		Map<Integer, PriceMap> priceMap = new HashMap<Integer, PriceMap>();
// 		for(int typeID: typeList){
// 			int id = typeID;
// 			String quantString = prop.getProperty(String.valueOf(typeID) + "q");
// 			String priceString = prop.getProperty(String.valueOf(typeID) + "b");
// 			//b for buy, not p for price
// 			try{
// 				priceMap.put(id, new PriceMap(id, Integer.valueOf(quantString), 
// 						Double.valueOf(priceString)));
// 			} catch(Exception e){
// 				System.out.println("ERROR: MockPriceUtil | String parsing failed at <" 
// 						+ quantString + " | " + priceString + "> with message: " + e.getMessage());
// 			}
// 		}
// 		return priceMap;
// 	}
// 	
// 	//this is old stuff. Salvaged this code from a reprocessing calculator, this is leftover. 
// 	public static HashMap<Integer, Double> getPriceMap2(List<Materials> componentList){
// 		HashMap<Integer, Double> priceMap = new HashMap<Integer, Double>();
// 		for(Materials materials: componentList){
// 			Integer id = materials.getTypeID();
// 			String price = prop.getProperty(String.valueOf(id));
// 			if(price != null){
// 				priceMap.put(id, Double.parseDouble(price));
// 			}
// 			else{
// 				System.out.println("Price for typeID not found: " + id);
// //				priceMap.put(id, null);
// 			}
// 		}
// 		return priceMap;
// 	}
// 	
// 	
// 	
// 
// }
// 
// Path: planetary/src/main/java/org/planetary/pricing/PriceMap.java
// public class PriceMap {
// 	private int id;
// 	private int quantity;
// 	private double price;
// 	
// 	public PriceMap(int id, int quantity, double price){
// 		this.id = id;
// 		this.quantity = quantity;
// 		this.price = price;
// 	}
// 	public int getId() {
// 		return id;
// 	}
// 	public void setId(int id) {
// 		this.id = id;
// 	}
// 	public int getQuantity() {
// 		return quantity;
// 	}
// 	public void setQuantity(int quantity) {
// 		this.quantity = quantity;
// 	}
// 	public double getPrice() {
// 		return price;
// 	}
// 	public void setPrice(double price) {
// 		this.price = price;
// 	}
// 
// }


// Path: planetary/src/test/java/com/evegadgets/gadgets/planetary/pricing/MockPriceUtilTest.java
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.planetary.pricing.MockPriceUtil;
import org.planetary.pricing.PriceMap;

package com.evegadgets.gadgets.planetary.pricing;



@RunWith(MockitoJUnitRunner.class)
public class MockPriceUtilTest {
	
	@Test
	public void testGetPriceMap(){
		List<Integer> typeList = new ArrayList<Integer>();
		typeList.add(2393);
		typeList.add(2396);

		Map<Integer, PriceMap> result = MockPriceUtil.getPriceMap(typeList, null);
