All Downloads are FREE. Search and download functionalities are using the official Maven repository.

be.bagofwords.util.UnitTestApplicationContextFactory Maven / Gradle / Ivy

Go to download

Utility classes that are used in the count-db project and other bow-* projects

There is a newer version: 1.2.0
Show newest version
package be.bagofwords.util;

import be.bagofwords.application.ApplicationContextFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by Koen Deschacht ([email protected]) on 9/4/14.
 */
public class UnitTestApplicationContextFactory implements ApplicationContextFactory {

    @Override
    public AnnotationConfigApplicationContext createApplicationContext() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.getBeanFactory().registerSingleton("applicationContextFactory", this);
        context.scan("be.bagofwords");
        return context;
    }

    @Override
    public String getApplicationName() {
        return "UnitTest";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy