Examples of test()


Examples of de.javawi.jstun.test.BindingLifetimeTest.test()

            boolean result = false;

            try {
                BindingLifetimeTest binding = new BindingLifetimeTest(hostname, port);

                binding.test();

                while (true) {
                    Thread.sleep(5000);
                    if (binding.getLifetime() != -1) {
                        if (binding.isCompleted()) {
View Full Code Here

Examples of de.javawi.jstun.test.DiscoveryTest.test()

                                        try {
                                            // Run the tests and get the
                                            // discovery
                                            // information, where all the
                                            // info is stored...
                                            DiscoveryInfo di = test.test();

                                            candAddress = di.getPublicIP() != null ?
                                                    di.getPublicIP().getHostAddress() : null;

                                            // Get a valid port
View Full Code Here

Examples of gnu.testlet.Testlet.test()

      {
        try
          {
            if (verbose)
              System.out.println("TEST: " + stripPrefix(name));
            t.test(this);
            removeSecurityManager();
          }
        catch (Throwable ex)
          {
           
View Full Code Here

Examples of kg.apc.perfmon.client.Transport.test()

        log.debug("Trying new connector");
        SocketAddress addr = new InetSocketAddress(host, port);
        Transport transport = null;
        try {
            transport = TransportFactory.TCPInstance(addr);
            if (!transport.test()) {
                throw new IOException("Agent is unreachable via TCP");
            }
        } catch (IOException e) {
            log.info("Can't connect TCP transport for host: " + addr.toString(), e);
            boolean useUDP = JMeterUtils.getPropDefault("jmeterPlugin.perfmon.useUDP", false);
View Full Code Here

Examples of net.sf.l2j.gameserver.skills.conditions.Condition.test()

        env.player = activeChar;
        if (target instanceof L2Character) // TODO: object or char?
          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 net.sourceforge.processdash.data.ListData.test()

            return;

        // get a list of the official, acceptable phases in the controlling
        // process definition.
        ListData phaseListSpec = onePmTask.getAcceptableNodeTypes();
        if (phaseListSpec == null || !phaseListSpec.test())
            return;
        List phaseList = phaseListSpec.asList();
        int postmortemPos = phaseList.indexOf("Postmortem");
        if (postmortemPos == -1)
            return;
View Full Code Here

Examples of net.sourceforge.processdash.data.ResultSetData.test()

        SimpleData arg0 = getArg(arguments, 0);
        if (!(arg0 instanceof ResultSetData))
            return null;

        ResultSetData rs = (ResultSetData) arg0;
        if (!rs.test())
            return null;

        List toFind = collapseLists(arguments, 1);
        if (toFind.isEmpty())
            return null;
View Full Code Here

Examples of net.sourceforge.processdash.data.SimpleData.test()

        }
    }

    private boolean testValue(String dataname) {
        SimpleData sd = getValue(dataname);
        return sd != null && sd.test();
    }

    public boolean parseFormData() {
        if (params.containsKey(INPUT_VAL))
            try {
View Full Code Here

Examples of org.apache.cxf.systest.jaxws.cxf5064.SOAPHeaderSEI.test()

        QName name = new QName("http://cxf.apache.org/cxf5064",
            "SOAPHeaderServiceImplService");
        Service service = Service.create(name);
        service.addPort(name, SOAPBinding.SOAP11HTTP_BINDING, ServerMisc.CXF_5064_URL);
        SOAPHeaderSEI port = service.getPort(name, SOAPHeaderSEI.class);
        assertEquals("a-b", port.test(new HeaderObj("a-b")));
       
       
        service = Service.create(url, name);
        port = service.getPort(SOAPHeaderSEI.class);
        assertEquals("a-b", port.test(new HeaderObj("a-b")));
View Full Code Here

Examples of org.apache.etch.interoptester.Prog.test()

  /** @throws Exception */
  @org.junit.Test
  public void parse4() throws Exception
  {
    Prog p = Prog.parse( test, parseXml( "<prog name=\"foo\"/>" ) );
    assertSame( test, p.test() );
    assertEquals( "foo", p.name() );
    assertEquals( 0, p.args().size() );
  }
 
  /** @throws Exception */
 
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.