Skip to content

Commit 983e8b2

Browse files
fix(tests): fix build failures in egov-workflow-v2 and egov-url-shortening
egov-workflow-v2: BusinessServiceRepositoryTest was missing a @MockBean for MultiStateInstanceUtil, causing Spring to fail context initialization when trying to field-inject centralInstanceUtil into BusinessServiceRepository. egov-url-shortening: UrlSorteningApplicationTest hard-coded Jackson's internal deserialization feature bitfield (237020304) which changed to 473998480 in the jackson-databind version pulled by Spring Boot 3.4.5. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9f83afb commit 983e8b2

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

core-services/egov-url-shortening/src/test/java/org/egov/UrlSorteningApplicationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void testGetObjectMapper() {
5050
JsonNodeFactory expectedNodeFactory = actualObjectMapper.getNodeFactory();
5151
assertSame(expectedNodeFactory, deserializationConfig.getNodeFactory());
5252
assertNull(deserializationConfig.getDefaultMergeable());
53-
assertEquals(237020304, deserializationConfig.getDeserializationFeatures());
53+
assertEquals(473998480, deserializationConfig.getDeserializationFeatures());
5454
assertTrue(deserializationConfig.getAttributes() instanceof ContextAttributes.Impl);
5555
assertSame(polymorphicTypeValidator, deserializationConfig.getPolymorphicTypeValidator());
5656
}

core-services/egov-workflow-v2/src/test/java/org/egov/wf/repository/BusinessServiceRepositoryTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.util.HashMap;
99
import java.util.List;
1010

11+
import org.egov.common.utils.MultiStateInstanceUtil;
1112
import org.egov.wf.config.WorkflowConfig;
1213
import org.egov.wf.repository.querybuilder.BusinessServiceQueryBuilder;
1314
import org.egov.wf.repository.rowmapper.BusinessServiceRowMapper;
@@ -45,6 +46,9 @@ class BusinessServiceRepositoryTest {
4546
@MockBean
4647
private WorkflowUtil workflowUtil;
4748

49+
@MockBean
50+
private MultiStateInstanceUtil centralInstanceUtil;
51+
4852

4953
@Test
5054
void testGetBusinessServicesWithnull() throws DataAccessException {

0 commit comments

Comments
 (0)