StackOverflow Questions for Tag: jmock

gkephorus
gkephorus

Reputation: 1386

SonarLint not picking up exception throwing inside "instance initializer block" of an anonymous class

Score: 0

Views: 46

Answers: 1

Read More
Leeric
Leeric

Reputation: 41

java.lang.NoSuchMethodError powermock

Score: 4

Views: 11721

Answers: 4

Read More
Mike
Mike

Reputation: 19737

jMock Expectations Not Specified

Score: 2

Views: 8731

Answers: 3

Read More
Roy Marco Aruta
Roy Marco Aruta

Reputation: 715

jMock Mocking Classes and Interface

Score: 6

Views: 12123

Answers: 2

Read More
gkephorus
gkephorus

Reputation: 1386

I cannot mock my MapStruct mapper in Quarkus 3 in combination with jmock ("is in unnamed module of loader")

Score: 0

Views: 131

Answers: 1

Read More
Praveen
Praveen

Reputation: 11

How can I write test cases for @Bean method?

Score: 0

Views: 167

Answers: 1

Read More
CasaDelGato
CasaDelGato

Reputation: 645

unable to use JMock after updating to Java 17

Score: 2

Views: 3591

Answers: 1

Read More
rich
rich

Reputation: 19414

Bringing unit testing to an existing project

Score: 3

Views: 4277

Answers: 6

Read More
gkephorus
gkephorus

Reputation: 1386

Quarkus tests fail while doing mocking with jmock resulting in "No code generation strategy available"

Score: 0

Views: 263

Answers: 1

Read More
Sweeper
Sweeper

Reputation: 273565

How do I simulate the passage of time with java.time.Clock?

Score: 3

Views: 1621

Answers: 1

Read More
Michael Deardeuff
Michael Deardeuff

Reputation: 10707

Does mockito have an equivalent idiom to jMock's States?

Score: 13

Views: 1555

Answers: 2

Read More
buttowski
buttowski

Reputation: 4917

How to mock JdbcTemplate.queryForObject() method

Score: 6

Views: 34595

Answers: 5

Read More
Akshit Gupta
Akshit Gupta

Reputation: 77

Getting Error on Using JMockit: Could not initialize class mockit.coverage.Metrics

Score: 0

Views: 972

Answers: 1

Read More
benzen
benzen

Reputation: 6444

Using jmock how to reuse parameter

Score: 0

Views: 2236

Answers: 3

Read More
dpr
dpr

Reputation: 10972

Assert close is called when using try-with-resource

Score: 2

Views: 1877

Answers: 2

Read More
AhChing11
AhChing11

Reputation: 155

How to check whether a method returns a null?

Score: 0

Views: 2170

Answers: 2

Read More
AhChing11
AhChing11

Reputation: 155

How to i test invalid input in jMock?

Score: 0

Views: 119

Answers: 0

Read More
AhChing11
AhChing11

Reputation: 155

JMock: expected once, never invoked

Score: 0

Views: 1418

Answers: 1

Read More
Maja Piechotka
Maja Piechotka

Reputation: 7216

How to test protected methods of abstract class using JUnit and JMock

Score: 5

Views: 11170

Answers: 3

Read More
sofs1
sofs1

Reputation: 4176

Does Junit/Mockito hold value from actual method return?

Score: 0

Views: 32

Answers: 1

Read More
PreviousPage 1Next