Examples of test()


Examples of org.apache.tuscany.sca.extensibility.test.TestInterface.test()

        Assert.assertEquals(System.identityHashCode(ti), ti.hashCode());
        ServiceHelper.start(ti);
        ServiceHelper.stop(ti);
        QName name = ti.getArtifactType();
        Assert.assertEquals(new QName("http://sample", "Test2"), name);
        String str = ti.test("ABC");
        Assert.assertEquals("Test 2: ABC", str);
        ServiceHelper.stop(ti);
    }
}
View Full Code Here

Examples of org.fnlp.nlp.parser.dep.analysis.AnalysisTest.test()

    System.out.printf("total time:\t%.2f(s)\n", time);
    System.out.printf("average speed:\t%.4f(s/word)\t%.4f(s/sent)",  total
        / time, totsent / time);
    System.out.println();
    AnalysisTest at = new AnalysisTest();
    at.test(resultFile);
    /*System.out.printf("accuracy(depClass):\t%.8f\ttotal(words):\t%d\n",  1.0-1.0
        * dError / total, total);
    System.out.printf("accuracy(heads):\t%.8f\ttotal(words):\t%d\n",  1.0-1.0
        * error / total, total);
    System.out.printf("accuracy(sents):\t%.8f\ttotal(sents):\t%d\n", 1.0-1.0
View Full Code Here

Examples of org.fnlp.nlp.parser.dep.train.JointParerTester.test()

  private static void eval() throws Exception{

    File modelF = new File(model);
    bw.println("模型大小:"+modelF.length()/1000000.0);
    JointParerTester tester  = new JointParerTester(model);
    tester.test(testfile, output, "UTF8");
  }

}
View Full Code Here

Examples of org.gatein.wci.spi.callbacks.ExceptionCallback.test()

         ServletContextDispatcher dispatcher = new ServletContextDispatcher(req, resp, container);
         DriverResponse response = cb1.test(null, dispatcher);
         response = cb2.test(response, dispatcher);
         response = cb3.test(response, dispatcher);
         response = cb4.test(response, dispatcher);
         response = cb5.test(response, dispatcher);

         //
         if (response != null)
         {
            return response;
View Full Code Here

Examples of org.gatein.wci.spi.callbacks.NormalCallback.test()

         IOException ioe = new IOException();
         ExceptionCallback cb5 = new ExceptionCallback(appContext, ioe, ioe);

         //
         ServletContextDispatcher dispatcher = new ServletContextDispatcher(req, resp, container);
         DriverResponse response = cb1.test(null, dispatcher);
         response = cb2.test(response, dispatcher);
         response = cb3.test(response, dispatcher);
         response = cb4.test(response, dispatcher);
         response = cb5.test(response, dispatcher);
View Full Code Here

Examples of org.h2.test.TestBase.test()

     */
    public static void main(String... a) throws Exception {
        // run using -javaagent:ext/h2-1.2.139.jar
        TestBase test = TestBase.createCaller().init();
        test.config.traceTest = true;
        test.test();
    }

    public void test() throws SQLException {
        testCompare();
        for (int i = 0; i < Value.TYPE_COUNT; i++) {
View Full Code Here

Examples of org.hisrc.jscm.codemodel.statement.JSForVarStatement.test()

      JSForVarStatement _forVar0 = body.forVar("x0");
      Assert.assertNull(_forVar0.getExpression());
      JSVariable x0 = _forVar0.getVariable();
      _forVar0.comma("x1").comma("x2", codeModel.integer(10));
      _forVar0.test(x0.lt(codeModel.integer(5))).update(x0.postIncr())
          .expression(y.plusAssign(x0));

      JSForVarStatement _forVar1 = body
          .forVar("x1", codeModel.integer(0));
      Assert.assertNotNull(_forVar1.getExpression());
View Full Code Here

Examples of org.jasig.portal.groups.pags.GroupDefinition.test()

                boolean testPassed = true;
                for (Iterator<IEntityGroup> i=allParents.iterator(); i.hasNext() && testPassed;)
                {
                    parentGroup = i.next();
                    GroupDefinition parentGroupDef = (GroupDefinition) convertEntityToGroupDef(parentGroup);
                    testPassed = parentGroupDef.test(person);
                }
               
                if (!testPassed && logger.isWarnEnabled()) {
                    StringBuffer sb = new StringBuffer();
                    sb.append("PAGS group=").append(group.getKey());
View Full Code Here

Examples of org.jasig.portal.groups.pags.testers.IntegerEQTester.test()

    msg = "Testing " + tester2;
    assertTrue(msg, tester2.test(newPerson));
    msg = "Testing " + tester3;
    assertTrue(msg, tester3.test(newPerson));
    msg = "Testing " + tester4;
    assertFalse(msg, tester4.test(newPerson));

    print("Success!");
    print(CR + "***** LEAVING PAGSTester.testIntegerEQTester() *****" + CR);

}
View Full Code Here

Examples of org.jasig.portal.groups.pags.testers.IntegerGETester.test()

    msg = "Testing " + tester3;
    assertFalse(msg, tester3.test(newPerson));
    msg = "Testing " + tester4;
    assertTrue(msg, tester4.test(newPerson));
    msg = "Testing " + tester5;
    assertFalse(msg, tester5.test(newPerson));

    print("Success!");
    print(CR + "***** LEAVING PAGSTester.testIntegerGETester() *****" + CR);

}
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.