Examples of logon()


Examples of me.kafeitu.demo.activiti.web.identify.UseController.logon()

  @Test
  public void testUserExistInDb() throws Exception {
    UseController c = new UseController();
    c.setIdentityService(identityService);
    MockHttpSession session = new MockHttpSession();
    String view = c.logon("kafeitu", "000000", session);
    assertEquals("redirect:/main/index", view);
    assertNotNull(session.getAttribute("user"));
    User user = (User) session.getAttribute("user");
    assertEquals("kafeitu", user.getId());
  }
View Full Code Here

Examples of me.kafeitu.demo.activiti.web.identify.UseController.logon()

  @Test
  public void testUserNotExistInDb() throws Exception {
    UseController c = new UseController();
    c.setIdentityService(identityService);
    MockHttpSession session = new MockHttpSession();
    String view = c.logon("nothisuser", "000000", session);
    assertEquals("redirect:/login?error=true", view);
  }

}
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoSession.Logon()

    // TODO Auto-generated method stub
    JISystem.setAutoRegisteration(true);
    try {
      JXCdoSession jxCdoSession = new JXCdoSession("localhost",
          "localhost", "vikram", "vikram");
      jxCdoSession.Logon(new JIString("vikram_roopchand").Variant,
          new JIString("Password").Variant, new JIVariant(false),
          new JIVariant(true), new JIVariant(false), new JIVariant(
              false), new JIString(
              "PUNAXCHEMBPIN02.enterprise.corp.com" + "\n"
                  + "vikram_roopchand").Variant);
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoSession.Logon()

      JXCdoSession jxCdoSession = new JXCdoSession(
          ICredentialBag.machinecred_cdoinstalledhost,
          ICredentialBag.machinecred_domain,
          ICredentialBag.machinecred_username,
          ICredentialBag.machinecred_password);
      jxCdoSession.Logon(new JIString(
          ICredentialBag.logoncred_profilename).Variant,
          new JIString(ICredentialBag.logoncred_password).Variant,
          new JIVariant(false), new JIVariant(true), new JIVariant(
              false), new JIVariant(false), new JIString(
              ICredentialBag.logoncred_profileinfo).Variant);
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoSession.Logon()

      JXCdoSession jxCdoSession = new JXCdoSession(
          ICredentialBag.machinecred_cdoinstalledhost,
          ICredentialBag.machinecred_domain,
          ICredentialBag.machinecred_username,
          ICredentialBag.machinecred_password);
      jxCdoSession.Logon(new JIString(
          ICredentialBag.logoncred_profilename).Variant,
          new JIString(ICredentialBag.logoncred_password).Variant,
          new JIVariant(false), new JIVariant(true), new JIVariant(
              false), new JIVariant(false), new JIString(
              ICredentialBag.logoncred_profileinfo).Variant);
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoSession.Logon()

      JXCdoSession jxCdoSession = new JXCdoSession(
          ICredentialBag.machinecred_cdoinstalledhost,
          ICredentialBag.machinecred_domain,
          ICredentialBag.machinecred_username,
          ICredentialBag.machinecred_password);
      jxCdoSession.Logon(new JIString(
          ICredentialBag.logoncred_profilename).Variant,
          new JIString(ICredentialBag.logoncred_password).Variant,
          new JIVariant(false), new JIVariant(true), new JIVariant(
              false), new JIVariant(false), new JIString(
              ICredentialBag.logoncred_profileinfo).Variant);
View Full Code Here

Examples of org.jxchange.client.cdo121.JXCdoSession.Logon()

      JXCdoSession jxCdoSession = new JXCdoSession(
          ICredentialBag.machinecred_cdoinstalledhost,
          ICredentialBag.machinecred_domain,
          ICredentialBag.machinecred_username,
          ICredentialBag.machinecred_password);
      jxCdoSession.Logon(new JIString(
          ICredentialBag.logoncred_profilename).Variant,
          new JIString(ICredentialBag.logoncred_password).Variant,
          new JIVariant(false), new JIVariant(true), new JIVariant(
              false), new JIVariant(false), new JIString(
              ICredentialBag.logoncred_profileinfo).Variant);
View Full Code Here

Examples of org.teiid.client.security.ILogon.logon()

    SocketServerInstanceImpl instance = createInstance(channel);
   
    //no remote server is hooked up, so this will timeout
    ILogon logon = instance.getService(ILogon.class);
    try {
      logon.logon(new Properties());
      fail("Exception expected"); //$NON-NLS-1$
    } catch (TeiidComponentException e) {
      assertTrue(e.getCause().getCause() instanceof TimeoutException);
    }
  }
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.