Source code
package com.bobohe.test01;
import com.bobohe.test01.App;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest extends TestCase {
public void testApp() {
BeanFactory bf = new ClassPathXmlApplicationContext("ApplicationContext.xml");
AppInterface at = (AppInterface) bf.getBean("app");
at.testAspectJ("real params");
System.out.println(at.getClass());
assertTrue(true);
}
} |
|