Search:

Type: Posts; User: forever_man; Keyword(s):

Search: Search took 0.02 seconds.

  1. Thank you for your reply, lenzenc. Now i...

    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...
  2. How do you do that, could you give me some...

    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...
  3. Confusion about testing three layer and domain model

    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...
  4. I'm very sorry.I have forgotten to apply...

    I'm very sorry.I have forgotten to apply transaction manager to the service method.Thank you, yatesco.
  5. Just let the example be general and "doSomething"...

    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...
  6. Thanks you for your helps. It seems that the...

    Thanks you for your helps.
    It seems that the problem is due to the incorret context locations:
    protected String[] getConfigLocations() {

    return new String[]...
  7. Confusion with Hibernate Session/Transaction life cycle

    Hi:
    I have a confusion with session/transaction life cycle(with hibernate).For example, if there
    is a service method called doSomething,

    OneServiceImpl {
    doSomething() {
    ...
  8. Hi, Try the following

    Hi,
    Try the following
    <property name="mappingDirectoryLocations">
    <list>
    <value>classpath:/org/companyName/model</value>
    </list>
    </property>
  9. how to use AbstractTransactionalSpringContextTests

    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,...
  10. Replies
    2
    Views
    1,005

    Exception handling problem

    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...
  11. Replies
    2
    Views
    903

    design confusion

    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...
Results 1 to 11 of 11