Package com.volantis.mcs.expression.functions.device

Examples of com.volantis.mcs.expression.functions.device.GetDeviceNameFunction.invoke()


    public void testGetDeviceName() throws Exception {

        accessorMock.expects.getDeviceName().returns("device-name");

        Function function = new GetDeviceNameFunction();
        Value value = function.invoke(expressionContextMock,
                                      EMPTY_VALUE_ARRAY);
        String name = value.stringValue().asJavaString();
        assertNotNull(name);
        assertEquals("device-name",
                     name);
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.