You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are no constructors provided for mocking ResourceResponse purpose? Is this a feature planned? Are there any alternatives as of now?
On running the below code.
@Test
def createDatabaseTest(): Unit = {
var database : Database = new Database()
database.setId("randomName")
when(documentClient.createDatabase(any(classOf[Database]), any(classOf[RequestOptions]))).thenReturn(new ResourceResponse[Database](database))
cosmosDbClient.createDatabase("randomName", null)
}
I am getting this exception:
Error:(34, 106) constructor ResourceResponse in class ResourceResponse cannot be accessed in class CosmosDbClientTest
when(documentClient.createDatabase(any(classOf[Database]), any(classOf[RequestOptions]))).thenReturn(new ResourceResponse[Database](database))
The text was updated successfully, but these errors were encountered:
There are no constructors provided for mocking ResourceResponse purpose? Is this a feature planned? Are there any alternatives as of now?
On running the below code.
I am getting this exception:
The text was updated successfully, but these errors were encountered: