Return-Path: X-Original-To: apmail-creadur-commits-archive@www.apache.org Delivered-To: apmail-creadur-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4B501033A for ; Sat, 7 Dec 2013 11:07:44 +0000 (UTC) Received: (qmail 8027 invoked by uid 500); 7 Dec 2013 11:07:41 -0000 Delivered-To: apmail-creadur-commits-archive@creadur.apache.org Received: (qmail 7996 invoked by uid 500); 7 Dec 2013 11:07:40 -0000 Mailing-List: contact commits-help@creadur.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@creadur.apache.org Delivered-To: mailing list commits@creadur.apache.org Received: (qmail 7987 invoked by uid 99); 7 Dec 2013 11:07:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Dec 2013 11:07:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Dec 2013 11:07:35 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0FC2C238883D; Sat, 7 Dec 2013 11:07:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1548856 - /creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java Date: Sat, 07 Dec 2013 11:07:14 -0000 To: commits@creadur.apache.org From: rdonkin@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131207110714.0FC2C238883D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rdonkin Date: Sat Dec 7 11:07:13 2013 New Revision: 1548856 URL: http://svn.apache.org/r1548856 Log: Add java doc. Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java Modified: creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java URL: http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java?rev=1548856&r1=1548855&r2=1548856&view=diff ============================================================================== --- creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java (original) +++ creadur/rat/branches/gsoc/apache-rat-core/src/test/java/org/apache/rat/analysis/util/MatcherMultiplexerTest.java Sat Dec 7 11:07:13 2013 @@ -25,16 +25,31 @@ import org.apache.rat.analysis.MockLicen import org.apache.rat.api.Document; import org.apache.rat.document.MockLocation; +/** + * The Class MatcherMultiplexerTest. + */ public class MatcherMultiplexerTest extends TestCase { + /** The Constant LINE_ONE. */ private static final String LINE_ONE = "Line One"; + + /** The Constant LINE_TWO. */ private static final String LINE_TWO = "Line Two"; + /** The matcher one. */ MockLicenseMatcher matcherOne; + + /** The matcher two. */ MockLicenseMatcher matcherTwo; + /** The multiplexer. */ HeaderMatcherMultiplexer multiplexer; + /* + * (non-Javadoc) + * + * @see junit.framework.TestCase#setUp() + */ @Override protected void setUp() throws Exception { super.setUp(); @@ -44,11 +59,22 @@ public class MatcherMultiplexerTest exte multiplexer = new HeaderMatcherMultiplexer(matchers); } + /* + * (non-Javadoc) + * + * @see junit.framework.TestCase#tearDown() + */ @Override protected void tearDown() throws Exception { super.tearDown(); } + /** + * Test matcher line. + * + * @throws Exception + * the exception + */ public void testMatcherLine() throws Exception { matcherOne.result = false; matcherTwo.result = false; @@ -65,6 +91,9 @@ public class MatcherMultiplexerTest exte assertEquals("Same as line passed", LINE_TWO, matcherTwo.lines.get(1)); } + /** + * Test reset. + */ public void testReset() { multiplexer.reset(); assertEquals("Reset once", 1, matcherOne.resets);