| 1 | package com.automationrhapsody.reststub.persistence; | |
| 2 | ||
| 3 | import java.util.HashMap; | |
| 4 | import java.util.Map; | |
| 5 | ||
| 6 | public class AuthDB { | |
| 7 | private static final Map<String, String> AUTH = new HashMap<>(); | |
| 8 | ||
| 9 | static { | |
| 10 | AUTH.put("adminApiKey", "admSecretKey"); | |
| 11 | AUTH.put("userApiKey", "usrSecretKey"); | |
| 12 | } | |
| 13 | ||
| 14 | public static String getSecretKey(String apiKey) { | |
| 15 |
1
1. getSecretKey : mutated return of Object value for com/automationrhapsody/reststub/persistence/AuthDB::getSecretKey to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE |
return AUTH.get(apiKey); |
| 16 | } | |
| 17 | } | |
Mutations | ||
| 15 |
1.1 |