Package com.graphaware.runtime.spring

Source Code of com.graphaware.runtime.spring.SpringIntegrationTest

package com.graphaware.runtime.spring;

import com.graphaware.module.changefeed.io.GraphChangeReader;
import org.junit.Ignore;
import org.junit.Test;
import org.neo4j.graphdb.GraphDatabaseService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import static org.junit.Assert.assertNotNull;

/**
* Integration test for Spring.
*/
public class SpringIntegrationTest {

    @Test
    public void changeFeedShouldWorkWithSpring() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);

        assertNotNull(context.getBean(GraphDatabaseService.class));
        assertNotNull(context.getBean(GraphChangeReader.class));

        context.destroy();
    }
}
TOP

Related Classes of com.graphaware.runtime.spring.SpringIntegrationTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.