Examples of match()


Examples of dijjer.io.comm.MessageFilter.match()

    Message m2 = Message.decodeFromPacket(dp);
    System.out.println("Decoded: " + m2);
    MessageFilter filter1 = MessageFilter.create(1000, request).setField("string", "abacus");
    MessageFilter filter2 = MessageFilter.create(1000, request).setField("string", "gnirts");
    assertFalse(filter1.match(m2));
    assertTrue(filter2.match(m2));

    request.unregister();
   
    MessageType shortRequest = new MessageType("Request");
    shortRequest.addField("boolean", Boolean.class);

Examples of edu.brown.cs.iolog.IOSequenceMatcher.match()

        initTest("readBtrace1", "readJava1");
        IOSequenceMatcher matcher = new IOSequenceMatcher(m_arrEventTimeBtrace,
                m_arrEventTypeBtrace,
                m_arrEventTimeJava,
                m_arrEventTypeJava);
        double dblResult = matcher.match();
        assertEquals(matcher.getTotalBtraceIOTime(),15);
        assertEquals(matcher.getTotalJavaIOTime(),13);
        assertEquals(matcher.getDiscrepancy(),10);
        assertTrue((dblResult>0.71)&&(dblResult < 0.72));
    }

Examples of edu.umd.cs.findbugs.filter.Filter.match()

    //    @SuppressWarnings({ "SimplifiableIfStatement" })
    boolean shouldDisplayIssue(BugInstance b) {
        Project project = getProject();
        Filter suppressionFilter = project.getSuppressionFilter();
        if (null == getBugCollection() || suppressionFilter.match(b)) {
            return false;
        }
        return viewFilter.show(b);
    }

Examples of edu.umd.cs.findbugs.filter.Matcher.match()

    @Test
    public void invertMatcherShouldNegateTheOriginalMatchingResult() {
        BugInstance bug = new BugInstance("UUF_UNUSED_FIELD", 0);
        Matcher originalMatcher = FilterFactory.makeMatcher(asList(Sortables.BUGCODE), bug);

        assertTrue("Original matcher should match bug.", originalMatcher.match(bug));

        Matcher notMatcher = FilterFactory.invertMatcher(originalMatcher);
        assertTrue("Should return an instance of NotMatcher.", notMatcher instanceof NotMatcher);
        assertFalse("Inverted matcher should now not match.", notMatcher.match(bug));
    }

Examples of er.chronic.handlers.Handler.match()

    Handler handler = new Handler(new DummyHandler(), new TagPattern(Repeater.class));
    List<Token> tokens = new LinkedList<Token>();
    tokens.add(new Token("friday"));
    tokens.get(0).tag(new RepeaterDayName(RepeaterDayName.DayName.FRIDAY));
   
    assertTrue(handler.match(tokens, Handler.definitions(_options)));
   
    tokens.add(new Token("afternoon"));
    tokens.get(1).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.AFTERNOON));
   
    assertFalse(handler.match(tokens, Handler.definitions(_options)));

Examples of erjang.m.ets.EMatchSpec.match()

      }
    } else {
      throw ERT.badarg(term, matchSpec, how);
    }
   
    EObject res = spec.match(term);
    if (res == null) {
      return ETuple.make(ERT.am_ok, ERT.FALSE, ERT.NIL, ERT.NIL);
    } else {
      return ETuple.make(ERT.am_ok, ERT.TRUE, ERT.NIL, ERT.NIL);
    }

Examples of flex.messaging.services.messaging.selector.JMSSelector.match()

    private void testSelector(String selectorExpression, Message msg)
    {
        try
        {
            JMSSelector selector = new JMSSelector(selectorExpression);
            selector.match(msg);
        }
        catch (Exception e)
        {
            ServiceException se = new ServiceException();
            se.setMessage(BAD_SELECTOR, new Object[] {selectorExpression});

Examples of fr.imag.adele.apam.Instance.match()

  String expression = "(manufacturer=philips)";
  Boolean result = true;

  Assert.assertTrue(String.format(messageTemplate, expression, result,
    manufacturer, currentVoltage, voltage), philipsSwitch
    .match(expression));

  expression = "(voltage=110)";
  result = true;

Examples of fr.imag.adele.apam.util.ApamFilter.match()

    }
    ApamFilter f = ApamFilter.newInstance(goal);
    if (f == null) {
      return false;
    }
    return goal == null || f.match(this.getAllProperties());
  }

  @Override
  public boolean matchRelation(RelToResolve dep) {
    return dep.matchRelation(this);

Examples of games.stendhal.common.parser.CaseInsensitiveExprMatcher.match()

    final Expression e2 = new Expression("abc", "VER");
    final Expression e3 = new Expression("ab", "VER");
    final Expression e4 = new Expression("abc", "SUB");
    final Expression e5 = new Expression("X", "SUB");

    assertTrue(matcher.match(e1, e2));
    assertFalse(matcher.match(e1, e3));
    assertTrue(matcher.match(e1, e4));
    assertFalse(matcher.match(e1, e5));
    assertFalse(matcher.match(e4, e5));
  }
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.