Skip to content

Commit 1bd5589

Browse files
committed
fix test
1 parent 6e0a3a0 commit 1bd5589

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

force-app/nom/classes/NOM_OrgEnhetHelper_Test.cls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,19 +332,19 @@ public class NOM_OrgEnhetHelper_Test {
332332
mock.setStatusCode(200);
333333
mock.setHeader('Content-Type', 'application/json');
334334
Test.setMock(HttpCalloutMock.class, mock);
335-
Map<String, Object> args = new Map<String, Object>{ 'navIdent' => 'testId' };
335+
Map<String, Object> args = new Map<String, Object>{ 'navId' => 'testId' };
336336
Callable helper = (Callable) Type.forName('NOM_OrgEnhetHelper').newInstance();
337-
String result = (String) helper.call('getOfficeUnitForNavIdent', args);
337+
String result = (String) helper.call('getOfficeUnitForNavId', args);
338338
System.assertNotEquals(null, result, 'Expected to get a response');
339339
System.assertEquals('aa333a', result, 'should be Office Unit Id aa333a');
340340
}
341341
@isTest
342342
private static void callableGetOfficeUnitForNavIdentOnException() {
343343
Test.setMock(HttpCalloutMock.class, new NOM_OrgEnhetHelper_Test.CalloutMock());
344-
Map<String, Object> args = new Map<String, Object>{ 'navIdent' => 'testId' };
344+
Map<String, Object> args = new Map<String, Object>{ 'navId' => 'testId' };
345345
Callable helper = (Callable) Type.forName('NOM_OrgEnhetHelper').newInstance();
346346
try {
347-
String result = (String) helper.call('getOfficeUnitForNavIdent', args);
347+
String result = (String) helper.call('getOfficeUnitForNavId', args);
348348
System.assert(true, 'Exception expected but not thrown');
349349
} catch (Exception e) {
350350
System.assertEquals(

0 commit comments

Comments
 (0)