Package test.aop

Source Code of test.aop.TestAop

package test.aop;

import modelet.model.Model;
import modelet.model.paging.PagingElement;

import org.junit.Test;

import util.ApplicationContextHelper;


public class TestAop {

  @Test
  public void test1() {
   
    IHello ihello = ApplicationContextHelper.getBean("helloTeller");
    ihello.hello("Matt");
    ihello.say("good night");
   
    ihello = ApplicationContextHelper.getBean("helloSpeaker");
    ihello.hello("Matt");
    ihello.say("good night");
   
  }
 
  @Test
  public void test2() {
   
    Model model = ApplicationContextHelper.getBean("modelFindBeforeProxy");
    PagingElement pagingElement = ApplicationContextHelper.getBean("pagingElement");
    model.find("select * from sysusers", null);
    model.findWithPaging("select * from sysusers", null, pagingElement);
  }
}
TOP

Related Classes of test.aop.TestAop

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.