Examples of BjorneContext


Examples of org.jnode.shell.bjorne.BjorneContext

        }
    }

    @Test
    public void testContext() {
        new BjorneContext(null, null);
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        new BjorneContext(null, null);
    }

    @Test
    public void testExpand1() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit();
        checkExpansion(expansion, new String[] {});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {});
    }

    @Test
    public void testExpand3() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("hi"));
        checkExpansion(expansion, new String[] {"hi"});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"hi"});
    }

    @Test
    public void testExpand4() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("hi there"));
        checkExpansion(expansion, new String[] {"hi", "there"});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"hi", "there"});
    }

    @Test
    public void testExpand5() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("'hi there '"));
        checkExpansion(expansion, new String[] {"hi there "});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"hi there "});
    }

    @Test
    public void testExpand6() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("\"hi there \" "));
        checkExpansion(expansion, new String[] {"hi there "});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"hi there "});
    }

    @Test
    public void testExpand7() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("hi\\ there"));
        checkExpansion(expansion, new String[] {"hi there"});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"hi there"});
    }

    @Test
    public void testExpand8() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("\\\"hi\\ there\\\""));
        checkExpansion(expansion, new String[] {"\"hi there\""});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

        checkExpansion(expansion, new String[] {"\"hi there\""});
    }

    @Test
    public void testExpand9() throws ShellException {
        BjorneContext context = new TestBjorneContext();
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("$?"));
        checkExpansion(expansion, new String[] {"0"});
    }
View Full Code Here

Examples of org.jnode.shell.bjorne.BjorneContext

    @Test
    public void testExpand14() throws ShellException {
        TestBjorneContext parentContext = new TestBjorneContext(new CommandIOHolder[0]);
        parentContext.setVariable("A", "A");
        BjorneContext context = new BjorneContext(parentContext);
        List<BjorneToken> expansion = context.expandAndSplit(new BjorneToken("'$A'"));
        checkExpansion(expansion, new String[] {"$A"});
    }
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.