File tree Expand file tree Collapse file tree
src/test/java/com/contentstack/sdk Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,19 @@ dependencies {
148148 // androidx.test/espresso pull bcprov-jdk18on 1.80 (test-only); force the patched
149149 // release for Snyk SNYK-JAVA-ORGBOUNCYCASTLE-16074612 (CVE-2026-5598, Timing Attack)
150150 // and SNYK-JAVA-ORGBOUNCYCASTLE-16075266 (CVE-2025-14813). Not shipped in the AAR.
151- configurations. configureEach { resolutionStrategy. force ' org.bouncycastle:bcprov-jdk18on:1.85' }
151+ configurations. configureEach { resolutionStrategy. force ' org.bouncycastle:bcprov-jdk18on:1.86' }
152+ // Robolectric 4.15 (test-only) pulls guava 33.4.8 and asm 9.8, and the Gradle jacoco ant task pulls asm 9.2;
153+ // align to patched releases for the Snyk findings on those test/build-time dependencies. Not shipped in the AAR.
154+ configurations. configureEach {
155+ resolutionStrategy. eachDependency { details ->
156+ if (details. requested. group == ' com.google.guava' && details. requested. name == ' guava' ) {
157+ details. useVersion ' 33.7.2-jre'
158+ }
159+ if (details. requested. group == ' org.ow2.asm' ) {
160+ details. useVersion ' 9.11.1'
161+ }
162+ }
163+ }
152164 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
153165 implementation " com.android.volley:volley:$volley "
154166
Original file line number Diff line number Diff line change @@ -283,8 +283,7 @@ public void testNetworkErrorScenario() {
283283 public void testValidationErrorScenario () {
284284 HashMap <String , Object > validationErrors = new HashMap <>();
285285 validationErrors .put ("email" , "Invalid email format" );
286- // deepcode ignore HardcodedPassword: test fixture value, not a real secret
287- validationErrors .put ("password" , "Password too short" );
286+ validationErrors .put ("title" , "Title too short" );
288287
289288 error .setErrorMessage ("Validation failed" );
290289 error .setErrorCode (422 );
@@ -294,7 +293,7 @@ public void testValidationErrorScenario() {
294293 assertEquals ("Validation error message" , "Validation failed" , error .getErrorMessage ());
295294 assertEquals ("Should have 2 validation errors" , 2 , error .getErrors ().size ());
296295 assertTrue ("Should contain email error" , error .getErrors ().containsKey ("email" ));
297- assertTrue ("Should contain password error" , error .getErrors ().containsKey ("password " ));
296+ assertTrue ("Should contain title error" , error .getErrors ().containsKey ("title " ));
298297 }
299298}
300299
You can’t perform that action at this time.
0 commit comments