Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
chris.ditcher authored and chris.ditcher committed Jul 24, 2024
1 parent bc30689 commit d4a04fb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package ca.bc.gov.educ.api.trax.service;

import ca.bc.gov.educ.api.trax.service.institute.SchoolService;
import ca.bc.gov.educ.api.trax.support.TestUtils;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.mock.mockito.MockBean;

import static org.assertj.core.api.Assertions.fail;

Expand All @@ -13,6 +15,9 @@ public class SchoolContactUpdatedServiceTest extends BaseReplicationServiceTest
@Autowired
private SchoolContactUpdatedService schoolContactUpdatedService;

@MockBean
private SchoolService schoolServiceMock;

@Test
public void testProcessEvent_givenUPDATE_SCHOOL_CONTACT_Event_shouldProcessEvent() throws JsonProcessingException {
final var request = TestUtils.createSchoolContact();
Expand Down

0 comments on commit d4a04fb

Please sign in to comment.