Skip to content

Commit fda7574

Browse files
committed
Add method to test replacement
1 parent 4715174 commit fda7574

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/src/test/java/com/objectcomputing/checkins/services/SettingsServicesImplReplacement.java

+7
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ public Setting findByName(String name) {
5050
return found;
5151
}
5252

53+
@Override
54+
public Setting systemFindByName(String name) {
55+
Setting found = map.get(name);
56+
if(found == null) throw new NotFoundException("Setting with name " + name + " not found.");
57+
return found;
58+
}
59+
5360
@Override
5461
public List<Setting> findAllSettings() {
5562
List<Setting> settings = Arrays.<Setting>stream((Setting[]) map.values().toArray()).toList();

0 commit comments

Comments
 (0)