Package org.jmock.builder

Examples of org.jmock.builder.MatchBuilder


        return text;
    }

    private void expectOnClear()
    {
        MatchBuilder b = listener.expects(once()).method("onClear").with(same(model));
        setupIdAfter(b);
    }
View Full Code Here


        setupIdAfter(b);
    }

    private void expectOnGroupAdded(String groupName)
    {
        MatchBuilder b = listener.expects(once()).method("onGroupAdded").with(
                same(model), groupEq("http://" + groupName + ".com"), eq(true));
        setupIdAfter(b);
    }
View Full Code Here

        setupIdAfter(b);
    }

    private void expectOnGroupUpdated(String groupName)
    {
        MatchBuilder b = listener.expects(once()).method("onGroupUpdated").with(
                same(model), groupEq("http://" + groupName + ".com"));
        setupIdAfter(b);
    }
View Full Code Here

        setupIdAfter(b);
    }

    private void expectOnGroupRemoved(String groupName)
    {
        MatchBuilder b = listener.expects(once()).method("onGroupRemoved").with(
                same(model), groupEq("http://" + groupName + ".com"));
        setupIdAfter(b);
    }
View Full Code Here

        setupIdAfter(b);
    }

    private void expectOnItemAdded(IArticle article, String groupName)
    {
        MatchBuilder b = listener.expects(once()).method("onItemAdded").with(
                same(model), itemEq(article), groupEq("http://" + groupName + ".com"));
        setupIdAfter(b);
    }
View Full Code Here

        setupIdAfter(b);
    }

    private void expectOnItemRemoved(IArticle article, String groupName)
    {
        MatchBuilder b = listener.expects(once()).method("onItemRemoved").with(
                same(model), itemEq(article), groupEq("http://" + groupName + ".com"));
        setupIdAfter(b);
    }
View Full Code Here

TOP

Related Classes of org.jmock.builder.MatchBuilder

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.