Examples of InactiveDevice


Examples of org.apache.camel.component.apns.model.InactiveDevice

        Thread.sleep(1000);

        assertMockEndpointsSatisfied();

        InactiveDevice inactiveDevice = (InactiveDevice)mock.getExchanges().get(0).getIn().getBody();
        assertNotNull(inactiveDevice);
        assertNotNull(inactiveDevice.getDate());
        assertNotNull(inactiveDevice.getDeviceToken());
        assertEquals(deviceToken, inactiveDevice.getDeviceToken());
    }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        List<InactiveDevice> inactiveDeviceList = getInactiveDevices();

        Iterator<InactiveDevice> it = inactiveDeviceList.iterator();

        while (it.hasNext()) {
            InactiveDevice inactiveDevice = it.next();

            Exchange e = getEndpoint().createExchange();
            e.getIn().setBody(inactiveDevice);
            getProcessor().process(e);
        }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        List<InactiveDevice> inactiveDeviceList = new ArrayList<InactiveDevice>();
        for (Entry<String, Date> inactiveDeviceEntry : inactiveDeviceMap.entrySet()) {
            String deviceToken = inactiveDeviceEntry.getKey();
            Date date = inactiveDeviceEntry.getValue();

            InactiveDevice inactiveDevice = new InactiveDevice(deviceToken, date);
            inactiveDeviceList.add(inactiveDevice);
        }

        return inactiveDeviceList;
    }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        Thread.sleep(1000);

        mock.assertIsSatisfied();

        InactiveDevice inactiveDevice = (InactiveDevice)mock.getExchanges().get(0).getIn().getBody();
        Assert.assertNotNull(inactiveDevice);
        Assert.assertNotNull(inactiveDevice.getDate());
        Assert.assertNotNull(inactiveDevice.getDeviceToken());
        Assert.assertEquals(deviceToken, inactiveDevice.getDeviceToken());
    }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        Thread.sleep(1000);

        mock.assertIsSatisfied();

        InactiveDevice inactiveDevice = (InactiveDevice)mock.getExchanges().get(0).getIn().getBody();
        Assert.assertNotNull(inactiveDevice);
        Assert.assertNotNull(inactiveDevice.getDate());
        Assert.assertNotNull(inactiveDevice.getDeviceToken());
        Assert.assertEquals(deviceToken, inactiveDevice.getDeviceToken());
    }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        Thread.sleep(1000);

        assertMockEndpointsSatisfied();

        InactiveDevice inactiveDevice = (InactiveDevice)mock.getExchanges().get(0).getIn().getBody();
        assertNotNull(inactiveDevice);
        assertNotNull(inactiveDevice.getDate());
        assertNotNull(inactiveDevice.getDeviceToken());
        assertEquals(deviceToken, inactiveDevice.getDeviceToken());
    }
View Full Code Here

Examples of org.apache.camel.component.apns.model.InactiveDevice

        Thread.sleep(1000);

        assertMockEndpointsSatisfied();

        InactiveDevice inactiveDevice = (InactiveDevice)mock.getExchanges().get(0).getIn().getBody();
        assertNotNull(inactiveDevice);
        assertNotNull(inactiveDevice.getDate());
        assertNotNull(inactiveDevice.getDeviceToken());
        assertEquals(deviceToken, inactiveDevice.getDeviceToken());
    }
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.