Skip to content

Android release build failing: Test testDowngradeBiometricToAes_api28 FAILED #328

@aDavidaIsNoOne

Description

@aDavidaIsNoOne

We use a build agent that runs on Ubuntu 1604. My local builds on Windows run fine, but for some reason the unit tests for your package are being run there and are failing.

Test testGetSecurityLevel_NoBiometry_api28 PASSED (13s)
  Test testExtractAesCbc_NoFingerprintConfigured_api23 PASSED (9.2s)
  Test testGetSecurityLevel_NoBiometry_NoSecuredHardware_api28 PASSED
  Test testExtractRsaEcb_EnabledFingerprint_api23 PASSED
  Test testExtractRsaEcb_EnabledFingerprint_api28 PASSED
  Test testGetSecurityLevel_Unspecified_api19 PASSED (5.9s)
  Test testGetSecurityLevel_Unspecified_api21 PASSED (5.4s)
  Test testGetSecurityLevel_Unspecified_api23 PASSED
  Test testGetSecurityLevel_Unspecified_api28 PASSED
  Test testDowngradeBiometricToAes_api28 FAILED

 org.mockito.exceptions.base.MockitoException: 
  No argument value was captured!
  You might have forgotten to use argument.capture() in verify()...
  ...or you used capture() in stubbing but stubbed method was not called.
  Be aware that it is recommended to use capture() only with verify()
  
  Examples of correct argument capturing:
      ArgumentCaptor<Person> argument = ArgumentCaptor.forClass(Person.class);
      verify(mock).doSomething(argument.capture());
      assertEquals("John", argument.getValue().getName());
      at com.oblador.keychain.KeychainModuleTests.testDowngradeBiometricToAes_api28(KeychainModuleTests.java:464)

build.gradle

    ext {
        minSdkVersion = 19
        targetSdkVersion = 29
        compileSdkVersion = 29
        versionName = getMyVersionName()
        versionCode = getMyVersionCode()
    }

android/app/build.gradle

defaultConfig {
        applicationId "com.my.app"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode rootProject.ext.versionCode
        versionName rootProject.ext.versionName
        multiDexEnabled true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions