Package com.volantis.devrep.repository.api.devices

Examples of com.volantis.devrep.repository.api.devices.DefaultDeviceMock


     * Tests if NN-profile secondary headers are handled correctly.
     */
    public void testNNProfile() throws RepositoryException {
        final DeviceRepositoryAccessorMock accessorMock =
            new DeviceRepositoryAccessorMock("accessorMock", expectations);
        final DefaultDeviceMock deviceMock1 =
            new DefaultDeviceMock("deviceMock1", expectations);
        final DefaultDeviceMock deviceMock2 =
            new DefaultDeviceMock("deviceMock2", expectations);

        // expectations to return the main device
        accessorMock.expects.
            retrieveMatchingDeviceName("ua string").returns("device name").any();
        accessorMock.expects.getDeviceFallbackChain(
View Full Code Here


     * no Opt header in the request.
     */
    public void testNNProfileNoOpt() throws RepositoryException {
        final DeviceRepositoryAccessorMock accessorMock =
            new DeviceRepositoryAccessorMock("accessorMock", expectations);
        final DefaultDeviceMock deviceMock1 =
            new DefaultDeviceMock("deviceMock1", expectations);
        final DefaultDeviceMock deviceMock2 =
            new DefaultDeviceMock("deviceMock2", expectations);

        // expectations to return the main device
        accessorMock.expects.
            retrieveMatchingDeviceName("ua string").returns("device name").any();
        accessorMock.expects.getDeviceFallbackChain(
View Full Code Here

     * not depend on the order of the headers in the request.)
     */
    public void testNNProfileMultipleOpt() throws RepositoryException {
        final DeviceRepositoryAccessorMock accessorMock =
            new DeviceRepositoryAccessorMock("accessorMock", expectations);
        final DefaultDeviceMock deviceMock1 =
            new DefaultDeviceMock("deviceMock1", expectations);
        final DefaultDeviceMock deviceMock2a =
            new DefaultDeviceMock("deviceMock2a", expectations);
        final DefaultDeviceMock deviceMock2b =
            new DefaultDeviceMock("deviceMock2b", expectations);

        // expectations to return the main device
        accessorMock.expects.
            retrieveMatchingDeviceName("ua string").returns("device name").any();
        accessorMock.expects.getDeviceFallbackChain(
View Full Code Here

TOP

Related Classes of com.volantis.devrep.repository.api.devices.DefaultDeviceMock

Copyright © 2018 www.massapicom. 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.