Thank you for your reply, lenzenc.
Now i understand what you mean by "try mocking the domain model object".In your example, you didn't really mock it, you just call the domain model object instead...
Type: Posts; User: forever_man; Keyword(s):
Thank you for your reply, lenzenc.
Now i understand what you mean by "try mocking the domain model object".In your example, you didn't really mock it, you just call the domain model object instead...
How do you do that, could you give me some example, please?
I think there are two problems:
The first is that domain model object won't be injected to service layer.Because of this, i don't know...
Hi,
I'm a java programmer who is now using TDD and junit. In my current project, we are using webwork/spring/hibernate trioes.And in architecture
view, there is a web controller/ service / dao...
I'm very sorry.I have forgotten to apply transaction manager to the service method.Thank you, yatesco.
Just let the example be general and "doSomething" should be in a qualified class.But i think it doesn't matter. BTW, i have tested a specific example like this, and the assumptions i made is...
Thanks you for your helps.
It seems that the problem is due to the incorret context locations:
protected String[] getConfigLocations() {
return new String[]...
Hi:
I have a confusion with session/transaction life cycle(with hibernate).For example, if there
is a service method called doSomething,
OneServiceImpl {
doSomething() {
...
Hi,
Try the following
<property name="mappingDirectoryLocations">
<list>
<value>classpath:/org/companyName/model</value>
</list>
</property>
Hi:
I want to use AbstractTransactionalSpringContextTests in dao tests to roll back transactions after every test. But i don't know how to use it. Is there any example to use it? And i tried it,...
Hi guys:
I have a confusion with exception handling.I have a method called "validate" in service layer to do some validation.If validation is successful, a validation message will be returned...
Recently, i have been developing a web application using webwork/spring/hibernate. I know that there should be three layers in design
Controller --> Servie --> DAO. And i know that service should be...