Search:

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

Search: Search took 0.02 seconds.

  1. Transactions appear to be rolled back, but they are not rolled back in the database.

    PersistenceHelper-context.xml

    <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <!---->
    <property name="driverClassName"...
  2. Turns out each junit test was being run in a...

    Turns out each junit test was being run in a separate jvm. Problem fixed by the earlier suggestions.
  3. I have read the test chapter. I have both of...

    I have read the test chapter.

    I have both of those annotations, but on every test that derives from my baseclass, in which i put those annotations, I still see the following output:



    [10...
  4. Which is accomplished with the...

    Which is accomplished with the @RunWith(SpringJUnit4ClassRunner.class) annotation correct?
  5. Only load a bean once throughout a test suite

    Is this possible? I can provide any source code you want, I just want to know if this is possible.

    I run my test suite using ant and junit.

    Thanks in advance!
  6. “user lacks privilege or object not found” when executing sql script from spring

    I am using Hibernate 3 and Spring 3. I have been trying to populate an in memory database, and I am using Spring to do so. When I try to do this, I am getting lots of frustration, and this stack...
  7. I know the script exists, now the problem I am...

    I know the script exists, now the problem I am having is that spring seems to be reading the B.O.M from the file. Is there a way we can skip the first line of this sql script in spring, or is this...
  8. my pleasure!

    my pleasure!


    <?xml version="1.0" encoding="UTF-8"?>
    <!--@Author: jkoontz
    <!-This is the spring configuration file for test cases.-->
    <beans default-lazy-init="true"...
  9. Adding a version actually helped. I am now...

    Adding a version actually helped. I am now getting this error:

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name...
  10. Please see post below for updated version of the...

    Please see post below for updated version of the situation.


    Done.



    I have tried moving the line, and now I am getting the same error, just now on the line that reads:
  11. in context.xml does not work.

    I want to start an sql script for testing. I need to start it from inside this xml file. I have read using <jdbc:embedded-database> will accomplish this but it does not work. I keep getting the...
Results 1 to 11 of 11