Package nginx.clojure.wave.MethodDatabase

Examples of nginx.clojure.wave.MethodDatabase.ClassEntry.check()


  public void testBuildClassEntryFamily() throws IOException {
    MethodDatabase db = new MethodDatabase(Thread.currentThread().getContextClassLoader());
    MethodDatabaseUtil.load(db, "nginx/clojure/wave/coroutine-method-db.txt");
    ClassEntry ce = MethodDatabaseUtil.buildClassEntryFamily(db, "nginx/clojure/CatchTest");
    assertEquals(MethodDatabase.SUSPEND_NONE, ce.check("testCatch", "()V"));
    assertEquals(MethodDatabase.SUSPEND_NORMAL, ce.check("run", "()V"));
   
   
   
    ClassEntry ifnce = MethodDatabaseUtil.buildClassEntryFamily(db, Type.getInternalName(MyAF.class));
    assertEquals(MethodDatabase.SUSPEND_FAMILY, db.checkMethodSuspendType(Type.getInternalName(MyAF.class),"invoke()Ljava/lang/Object;", true));
View Full Code Here

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.