score:0
Accepted answer
Your problem is that you're using equality in the first parameter and matcher for the second one. Try using matchers for all arguments.
But a bigger problem that I feel here is that you're trying to mock 3rd party library - this is something you should avoid. This would also solve your problem. Here's some extra read about it - TDD best practices: don't mock others
Source: stackoverflow.com
Related Query
- mocking generic method using Mockito and Scala
- Mocking generic scala method in mockito
- Mocking method returning java.util.List using mockito in scala
- Mocking scala method with functional parameter using Mockito
- Difference between using App trait and main method in scala
- How to stub a method call with an implicit matcher in Mockito and Scala
- Mocking Scala void function using Mockito
- using Java generic method from Scala
- Strange deserializing problems with generic types using Scala and Jackson and java.lang.Integer or scala.Int
- Error passing generic values to method using implicit parameter in Scala
- Scala Mockito Guice and Partial Mocking .... methods get called twice
- Scala and Hive: best way to write a generic method that works with all types of Writable
- Possible to make scala require a non-Nothing generic method parameter and return to type-safety
- Mocking out all overlaoded versions of a method in scala mockito
- Initializing and using a field in an abstract generic class in Scala
- Using Sub-Types And Return Types in Scala to Process a Generic Object Into a Specific One
- Pass matchers and values using Mockito using scala
- How do I create a class hierarchy of typed factory method constructors and access them from Scala using abstract types?
- Issue with dropDuplicates() and except() method in Spark using Scala
- Defining a Generic Method in a Trait When Using Algebraic Data Type in Scala
- Scala futures and method call backs using spray routing
- A method in Scala that takes no arguments and uses a generic type
- Scala : Trying to generalize a method using generic types
- How can we mock scala method with generic return type and implicit parameters?
- How to load complex xml files containing more than 1 row tag into dataframe using spark scala and save it as table(note generic solution)
- Scala and mockito to test twilio MessageFactory.create() method
- How to override generic method in scala and call it with reflection
- Invoke a method on a generic type with scala and reflect package
- Mocking Scala Trait using Scala, ScalaTest, and Mocktio
- Verifying Function is called in Spray/Akka Router using Scala and Mockito
More Query from same tag
- Define StructType as input datatype of a Function Spark-Scala 2.11
- Is throwing exceptions in Scala considered a side-effect?
- Abbreviate @specialized
- Line wrapping Scala XML literal
- Genetic algorithm libraries for Scala
- ensimeConfig creates directories java and scala-2.11, which I don't need
- Multi-threaded Nashorn: o.constructor === o.constructor gives false
- Scala Generics vs Any
- Scala: Typed Method that returns a subType
- Generate keywords using Apache Spark and mllib
- Configuration error on Run Dist Play Application
- Best functional way of handling conditional flows
- Syntax sugar: _* for treating Seq as method parameters
- Printing List giving wrong size
- Spark application finished callback
- Scala deserialization: class not found
- Is State monad needed/useful in a language with mutable (local) variables (such as Scala)?
- Why did the Scala compiler get more strict regarding self types in 2.10?
- unable to view data of hive tables after update in spark
- Power operator in Chisel
- Supplying a code block as one of multiple method parameters
- Scala Type Mismatch For Subclasses of The Same Parent
- How to merge two or more columns into one?
- Inconsistent behaviour with Null Type in Scala
- Concurrent networking in Scala
- spark dataframe add a new column with a function returning a string
- log4j duplicate messages when using AsyncAppender
- Joda DateTime Format in Play 2.6 is not working
- Generating recursive structures in scalacheck
- What is and why is the fault that creates the Illegal cyclic reference error in Scala?