Comments (4)
Hey, thanks for reporting?
There's already a Matchers.any(Class)
- did you see it? If so, can describe what problem are you trying to solve. Thanks!
from mockito.
Just fixing the original report:
Or maybe have a Type
class, something like guice's Key
. Ex: any(new Key < ImmutableSet < Long > >())
.
@szczepiq:
Not having to put @SuppressWarning("unchecked")
You cannot type any(ImmutableSet < Long >.class)
.
from mockito.
Oh, I get it now, thanks
from mockito.
Changes like that will be reported in #194. Closing, thanks for reporting
from mockito.
Related Issues (20)
- `@Captor` test parameters don't work with primitive type arguments HOT 1
- And a new lightweight mockito extension HOT 2
- How to mock private static method in Mockito HOT 1
- Release job is broken on out-of-date publish plugin HOT 5
- Method `Only.verify` throws `NullPointerException`
- Is `Boolean.TRUE` really equal to `true` ? HOT 2
- Mockito is calling real function instead of calling mocked function
- Mockito bom missing artifact in maven central for java21 HOT 3
- Unable to @InjectMocks on instance of android.app.Activity HOT 1
- Mockito's deep-stub mocking doesn't do well when lambda arguments are involved
- Adding @MockitoSettings to field with @RegisterExtension makes test fail with PreconditionViolationException
- Adding @MockitoSettings to class changes order of extensions in @ExtendWith
- MockSettings.strictness() not observed HOT 2
- Mockito verify message not accurate if type is fields are of Object
- when does not throw MissingMethodInvocationException HOT 1
- Spy annotation does not seem to work after switching from Mockito 4.8.1 to 5.10.0 HOT 1
- `mockStatic` fails with `class redefinition failed: invalid class` HOT 5
- mockito
- Field with generics is not injected using @InjectMocks HOT 1
- Possible race condition HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mockito.