springboot2.0 after junit

Only need to introduce:

<dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>

Unit tests can be:

/**
* Test class
*/
public class App {

   @Test
   public  void Test () {
        // audiences 
       UserDao target = new new UserDao ();

       //代理对象
       UserDao proxy = (UserDao)new ProxyFactory(target).getProxyInstance();

       // method to perform the proxy object 
       proxy.save ();
   }
}

 

Guess you like

Origin www.cnblogs.com/leeego-123/p/11903526.html