The Spring Framework 3.2 M1 milestone was released today. Regrettably, spring-test-mvc does not seem to be included in that release. I tried to add the following lines to my pom:
<repositories>...
Type: Posts; User: matsev; Keyword(s):
The Spring Framework 3.2 M1 milestone was released today. Regrettably, spring-test-mvc does not seem to be included in that release. I tried to add the following lines to my pom:
<repositories>...
In chapter Domain Object Security (ACLs) Spring Security 3.1 documentation, ACL is described. In the second paragraph, there is a pet clinic example: and in the following paragraphs different...
H2 has a range of compatibility modes for various other databases such as MS SQL Server, MySQL, Oracle, etc that support different SQL dialects. However, when setting up an embedded database in...
Thanks!
I failed to see the flush() method of the entity manager. That's why things became complex, and that's why I wrote the question.
What is the preferred way to get the hibernate session so it can be flushed when testing?
According to the reference manual (scroll down), one should always flush() the hibernate session when...
Someone suggested that you can use the EntityManager and then get a session from there:
@PersistenceContext
EntityManager entityManager;
void someMethod() {
Session session =...
Apparently, the order of the definitions in the XML config matters. By first creating the mock instance and then scan for components, the tests pass.
Alternatively, wrapping EasyMock in a...
I have a problem that seems really strange to me.
I have the following setup
An interface:
package com.example;
public interface SomeDependency {
}