Last active
August 29, 2015 14:19
-
-
Save kmdupr33/554cc7afe27cdc5e6426 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testCacheUpdate() { | |
//Arrange | |
CalculationCache calcCache = new CalculationCache(); | |
Calculator calculator = new Calculator(); | |
MathNerd mathNerd = new MathNerd(calcCache, calculator); | |
Calculation calcualation = new Calculation("e^2000"); | |
//Act | |
mathNerd.doIntenseCalculationInBackground(calculation, null); | |
//some smelly Thread.sleep() code... | |
//Assert | |
calcCache.contains(calculation); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment