Skip to main content
Dave's user avatar
Dave's user avatar
Dave's user avatar
Dave
  • Member for 12 years, 9 months
  • Last seen this week
509 votes
11 answers
390k views

Mockito: Trying to spy on method is calling the original method

431 votes
46 answers
1.3m views

Git error when trying to push -- pre-receive hook declined

282 votes
2 answers
141k views

How to preserve line breaks when storing command output to a variable? [duplicate]

276 votes
10 answers
333k views

How do I mock an autowired @Value field in Spring with Mockito?

221 votes
26 answers
270k views

Getting "Skipping JaCoCo execution due to missing execution data file" upon executing JaCoCo

177 votes
11 answers
401k views

How do I force Maven to use my local repository rather than going out to remote repos to retrieve artifacts?

128 votes
4 answers
139k views

"You don't have a SNAPSHOT project in the reactor projects list." when using Jenkins Maven release plugin

122 votes
11 answers
77k views

Getting "CHECKOUT can only be performed on a version resource" when trying to commit using Eclipse subversive plugin

115 votes
4 answers
184k views

How do I convert a org.w3c.dom.Document object to a String?

82 votes
6 answers
127k views

How do I prevent Maven from downloading artifacts every time?

78 votes
3 answers
150k views

Using Mockito, how do I verify a method was a called with a certain argument?

75 votes
1 answer
92k views

How do you reset Spring JUnit application context after a test class dirties it?

70 votes
21 answers
131k views

Eclipse: "'Periodic workspace save.' has encountered a pro‍blem."

61 votes
9 answers
125k views

How do I use Mockito to mock a protected method?

48 votes
3 answers
109k views

How do I clear my Rails file cache?

46 votes
10 answers
131k views

How can I avoid "No test specified" errors in npm?

46 votes
3 answers
67k views

How do I kill a process in MySQL running within Amazon RDS?

45 votes
8 answers
69k views

How do I reset my database state after each unit test without making the whole test a transaction?

42 votes
6 answers
65k views

How do I skip a Maven plugin execution if "-DskipTests" or "-Dmaven.test.skip=true" is specified?

41 votes
5 answers
38k views

Using Spring's mockMvc, how do I check if the returned data contains part of a string?

39 votes
3 answers
4k views

Does Thread.yield() do anything if we have enough processors to service all threads?

38 votes
1 answer
59k views

In jest, how do I use "toHaveBeenCalledWith" and only match part of an object in an array argument?

35 votes
5 answers
114k views

Error when importing Maven-GWT project ("No marketplace entries found to handle gwt-maven-plugin")

33 votes
8 answers
58k views

node.js complaining that "The ChromeDriver could not be found on the current PATH" even though chromedriver is on the path

31 votes
1 answer
15k views

How do I create a Rails migration that updates a foreign key with an on-delete cascade constraint?

30 votes
5 answers
19k views

How do I get an inner class to inherit enclosing class' generic type?

29 votes
11 answers
84k views

Merging two Maps

28 votes
2 answers
39k views

Cure for 'The string "--" is not permitted within comments.' exception?

26 votes
6 answers
24k views

Why can't I deploy from my local repository to a remote Maven repository?

26 votes
5 answers
25k views

How do I solve "django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library" when running PyCharm test?

1
2 3 4 5
59