[Javamatch-cvs] javamatch/src/net/sourceforge/javamatch/engine/test MatchListenerMock.java,NONE,1.1
Status: Pre-Alpha
Brought to you by:
iterson
From: Walter v. I. <it...@us...> - 2004-09-07 09:42:30
|
Update of /cvsroot/javamatch/javamatch/src/net/sourceforge/javamatch/engine/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17129/test Added Files: MatchListenerMock.java Log Message: Add listener mechanism for query started / finished callbacks --- NEW FILE: MatchListenerMock.java --- /* JavaMatch: Matching engine for Java runtime data structures * Copyright (C) 2004 Walter van Iterson * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sourceforge.javamatch.engine.test; import net.sourceforge.javamatch.engine.*; import net.sourceforge.javamatch.query.*; import net.sourceforge.javamatch.test.*; public class MatchListenerMock extends ExpectationList implements MatchListener { public void expectMatchQueryStarted() { expect("started"); } public void matchQueryStarted(MatchQuery query) { encounter("started"); } public void expectMatchQueryFinished() { expect("finished"); } public void matchQueryFinished(MatchQuery query, MatchResult result) { encounter("finished"); } } |