This commit is contained in:
Gabriele C
2016-05-04 17:26:58 +02:00
parent 39aaef8f8a
commit 5ceabe2146
16 changed files with 57 additions and 62 deletions
@@ -88,6 +88,7 @@ public class CommandPageCreater implements ToolTask {
*
* @return the initializer mock
*/
@SuppressWarnings("unchecked")
private static AuthMeServiceInitializer getMockInitializer() {
AuthMeServiceInitializer initializer = mock(AuthMeServiceInitializer.class);
when(initializer.newInstance(isA(Class.class))).thenAnswer(new Answer<Object>() {
@@ -137,6 +137,7 @@ public class EncryptionMethodInfoGatherer {
return key.cast(map.get(key));
}
@SuppressWarnings("unchecked")
private static AuthMeServiceInitializer createInitializer() {
NewSetting settings = mock(NewSetting.class);
// Return the default value for any property