@@ -0,0 +1,948 @@
+package com.hitthebits.hacknslash;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport java.util.Map;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class MapComputeTest %7B%0A    private static final String PLAYER = %22deep_web9%22;%0A    private static final int INITIAL_SCORE = 300;%0A    private static final int MULTIPLIER = 2;%0A    private static final int EXPECTED_SCORE = INITIAL_SCORE * MULTIPLIER;%0A    private Map%3CString, Integer%3E scores;%0A%0A    @Before%0A    public void setup() %7B%0A        scores = Factory.createScores();%0A        scores.put(PLAYER, INITIAL_SCORE);%0A    %7D%0A%0A    @Test%0A    public void java7Approach() %7B%0A        scores.put(PLAYER, scores.get(PLAYER) * MULTIPLIER);%0A%0A        assertEquals((int)EXPECTED_SCORE, (int)scores.get(PLAYER));%0A    %7D%0A%0A    @Test%0A    public void java8Approach() %7B%0A        scores.compute(PLAYER, (name, score) -%3E score * MULTIPLIER);%0A%0A        assertEquals((int)EXPECTED_SCORE, (int)scores.get(PLAYER));%0A    %7D%0A%7D%0A

Add MapComputeTest