ginere / ginere-jdbc-oracle

Plain JDBC DAO Framework for Oracle
0 stars 0 forks source link

Include a testing function that will also test if the service is null. #2

Open ginere opened 10 years ago

ginere commented 10 years ago

When using Spring, we need to verify that all the beans was been correctly inserted before verify that the service works. Something like :

    if (mailHandler == null) {
           log.fatal("Spring initializatin error, mailHandler:" + mailHandler
                  + "parameterDAO:" + parameterDAO);
        return false;
    }
    if (!test(mailHandler)) {
        log.fatal("Error testing the mail");
    }

It could be possible to made same function like:

    public static TestResult test(String systemToTestName,TestInterface serviceToTest);