Package net.sf.dvorcode.Dvorcode

Examples of net.sf.dvorcode.Dvorcode.Codec


    @Test
    public void testTranscode_String_DvorcodeCodec_blankCypher() {

        System.out.println("transcode (blank cypher)");
        String cypher = "";
        Codec direction = DECODE;
        String expResult = "";
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here


    @Test
    public void testTranscode_String_DvorcodeCodec_blankArgs() {

        System.out.println("transcode (blank args)");
        String cypher = "";
        Codec direction = null;
        String expResult = null;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_nullArgs() {

        System.out.println("transcode (null args)");
        String cypher = null;
        Codec direction = null;
        String expResult = null;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_nullDirection() {

        System.out.println("transcode (null direction)");
        String cypher = simple_aoeu;
        Codec direction = null;
        String expResult = null;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_decode_shiftedKeys() {

        System.out.println("transcode - decoding (shifted keys)");
        String cypher = QWERTY_UPPER_keys;
        Codec direction = Codec.DECODE;
        String expResult = Dvorak_UPPER_keys;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_decode_unshiftedKeys() {

        System.out.println("transcode - decoding (unshifted keys)");
        String cypher = QWERTY_lower_keys;
        Codec direction = DECODE;
        String expResult = Dvorak_lower_keys;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_encode_shiftedKeys() {

        System.out.println("transcode - encoding (shifted keys)");
        String cypher = Dvorak_UPPER_keys;
        Codec direction = ENCODE;
        String expResult = QWERTY_UPPER_keys;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_encode_unshiftedKeys() {

        System.out.println("transcode - encoding (unshifted keys)");
        String cypher = Dvorak_lower_keys;
        Codec direction = ENCODE;
        String expResult = QWERTY_lower_keys;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_decode_unmappedChars() {

        System.out.println("transcode - decoding unmapped chars");
        String cypher = unmapped_chars;
        Codec direction = DECODE;
        String expResult = cypher;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

    @Test
    public void testTransCode_String_DvorcodeCodec_encode_unmappedChars() {

        System.out.println("transcode - encoding unmapped chars");
        String cypher = unmapped_chars;
        Codec direction = Codec.ENCODE;
        String expResult = cypher;
        String result = Dvorcode.transcode(cypher, direction);
        assertEquals(expResult, result);
    }
View Full Code Here

TOP

Related Classes of net.sf.dvorcode.Dvorcode.Codec

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.