StackOverflow Questions for Tag: springjunit4classrunner

BjarneSlamon
BjarneSlamon

Reputation: 37

How to test internal workings of a function that returns an object that was mocked?

Score: 1

Views: 70

Answers: 2

Read More
Abhishek-M
Abhishek-M

Reputation: 442

Configurable beans autowired fields are not injected in Spring 6 while running Junit tests

Score: 0

Views: 46

Answers: 1

Read More
tm1701
tm1701

Reputation: 7601

Spring test - how to access a mockbean that was configured in a seperate file?

Score: 1

Views: 39

Answers: 0

Read More
mvlupan
mvlupan

Reputation: 3646

Overriding beans in Integration tests

Score: 134

Views: 168550

Answers: 13

Read More
Paul C
Paul C

Reputation: 8497

How to use spring's MockMultipartHttpServletRequest? Getting "no multipart boundary was found"

Score: 10

Views: 8529

Answers: 7

Read More
andr1337228
andr1337228

Reputation: 23

H2 throws org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "USER" not found

Score: 0

Views: 36

Answers: 0

Read More
Roland Weisleder
Roland Weisleder

Reputation: 10531

What is the best way to test that a spring application context fails to start?

Score: 16

Views: 10700

Answers: 3

Read More
lfmunoz
lfmunoz

Reputation: 912

In Spring Boot, how to reset the metrics registry before each test?

Score: 13

Views: 15135

Answers: 4

Read More
oldcode
oldcode

Reputation: 1711

Spring boot unable to find the test class

Score: 1

Views: 31

Answers: 0

Read More
Harold L. Brown
Harold L. Brown

Reputation: 9976

In Spring Framework tests, how to make PropertySourcesPlaceholderConfigurer search System Properties first?

Score: 0

Views: 32

Answers: 1

Read More
TheBakker
TheBakker

Reputation: 3062

How to write Junit test for mapstruct abstract mapper injected via Spring

Score: 58

Views: 99455

Answers: 10

Read More
Gustavo Ramos
Gustavo Ramos

Reputation: 1394

JUnit Tests: Why is Maven (Surefire) so much slower than running on Eclipse?

Score: 13

Views: 9626

Answers: 3

Read More
Maxim Kozlyuk
Maxim Kozlyuk

Reputation: 21

Call own GET method inside spring unit-test using reactive WebClient

Score: 0

Views: 99

Answers: 0

Read More
Phate
Phate

Reputation: 6622

Undo @Sql after each test

Score: 5

Views: 1993

Answers: 1

Read More
Robert Strauch
Robert Strauch

Reputation: 12906

Connection refused in SpringBootTest with WireMock

Score: 2

Views: 556

Answers: 1

Read More
Kevin
Kevin

Reputation: 774

In a @DataJpaTest, why does an SQL query still get executed even when the entity is already stored in the first-level cache?

Score: 0

Views: 64

Answers: 0

Read More
rasilvap
rasilvap

Reputation: 2159

Spring test expected 400 bat was 404 no found endpoint

Score: -1

Views: 47

Answers: 1

Read More
Egils L
Egils L

Reputation: 3

@SpringBootTest Tests with WebTestClient are broken after spring-boot-starter-parent version 3.2.5 migration to 3.3.3

Score: 0

Views: 766

Answers: 1

Read More
aliopi
aliopi

Reputation: 3842

Spring Boot properties in 'application.yml' not loading from JUnit Test

Score: 73

Views: 155873

Answers: 13

Read More
モブ Mobu
モブ Mobu

Reputation: 29

AssertionError: No value at JSON path "$.title" in Junit Mockito Test

Score: 1

Views: 47

Answers: 1

Read More
PreviousPage 3Next