Vanda Cabanova
Oct 12, 2018
9:38 am

How to run unitTests

Hello,

 

when knoxsdk.jar and supportlib.jar are added to the project like described in the migraiton tutorial, unit tests cannot run

if I add a gradle config 'testImplementaiton', tests using Knox API classes fail with `java.lang.RuntimeException: Stub!`

How should we configure the project in order to be able to mock Knox API classes in unit tests? 

Similar topics

No similar topics found.
Jenna S.Samsung SEAP Moderator
Oct 16, 2018
11:59 pm

Hello Vanda,

I just want to clarify a few things. Was this working before you migrated to the new SDK? Would you also be able to paste the dependancies from your gradle file. Could you also give us more context about what you want to use mock Knox APIs for.

Best regards,

Jenna