Examples of unSetJNDIContextCustom()


Examples of com.p6spy.engine.spy.P6SpyLoadableOptions.unSetJNDIContextCustom()

  public void testUnSetSpyAPI() {
    final P6SpyLoadableOptions opts = P6SpyOptions.getActiveInstance();
   
    opts.setJNDIContextCustom("foo");
    Assert.assertEquals("foo", opts.getJNDIContextCustom());
    opts.unSetJNDIContextCustom();
    Assert.assertNull(opts.getJNDIContextCustom());
   
    opts.setJNDIContextFactory("fooFactory");
    Assert.assertEquals("fooFactory", opts.getJNDIContextFactory());
    opts.unSetJNDIContextFactory();
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.