Package org.apache.tuscany.sca

Examples of org.apache.tuscany.sca.Node.stop()


           

           
        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }
}
View Full Code Here


            URL url = new URL("http://localhost:8080/HelloworldComponent/Helloworld?wsdl");
            Assert.assertTrue(read(url.openStream()).contains("address location="));

        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }

    private static String read(InputStream is) throws IOException {
        BufferedReader reader = null;
View Full Code Here

            System.out.println(response);
            Assert.assertTrue(response.contains("\"id\":1,\"result\":\"Hello World\""));

        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }

    private static String read(InputStream is) throws IOException {
        BufferedReader reader = null;
View Full Code Here

            URL url = new URL("http://localhost:8080/HelloworldComponent/Helloworld/sayHello?name=Amelia");
            Assert.assertEquals("Hello Amelia", read(url.openStream()));
           
        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }
   
    private static String read(InputStream is) throws IOException {
        BufferedReader reader = null;
View Full Code Here

            // test that it works as expected
            Assert.assertEquals("Hello Amelia", helloworld.sayHello("Amelia"));
           
        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }
}
View Full Code Here

            URL url = new URL("http://localhost:8085/HelloworldComponent/HelloworldImpl?wsdl");
            Assert.assertTrue(read(url.openStream()).contains("address location="));

        } finally {
            // Stop the Tuscany runtime Node
            node.stop();       
        }
    }

    private static String read(InputStream is) throws IOException {
        BufferedReader reader = null;
View Full Code Here

            assertEquals(1, node.getInstalledContributionURIs().size());
           
            assertNotNull(getWsdlUrl("http://localhost:8080/HelloworldComponent/Helloworld"));
       
        } finally {
            node.stop();
        }
    }

    @Test
    public void testDomainRoot() throws Exception {
View Full Code Here

            assertEquals(1, node.getInstalledContributionURIs().size());
           
            assertNotNull(getWsdlUrl("http://localhost:8080/myDomain/HelloworldComponent/Helloworld"));
       
        } finally {
            node.stop();
        }
    }

    String getWsdlUrl(String uri) throws Exception {
View Full Code Here

        } else {
            if (standaloneNodes.containsKey(curi)) {
                standaloneNodes.remove(curi).stop();
            } else if (nodes.containsKey(curi)) {
                Node n = nodes.remove(curi);
                n.stop();
                if (n.getDomainName().equals(currentDomain)) {
                    currentDomain = "";
                }
            } else {
                for (String compositeURI : getNode().getStartedCompositeURIs(curi)) {
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.