Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package backend.test;
- import backend.CalcPrice;
- import frontend.Priceprint;
- import java.util.Hashtable;
- public class TestCalcprice {
- public static void main(String[] args) {
- System.out.println("I test CalcPrice, but I also test Printprice(Hashtable, Hashtable, String).");
- Hashtable<String, Double> d = new Hashtable<String, Double>(7);
- Hashtable<String, Double> b;
- CalcPrice c;
- d.put("exchange", 127.23);
- d.put("special", 0.2);
- d.put("hosting", 10.0);
- d.put("shells", 5.0);
- d.put("privacy", 2.0);
- d.put("quotahdd", 5.0);
- d.put("quotaband", 1.5);
- c = new CalcPrice(d);
- b = new Hashtable<String, Double>(c.getBitcoinPrices());
- Priceprint p = new Priceprint(b, d, "for unit test, check with calculator");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement