Search:

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

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,090

    Solved it myself. I just defined my datasource...

    Solved it myself.

    I just defined my datasource in the factory class as static, which saves my datasource-object for the next testsuite.
  2. Replies
    6
    Views
    1,090

    Is there something I can do to help you helping...

    Is there something I can do to help you helping me :)
  3. Replies
    6
    Views
    1,090

    but all tests in this fail because of the...

    but all tests in this fail because of the recreation of the datasource:



    nearly the same test code just for another dao
  4. Replies
    6
    Views
    1,090

    a sample testfile. works fine when surefire runs...

    a sample testfile. works fine when surefire runs just this


    package test;

    import static org.junit.Assert.*;

    import java.sql.SQLException;

    import javax.annotation.Resource;
  5. Replies
    6
    Views
    1,090

    My implementation of the Beanfactory package...

    My implementation of the Beanfactory


    package test;

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import...
  6. Replies
    6
    Views
    1,090

    My Datasource definition:

    My Datasource definition:


    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
  7. Replies
    6
    Views
    1,090

    Using a BeanFactory to create Database.

    Hi,

    I try to test my dao's like this:

    TestInfrastructure-configuration.xml(attached) is defining my transactionmanager and datasource.

    As you can see I defined a BeanFactory to create my...
  8. Replies
    1
    Views
    1,739

    5,764 INFO []...

    5,764 INFO [] org.springframework.test.context.TestContextManager - @TestExecutionListeners is not present for class [class test.RezepteDaoTest]: using defaults.
    2009-01-01 15:55:06,045 INFO []...
  9. Replies
    1
    Views
    1,739

    Junit/surefire Strange behavior

    Hello,

    First of all I am new to Spring, so please have mercy with me :-)

    I am currently working on a simple project with transactional data access when I noticed some sort of strange behavior. ...
  10. Replies
    7
    Views
    1,275

    You have to give spring the whole class...

    You have to give spring the whole class identifier.

    I guess in your case the identifier for your class is
    com.example.HelloImpl.

    Try writing this in your XML file instead of HelloImpl.
Results 1 to 10 of 12