Examples of SimpleContext


Examples of org.nutz.lang.util.SimpleContext

   *            Map 对象
   *
   * @return 一个新创建的上下文对象
   */
  public static Context context(Map<String, Object> map) {
    return new SimpleContext(map);
  }
View Full Code Here

Examples of org.osjava.sj.SimpleContext

          //noinspection unchecked
          hashtable.put (SimpleContext.SIMPLE_ROOT, directory.getAbsolutePath());
        }
      }
    }
    return new SimpleContext(hashtable);
  }
View Full Code Here

Examples of org.osjava.sj.SimpleContext

    }
    catch (SecurityException se)
    {
      // ignore ..
    }
    return new SimpleContext(hashtable);
  }
View Full Code Here

Examples of waffle.apache.catalina.SimpleContext

    private NegotiateAuthenticator authenticator;

    @Before
    public void setUp() throws LifecycleException {
        this.authenticator = new NegotiateAuthenticator();
        final SimpleContext ctx = Mockito.mock(SimpleContext.class, Mockito.CALLS_REAL_METHODS);
        ctx.setServletContext(Mockito.mock(SimpleServletContext.class, Mockito.CALLS_REAL_METHODS));
        ctx.setPath("/");
        ctx.setName("SimpleContext");
        ctx.setRealm(Mockito.mock(SimpleRealm.class, Mockito.CALLS_REAL_METHODS));
        final SimpleEngine engine = Mockito.mock(SimpleEngine.class, Mockito.CALLS_REAL_METHODS);
        ctx.setParent(engine);
        final SimplePipeline pipeline = Mockito.mock(SimplePipeline.class, Mockito.CALLS_REAL_METHODS);
        pipeline.setValves(new Valve[0]);
        engine.setPipeline(pipeline);
        ctx.setPipeline(pipeline);
        ctx.setAuthenticator(this.authenticator);
        this.authenticator.setContainer(ctx);
        this.authenticator.start();
    }
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.