Advertisement
Guest User

Untitled

a guest
Dec 15th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.35 KB | None | 0 0
  1. @isTest
  2. public class AnimalLocatorTest {
  3.   @isTest public static void AnimalLocatorMock() {
  4.        Test.setMock(HttpCalloutMock.class, new AnimalLocatorMock());
  5.         string result = AnimalLocator.getAnimalNameById(1);
  6.       system.debug(result);
  7.         String expectedResult = 'chicken';
  8.         System.assertEquals(result,expectedResult );
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement