Examples of supports()


Examples of com.asakusafw.testdriver.excel.ExcelRuleExtractor.supports()

     */
    @Test
    public void supports() {
        ExcelRuleExtractor extractor = new LegacyExcelRuleExtractor();
        Sheet sheet = sheet("legacy-rule.xls");
        assertThat(extractor.supports(sheet), is(true));
    }

    /**
     * not supported.
     */
 

Examples of com.asakusafw.testdriver.excel.ExcelRuleExtractor.supports()

     */
    @Test
    public void supports_not() {
        ExcelRuleExtractor extractor = new LegacyExcelRuleExtractor();
        Sheet sheet = sheet("invalid.xls");
        assertThat(extractor.supports(sheet), is(false));
    }

    /**
     * total condition - ignore.
     * @throws Exception if failed

Examples of com.github.ebnew.ki4so.core.authentication.handlers.AuthenticationHandler.supports()

     
    }
   
    //测试情况4,测试当认证管理器中的认证处理器列表不为null,列表有一个认证处理器,但是不支持该凭据的情况。
    AuthenticationHandler handler = Mockito.mock(AuthenticationHandler.class);
    Mockito.when(handler.supports(credential)).thenReturn(false);
    try{
      authenticationHandlers = new ArrayList<AuthenticationHandler>();
      authenticationHandlers.add(handler);
      authenticationManager.setAuthenticationHandlers(authenticationHandlers);
      authenticationManager.authenticate(credential);

Examples of com.github.ebnew.ki4so.core.authentication.resolvers.CredentialToPrincipalResolver.supports()

    handler = Mockito.mock(AuthenticationHandler.class);
    Mockito.when(handler.supports(credential)).thenReturn(true);
    Mockito.when(handler.authenticate(credential)).thenReturn(true);
    CredentialToPrincipalResolver resolver = Mockito.mock(CredentialToPrincipalResolver.class);
    Principal principal = Mockito.mock(Principal.class);
    Mockito.when(resolver.supports(credential)).thenReturn(true);
    Mockito.when(resolver.resolvePrincipal(credential)).thenReturn(principal);
    try{
      authenticationHandlers = new ArrayList<AuthenticationHandler>();
      authenticationHandlers.add(handler);
      authenticationManager.setAuthenticationHandlers(authenticationHandlers);

Examples of com.sun.tools.corba.se.idl.ValueEntry.supports()

    // 3) abstract interfaces
    //
    if (entry instanceof ValueEntry)
    {
      ValueEntry v = (ValueEntry) entry;
      if ((v.supports ().size () == 0) ||
          ((InterfaceEntry) v.supports ().elementAt (0)).isAbstract ()) {
        return;
        }
    }
    if (((InterfaceEntry) entry).isAbstract ()) {

Examples of com.sun.xml.internal.ws.api.message.Packet.supports()

    @Override
    protected Packet getResponse(Packet request, Exception e, WSDLPort port, WSBinding binding) {
        Packet response = super.getResponse(request, e, port, binding);
        if (e instanceof HTTPException) {
            if (response.supports(MessageContext.HTTP_RESPONSE_CODE)) {
                response.put(MessageContext.HTTP_RESPONSE_CODE, ((HTTPException)e).getStatusCode());
            }
        }
        return response;
    }

Examples of com.sun.xml.ws.api.message.Packet.supports()

    @Override
    protected Packet getResponse(Packet request, Exception e, WSDLPort port, WSBinding binding) {
        Packet response = super.getResponse(request, e, port, binding);
        if (e instanceof HTTPException) {
            if (response.supports(MessageContext.HTTP_RESPONSE_CODE)) {
                response.put(MessageContext.HTTP_RESPONSE_CODE, ((HTTPException)e).getStatusCode());
            }
        }
        return response;
    }

Examples of de.willuhn.jameica.hbci.synchronize.SynchronizeEngine.supports()

   
    if (this.offline)
    {
      BeanService service = Application.getBootLoader().getBootable(BeanService.class);
      SynchronizeEngine engine = service.get(SynchronizeEngine.class);
      this.syncAvail = engine.supports(SynchronizeJobKontoauszug.class,konto);
     
      // checken, ob wir Addon-Properties haben
      if (this.syncAvail)
      {
        try

Examples of grails.validation.Constraint.supports()

    }

    public void testConstraintCreation() {
        Constraint validatorConstraint = new ValidatorConstraint();
        assertEquals(ConstrainedProperty.VALIDATOR_CONSTRAINT, validatorConstraint.getName());
        assertTrue(validatorConstraint.supports(TestClass.class));
        assertFalse(validatorConstraint.supports(null));

        validatorConstraint.setOwningClass(TestClass.class);
        validatorConstraint.setPropertyName(PROP_NAME);

Examples of javax.security.jacc.PolicyContextHandler.supports()

    {
      if (key == null)
      throw new IllegalArgumentException("invalid key");
  PolicyContextHandler handler =
      (PolicyContextHandler) handlerTable.get(key);
  if (handler == null || !handler.supports(key))
      throw new IllegalArgumentException("unknown handler key");
 
  java.lang.SecurityManager sm = System.getSecurityManager();
  if (sm != null)
      sm.checkPermission(new SecurityPermission("setPolicy"));
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.