Package com.willwinder.universalgcodesender.types

Examples of com.willwinder.universalgcodesender.types.GcodeCommand


     */
    @Test
    public void testGetSizeOfBuffer() {
        System.out.println("getSizeOfBuffer");
        List<GcodeCommand> list = new LinkedList<GcodeCommand>();
        list.add(new GcodeCommand("twenty characters...", 0));
        list.add(new GcodeCommand("twenty characters...", 1));
        list.add(new GcodeCommand("twenty characters...", 2));
        list.add(new GcodeCommand("twenty characters...", 3));
        list.add(new GcodeCommand("twenty characters...", 4));

        // 100characters + 5 newlines.
        int expResult = 105;
        int result = CommUtils.getSizeOfBuffer(list);
        assertEquals(expResult, result);
View Full Code Here

TOP

Related Classes of com.willwinder.universalgcodesender.types.GcodeCommand

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.