Examples of stop()


Examples of org.apache.curator.test.TestingServer.stop()

            timing.acquireSemaphore(semaphore, 2);
            Assert.assertEquals(discovery.queryForInstances("test").size(), 2);

            KillSession.kill(client.getZookeeperClient().getZooKeeper(), server.getConnectString());
            server.stop();

            server = new TestingServer(server.getPort(), server.getTempDirectory());
            closeables.add(server);

            timing.acquireSemaphore(semaphore, 2);
View Full Code Here

Examples of org.apache.cxf.dosgi.discovery.local.internal.Activator.stop()

       
        a.localDiscovery = EasyMock.createMock(LocalDiscovery.class);
        a.localDiscovery.shutDown();
        EasyMock.expectLastCall();
        EasyMock.replay(a.localDiscovery);
        a.stop(bc);
       
        EasyMock.verify(a.localDiscovery);
    }
}
View Full Code Here

Examples of org.apache.cxf.dosgi.dsw.Activator.stop()

        da.start(bc);
       
        EasyMock.verify(a);
        EasyMock.reset(a);
       
        a.stop();
        EasyMock.expectLastCall().once();

        EasyMock.replay(a);
       
        da.stop(bc);
View Full Code Here

Examples of org.apache.cxf.endpoint.Server.stop()

  logger.info("destroying endpoints..");

  for (Map.Entry<String, Server> element : webservices.entrySet()) {
      String wsUrl = element.getKey();
      Server entrypoint = element.getValue();
      entrypoint.stop();
      logger.info("endpoint {} destroyed.", wsUrl);
      webservices.remove(element.getKey());
  }

    }
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerImpl.stop()

        assertValid("/c:getCustomerResponse/c:customer", res);
        assertValid("/c:getCustomerResponse/c:customer/c:id[text()='123']", res);
        assertValid("/c:getCustomerResponse/c:customer/c:name[text()='Danno Manno']", res);

        svr.stop();
    }

}
View Full Code Here

Examples of org.apache.cxf.jaxws.EndpointImpl.stop()

            assertTrue(errorMessage.contains("Certificate has been revoked")
                       || errorMessage.contains("Certificate revocation")
                       || errorMessage.contains("Error during certificate path validation"));
        }
        ((java.io.Closeable)pt).close();
        ep.stop();
        epBus.shutdown(true);
        bus.shutdown(true);
    }
}
View Full Code Here

Examples of org.apache.cxf.wsn.client.Consumer.stop()

        NotificationMessageHolderType message = callback.notifications.get(0);
        assertEquals(WSNHelper.getWSAAddress(subscription.getEpr()),
                     WSNHelper.getWSAAddress(message.getSubscriptionReference()));

        subscription.unsubscribe();
        consumer.stop();
    }

    public void testPullPoint() throws Exception {
        PullPoint pullPoint = createPullPoint.create();
        Subscription subscription = notificationBroker.subscribe(pullPoint, "myTopic");
View Full Code Here

Examples of org.apache.cxf.wsn.client.Publisher.stop()

        assertEquals(WSNHelper.getWSAAddress(publisher.getEpr()),
                     WSNHelper.getWSAAddress(message.getProducerReference()));

        subscription.unsubscribe();
        registration.destroy();
        publisher.stop();
        consumer.stop();
    }

    public void testPublisherOnDemand() throws Exception {
        TestConsumer consumerCallback = new TestConsumer();
View Full Code Here

Examples of org.apache.deltacloud.client.Instance.stop()

  public void cannotRebootStoppedInstance() throws DeltaCloudClientException, InterruptedException,
      ExecutionException {
    Instance testInstance = testSetup.getTestInstance();
    DeltaCloudClient client = testSetup.getClient();
    try {
      testInstance.stop(client);
      testInstance = client.listInstances(testInstance.getId()); // reload
      assertTrue(testInstance.getState() == State.STOPPED);
      assertFalse(testInstance.reboot(client));
    } finally {
      testInstance.start(client);
View Full Code Here

Examples of org.apache.deltacloud.client.internal.test.fakes.ServerFake.stop()

          Driver.UNKNOWN,
          new DeltaCloudClientImpl(
              MockIntegrationTestContext.SERVERFAKE_URL, MockIntegrationTestContext.DELTACLOUD_USER,
              MockIntegrationTestContext.DELTACLOUD_PASSWORD).getServerType());
    } finally {
      serverFake.stop();
    }
  }

  @Test(expected = DeltaCloudClientException.class)
  public void listImages_cannotListIfNotAuthenticated() throws MalformedURLException, DeltaCloudClientException {
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.