Examples of manage()


Examples of business.entities.Manager.manage()

    employees.add(manager);
    employees.add(assistant);
   
    manager.setAssistant(assistant);
    manager.manage();
   
    System.out.println(manager.getSalary());
    System.out.println(assistant.getSalary());
   
    manager.charge();
View Full Code Here

Examples of com.changestuffs.server.servlets.impl.IServletManager.manage()

  @Override
  protected void doPost(HttpServletRequest req, HttpServletResponse resp)
      throws ServletException, IOException {
    IServletManager manager = getManager(req);
    log.info("Instance: " + manager);
    manager.manage(req, resp);
  }

  IServletManager getManager(HttpServletRequest req) {
    IServletManager manager = injector.getInstance(Key.get(IServletManager.class, Names.named(req.getServletPath())));
View Full Code Here

Examples of com.changestuffs.server.servlets.impl.RedirectImpl.manage()

    HttpServletRequest req = mock(HttpServletRequest.class);
    when(req.getParameterMap()).thenReturn(new HashMap<String,String[]>());
    when(req.getRequestURL()).thenReturn(new StringBuffer("changestuffs/anyuri"));
    when(req.getRequestURI()).thenReturn("anyuri");
   
    register.manage(req, mock(HttpServletResponse.class));
    User fromDb = appEntity.find(User.class, user.getEmail());
    assertEquals(authDomain, fromDb.getAuthDomain());
    assertEquals(true, fromDb.isReceiveEmails());
    assertNotSame(user.getUserId(), fromDb.getUserId());
    assertEquals(1, fromDb.getPendingFriends().size());
View Full Code Here

Examples of com.thoughtworks.inproctester.jerseytester.webdriver.JerseyClientHtmlunitDriver.manage()

    @Test
    public void shouldReadCookiesFromRequest() {
        WebDriver webDriver = new JerseyClientHtmlunitDriver(client);
        webDriver.get("http://localhost");
        webDriver.manage().addCookie(new Cookie("cookieone", "valueone", "localhost", "/", null));
        webDriver.get("http://localhost");
        assertThat(webDriver.getTitle(), is("Status"));
        assertThat(webDriver.findElement(By.id("cookie_header.value")).getText(), is("cookieone=valueone;"));
    }
View Full Code Here

Examples of com.thoughtworks.inproctester.jerseytester.webdriver.JerseyClientHtmlunitDriver.manage()

    @Test
    public void shouldReadCookiesFromInChildPage() {
        WebDriver webDriver = new JerseyClientHtmlunitDriver(client);
        webDriver.get("http://localhost");
        webDriver.manage().addCookie(new Cookie("cookieone", "valueone", "localhost", "/", null));
        webDriver.get("http://localhost/cookie");
        assertThat(webDriver.getTitle(), is("Cookie"));
        assertThat(webDriver.findElement(By.id("cookie_header.value")).getText(), is("cookieone=valueone;"));
    }
View Full Code Here

Examples of com.thoughtworks.inproctester.jerseytester.webdriver.JerseyClientHtmlunitDriver.manage()

    @Test
    public void shouldNotSeeCookieFromDifferentDomain() {
        WebDriver webDriver = new JerseyClientHtmlunitDriver(client);
        webDriver.get("http://localhost");
        webDriver.manage().addCookie(new Cookie("cookieone", "valueone", "localhost", "/", null));
        webDriver.get("http://thoughtworks");
        assertThat(webDriver.getTitle(), is("Status"));
        assertThat(webDriver.findElement(By.id("cookie_header.value")).getText(), is(""));
    }
View Full Code Here

Examples of com.thoughtworks.inproctester.jerseytester.webdriver.JerseyClientHtmlunitDriver.manage()

    @Test
    public void shouldNotSeeCookieForDifferentPath() {
        WebDriver webDriver = new JerseyClientHtmlunitDriver(client);
        webDriver.get("http://localhost");
        webDriver.manage().addCookie(new Cookie("cookieone", "valueone", "localhost", "/cookie", null));
        webDriver.get("http://localhost");
        assertThat(webDriver.getTitle(), is("Status"));
        assertThat(webDriver.findElement(By.id("cookie_header.value")).getText(), is(""));
    }
View Full Code Here

Examples of com.thoughtworks.inproctester.webdriver.InProcessHtmlUnitDriver.manage()

    }

    @Test
    public void shouldSupportCookies() {
        WebDriver htmlUnitDriver = new InProcessHtmlUnitDriver(httpAppTester);
        htmlUnitDriver.manage().deleteAllCookies();

        htmlUnitDriver.get("http://localhost/contacts/add");
        htmlUnitDriver.findElement(By.name("contactName")).sendKeys("My Contact");
        htmlUnitDriver.findElement(By.tagName("form")).submit();
View Full Code Here

Examples of io.fabric8.insight.camel.breadcrumb.Breadcrumbs.manage()

        Profiler profiler = new Profiler();
        Breadcrumbs breadcrumbs = new Breadcrumbs();

        CamelContext context = new DefaultCamelContext();
        profiler.manage(context);
        breadcrumbs.manage(context);
        context.addRoutes(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:a")
                        .doTry()
View Full Code Here

Examples of io.fabric8.insight.camel.profiler.Profiler.manage()

    public void testProfilerStrategy() throws Exception {
        Profiler profiler = new Profiler();
        Breadcrumbs breadcrumbs = new Breadcrumbs();

        CamelContext context = new DefaultCamelContext();
        profiler.manage(context);
        breadcrumbs.manage(context);
        context.addRoutes(new RouteBuilder() {
            @Override
            public void configure() throws Exception {
                from("direct:a")
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.