Examples of test()


Examples of com.google.gwt.regexp.shared.RegExp.test()

     * @return true if path refers to UI element, false otherwise
     */
    public static boolean isUIElement(String path) {
        String regex = "^\\/{0,2}(com\\.vaadin\\.ui\\.)?V?UI[\\/\\[]?";
        RegExp regexp = RegExp.compile(regex);
        return regexp.test(path);
    }

    /**
     * Checks if path refers to vaadin Notification element
     * com.vaadin.ui.Notification.
 
View Full Code Here

Examples of com.helger.jcodemodel.JForLoop.test()

        void appendNotNullValue(AbstractJType type, IJExpression value) {
            if (type.isArray()) {
                VariableNameSource localNames = nameSource.forBlock();
                JForLoop _for = body._for();
                JVar i = _for.init(types._int, localNames.get("i"), JExpr.lit(0));
                _for.test(i.lt(value.ref("length")));
                _for.update(i.incr());
                Body forBody = new Body(result, _for.body(), localNames);
                if (type.elementType().isReference())
                    forBody.appendNullableValue(type.elementType(), value.component(i));
                else
View Full Code Here

Examples of com.jpetrak.gate.stringannotation.extendedgazetteer2.trie3.StoreStates.test()

  @Test
  public void testStoreStates1() {
    StoreArrayOfCharArrays backing = new StoreArrayOfCharArrays();
    StoreStates store = new StoreStates(backing);
    store.test();
    // creating a StoreStates object also creates the initial state, so the first
    // index must be 5
    int s1 = store.newCharMapState();
    assertEquals(5,s1);
    // also the initial state must have index 0
View Full Code Here

Examples of com.kylin.jbosscache.custom.service.JBossCacheService.test()

public class JBossCacheServiceClientTest extends ClientBase {

  public void test() throws Exception {

    JBossCacheService service = (JBossCacheService) getContext("127.0.0.1").lookup(STR_JNDI);
    service.test();
  }
 
  public static void main(String[] args) throws Exception {
    new JBossCacheServiceClientTest().test();
  }
View Full Code Here

Examples of com.l2jfrozen.gameserver.skills.conditions.Condition.test()

    {
      env.target = (L2Character) target;
    }

    env.skill = this;
    if(!preCondition.test(env))
    {
      String msg = preCondition.getMessage();
      if(msg != null)
      {
        SystemMessage sm = new SystemMessage(SystemMessageId.S1_S2);
View Full Code Here

Examples of com.nr.ran.Primpolytest.test()

    // Test Primpolytest
    System.out.println("Testing Primpolytest");

    Primpolytest ptest = new Primpolytest();
    for (i=0;i<N;i++) {
      nflag=ptest.test(pp[i]);
      localflag = localflag || nflag==0;
    }
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Primpolytest: A known primitive polynomial was not identified as such.");
View Full Code Here

Examples of com.sun.codemodel.JForLoop.test()

      JVar list = body.decl(fieldOutline.getRawType(), "list", JExpr._this().invoke("get" + propertyName));
      JConditional _ifListIsTooSmall = body._if(list.invoke("size").lte(index));
      JBlock _ifListIsTooSmallThen = _ifListIsTooSmall._then();
      JForLoop _for = _ifListIsTooSmallThen._for();
      JVar i = _for.init(INT, "i", list.invoke("size"));
      _for.test(i.lte(index));
      _for.update(i.incr());
      _for.body().invoke(list, "add").arg(JExpr._null());

      JVar element = body.decl(elementClass, "value", list.invoke("get").arg(index));
      JConditional _ifElementIsNull = body._if(element.eq(JExpr._null()));
View Full Code Here

Examples of com.sun.codemodel.internal.JForLoop.test()

                    codeModel.ref(exposedType.erasure().fullName()),
                    $len)));

        JForLoop _for = $setAll.body()._for();
        JVar $i = _for.init( codeModel.INT, "i", JExpr.lit(0) );
        _for.test( JOp.lt($i,$len) );
        _for.update( $i.incr() );
        _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));

        writer.javadoc().addParam($value)
            .append("allowed objects are\n")
View Full Code Here

Examples of complex.sfx2.standalonedocinfo.StandaloneDocumentInfoTest.test()

        m_xMSF = null;
    }
   
    @Test public void ExecuteTest01() {
        StandaloneDocumentInfoTest aTest = new Test01 (m_xMSF);
        assertTrue( "Test01 failed!", aTest.test() );
    }



View Full Code Here

Examples of complex.sfx2.standalonedocinfo.Test01.test()

        m_xMSF = null;
    }
   
    @Test public void ExecuteTest01() {
        StandaloneDocumentInfoTest aTest = new Test01 (m_xMSF);
        assertTrue( "Test01 failed!", aTest.test() );
    }



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.