@@ -0,0 +1,946 @@
+package com.brctl.test;%0A%0Aimport com.brctl.domain.Article;%0Aimport com.brctl.service.IArticleService;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.springframework.context.ApplicationContext;%0Aimport org.springframework.context.support.ClassPathXmlApplicationContext;%0A%0Aimport java.util.List;%0A%0A/**%0A * %E6%B2%A1%E6%9C%89%E4%BD%BF%E7%94%A8spring-test%E6%8F%90%E4%BE%9B%E7%9A%84%E6%B3%A8%E8%A7%A3%E7%9A%84%E6%B5%8B%E8%AF%95%E7%B1%BB%0A * Created by duanxiaoxing on 16/12/1.%0A */%0Apublic class ArticleNoSpringTestTester %7B%0A%0A    private IArticleService articleService;%0A%0A    @Before%0A    public void prepare() throws Exception %7B%0A        ApplicationContext ctx = new ClassPathXmlApplicationContext(%22spring-config.xml%22);%0A        // %E9%80%9A%E8%BF%87Class%E7%B1%BB%E5%9E%8B%E7%9A%84%E5%8F%82%E6%95%B0%E8%8E%B7%E5%8F%96Bean%0A        articleService = ctx.getBean(IArticleService.class);%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        List%3CArticle%3E articles = articleService.findAll();%0A        System.out.println();%0A        for(Article article: articles) %7B%0A            System.out.println(article.getAuthor());%0A        %7D%0A    %7D%0A%7D%0A

add tester without spring-test