Package wpn.hdri.ss.data.attribute

Examples of wpn.hdri.ss.data.attribute.Attribute


public class ReadAttributeTaskTest {
    @Test
    public void testCancellation() throws Exception {
        Client mockClient = mock(Client.class);
        stub(mockClient.readAttribute(null)).toReturn(new AbstractMap.SimpleEntry<java.lang.Object, wpn.hdri.ss.data.Timestamp>(null, new Timestamp(System.currentTimeMillis())));
        Attribute mockAttribute = mock(Attribute.class);
        Logger mockLogger = mock(Logger.class);

        ScheduledExecutorService singleThreadExecutor = Executors.newScheduledThreadPool(1);

        PollingReadAttributeTask command = new PollingReadAttributeTask(mockAttribute, mockClient, 0, true, mockLogger);
View Full Code Here

TOP

Related Classes of wpn.hdri.ss.data.attribute.Attribute

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.