Package org.apache.tapestry.test.assertions

Examples of org.apache.tapestry.test.assertions.AssertRegexp.execute()


        ScriptedTestSession ss = TestScriptParser.createSession();

        AssertRegexp ar = new AssertRegexp();
        ar.setRegexp("<title>.*</title>");

        ar.execute(ss);
    }

    public void testFailure() throws Exception
    {
        ScriptedTestSession ss = TestScriptParser.createSession();
View Full Code Here


        AssertRegexp ar = new AssertRegexp();
        ar.setRegexp("<body>.*</body>");

        try
        {
            ar.execute(ss);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertRegexp(
View Full Code Here

        ar.setRegexp("<.*?>");

        addMatch(ar, "<title>");
        addMatch(ar, "</title>");

        ar.execute(ss);
    }

    public void testMatchesWrongCount() throws Exception
    {
        ScriptedTestSession ss = TestScriptParser.createSession();
View Full Code Here

        addMatch(ar, "<title>");

        try
        {
            ar.execute(ss);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertRegexp(
View Full Code Here

        ar.setSubgroup(1);

        addMatch(ar, "title");
        addMatch(ar, "/title");

        ar.execute(ss);
    }

    public void testMatchesFailure() throws Exception
    {
        ScriptedTestSession ss = TestScriptParser.createSession();
View Full Code Here

        addMatch(ar, "<little>");
        addMatch(ar, "</title>");

        try
        {
            ar.execute(ss);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertRegexp(
View Full Code Here

        ScriptedTestSession ss = TestScriptParser.createSession();

        AssertRegexp ar = new AssertRegexp();
        ar.setRegexp("<title>.*</title>");

        ar.execute(ss);
    }

    public void testFailure() throws Exception
    {
        ScriptedTestSession ss = TestScriptParser.createSession();
View Full Code Here

        AssertRegexp ar = new AssertRegexp();
        ar.setRegexp("<body>.*</body>");

        try
        {
            ar.execute(ss);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertRegexp(
View Full Code Here

        ar.setRegexp("<.*?>");

        addMatch(ar, "<title>");
        addMatch(ar, "</title>");

        ar.execute(ss);
    }

    public void testMatchesWrongCount() throws Exception
    {
        ScriptedTestSession ss = TestScriptParser.createSession();
View Full Code Here

        addMatch(ar, "<title>");

        try
        {
            ar.execute(ss);
            unreachable();
        }
        catch (ApplicationRuntimeException ex)
        {
            assertRegexp(
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.