Examples of DummyEndpoint


Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    public void setupComponents() throws Exception {
        server = new CoapServerApplication(0);
        service = new NotObservableTestWebservice(PATH_TO_SERVICE, PAYLOAD, 0, 0, server.getExecutor());
        server.registerService(service);

        endpoint = new DummyEndpoint();
        URI targetUri = new URI("coap://localhost:" + server.getPort() + PATH_TO_SERVICE);
        request = new CoapRequest(MessageType.Name.NON, MessageCode.Name.GET, targetUri);
        request.setMessageID(54321);
    }
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    public void setupComponents() throws Exception {
        server = new CoapServerApplication();
        service = new ObservableTestWebservice("/observable", 1, 0, server.getExecutor());
        server.registerService(service);

        clientEndpoint = new DummyEndpoint();

        URI targetUri = new URI("coap", null, "localhost", -1, "/observable", null, null);

        coapRequest = new CoapRequest(MessageType.Name.CON, MessageCode.Name.GET, targetUri);
        coapRequest.setObserve(0);
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

        serverSocket = new InetSocketAddress("localhost", server.getPort());

        service = new ObservableTestWebservice(PATH_TO_SERVICE, 1, 0, server.getExecutor());
        server.registerService(service);

        clientEndpoint = new DummyEndpoint();

        URI targetURI = new URI("coap://localhost:" + server.getPort() + PATH_TO_SERVICE);

        request1 = new CoapRequest(MessageType.Name.CON, MessageCode.Name.GET, targetURI);
        request1.setMessageID(1);
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    @Override
    public void setupComponents() throws Exception {
        server = new CoapServerApplication();
        server.registerService(new NotObservableTestWebservice(PATH, "Status 1", 0, 6000, server.getExecutor()));

        endpoint = new DummyEndpoint();

        serverSocket = new InetSocketAddress("localhost", server.getPort());

        URI serviceURI = new URI("coap", null, "localhost", server.getPort(), PATH, null, null);
        token = new Token(new byte[]{1, 2, 3, 4});
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    public void setupComponents() throws Exception {
        server = new CoapServerApplication();
        service = new NotObservableTestWebservice(PATH_TO_SERVICE, PAYLOAD, 0, 3000, server.getExecutor());
        server.registerService(service);

        endpoint = new DummyEndpoint();
        URI targetUri = new URI("coap://localhost:" + server.getPort() + PATH_TO_SERVICE);
        request = new CoapRequest(MessageType.Name.CON, MessageCode.Name.GET, targetUri);
        request.setMessageID(12345);
    }
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    @Override
    public void setupComponents() throws Exception {

        //Create endpoint
        endpoint = new DummyEndpoint();
        endpointSocket = new InetSocketAddress("localhost", endpoint.getPort());

        //Create client and callback
        client = new CoapClientApplication();
        callback = new ClientTestCallback();
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    }


    @Override
    public void setupComponents() throws Exception {
        testEndpoint = new DummyEndpoint();

        client = new CoapClientApplication("CoAP Testclient");
        callback = new ClientTestCallback();

        URI targetUri = new URI("coap://localhost:" + testEndpoint.getPort() + "/testpath");
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

    @Override
    public void setupComponents() throws Exception {
        server = new CoapServerApplication();
        server.registerService(new NotObservableTestWebservice(PATH, "Status 1", 0, 4000, server.getExecutor()));

        endpoint = new DummyEndpoint();

        serverSocket = new InetSocketAddress("localhost", server.getPort());

        URI serviceURI = new URI("coap", null, "localhost", server.getPort(), PATH, null, null);
        token = new Token(new byte[]{1, 2, 3, 4});
View Full Code Here

Examples of de.uniluebeck.itm.ncoap.endpoints.DummyEndpoint

        Logger.getLogger("de.uniluebeck.itm.ncoap.plugtest.endpoint.DummyEndpoint").setLevel(Level.DEBUG);
    }

    @Override
    public void setupComponents() throws Exception {
        endpoint = new DummyEndpoint();
        endpointSocket = new InetSocketAddress("localhost", endpoint.getPort());

        client = new CoapClientApplication();
        clientCallback = new ClientTestCallback();
View Full Code Here

Examples of org.apache.marmotta.ldcache.sail.test.dummy.DummyEndpoint

    @Before
    public void initDatabase() throws RepositoryException {
        cacheFilter = new UriPrefixFilter("http://remote/");

        ClientConfiguration config = new ClientConfiguration();
        config.addEndpoint(new DummyEndpoint());


        tmpDirectory = Files.createTempDir();

        backend = new LDCachingFileBackend(tmpDirectory);
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.